Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KEYBOARD FOCUS
#4
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:

Code:
Copy      Help
;\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:

Code:
Copy      Help
int hwnd=id(3 "Form")
act hwnd

It always worked well.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)