06-01-2004, 05:22 PM
What word is highlighted? I can see only one error: in outp statement, you should use %s (for strings), %i (for integers), etc, but not %variable.
Tip: to copy/paste QM text between QM and other programs, use menu Edit -> Other formats -> Copy/Paste escaped.
Tip: to copy/paste QM text between QM and other programs, use menu Edit -> Other formats -> Copy/Paste escaped.
;Run Notepad:
run "notepad.exe"
;Wait for Notepad window max 5 s:
5 "Notepad"
;Wait 0.5 s:
0.5
;Repeat:
rep
,;Press keys:
,key "Sample: press keys, paste text, input box, message, list;" Y
,;Create string variable s:
,str XxBigTxX
,;Show input box (s will receive text):
,inp XxBigTxX "Type something:"
,;Paste formatted text:
,outp "Input was ''%XxBigTxX'' (paste);[]" XxBigTxX ;;error: use %s, not %XxBigTxX
,;Press keys:
,key "Input was ''" (XxBigTxX) "'' (keys);" Y
,;Show message box:
,if mes("Delete text?" "" "YN?")='Y'
,,;If Yes, press keys Alt+e+a and A+e+l:
,,key A{ea} A{el}
,;Show list:
,sel list("Fast[]Normal[]Slow" "Select speed:" "Repeat?")
,,case 0 ret
,,case 1 spe
,,case 2 spe 1000
,,case 3 spe 5000