|
|
nomainwin ' open no main window button #1.1, "B1", [b1], UL, 30, 10 button #1.2, "B2", [b2], UL, 30, 40 button #1.3, "B3", [b3], UL, 30, 70 open "Button Focus" for window as #1 print #1, "trapclose [quit]" wait [b1] h=hwnd(#1.3) calldll #user32, "SetFocus", h as ulong, result as long wait [b2] wait [b3] wait [quit] close #1 end
|
nomainwin ' open no main window button #1.1, "B1", [b1], UL, 30, 10 button #1.2, "B2", [b2], UL, 30, 40 button #1.3, "B3", [b3], UL, 30, 70 open "Button Focus" for window as #1 hw = hwnd(#1) print #1, "trapclose [quit]" wait [b1] h=hwnd(#1.3) calldll #user32, "SendMessageA", hw as ulong, _ _WM_NEXTDLGCTL as long, h as ulong, 1 as long, _ result as long wait [b2] wait [b3] wait [quit] close #1 end
|
|