Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Convert code
#1
last night I was using this function
Function ConvertMacroToSetUp
Trigger F10     Help - how to add the trigger to the macro
Code:
Copy      Help
str func.getwintext(id(15"Note"))
func.replacerx("(\r\n){2,}" "$1")
func.escape("[]")
out func
func.setwintext(id(15"Note"))
to convert codes like this
Function Start as
Code:
Copy      Help
int hwnd="NotePad"
opt err 1
if matchw(hwnd "NotePad")
,mes "test"
to this
Function Finish as
Code:
Copy      Help
"int hwnd=''Window 1''[]opt err 1[]clo hwnd[]if matchw(hwnd ''NotePad'')[],mes ''test''"
but today it wont work is there an easier way or can you tell me why this worked last night but not today
#2
func.escape("[]") used incorrectly. read help.
#3
thx gint got it now


Forum Jump:


Users browsing this thread: 1 Guest(s)