Reading about the Windows API SetFocus function on the MSDN website they state.
Since the Macro Scheduler SetFocus function can set focus to any window I've ever used it on, I'm assuming that there is something in the function that performs this message queue attachment. And since I can set focus to Window objects in Win7, I'm wondering if there is some message queue attachment disconnect in WinXP. Is there any libfunc that can make this work in WinXP? Or does any one know of some other method to set focus to a Window object other than using the mouse or keyboard?MSDN wrote:The window must be attached to the calling thread's message queue
Code: Select all
ExecuteFile>InetCPL.cpl
WaitWindowOpen>Internet Properties
wait>0.5
GetWindowHandle>Internet Properties,hwnd
Let>WIN_USEHANDLE=1
GetWindowChildList>hwnd,hwnd_list
Let>WIN_USEHANDLE=0
Separate>hwnd_List,crlf,handle
Let>WIN_USEHANDLE=1
MoveWindow>Handle_26,100,100
ResizeWindow>Handle_26,100,100
SetFocus>Handle_26
Let>WIN_USEHANDLE=0