01-07-2007, 05:44 PM
If Tab can be used, try to insert this after act hwnd:
key TST
Or instead of act use lef:
lef 3 3 hwnd
Or send mouse message:
SendMessage hwnd WM_LBUTTONDOWN 1 0
0.02
SendMessage hwnd WM_LBUTTONUP 0 0
----
To test I made exe from this code:
, and used this code to set focus:
It always worked well.
key TST
Or instead of act use lef:
lef 3 3 hwnd
Or send mouse message:
SendMessage hwnd WM_LBUTTONDOWN 1 0
0.02
SendMessage hwnd WM_LBUTTONUP 0 0
----
To test I made exe from this code:
;\Dialog_Editor
str controls = "3"
str rea3
if(!ShowDialog("" 0 &controls)) ret
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 222 134 "Form"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;3 RichEdit20A 0x54233044 0x200 4 4 96 48 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2020001 "" ""
, and used this code to set focus:
It always worked well.
