07-21-2018, 03:51 PM
Quote:PLUS: what does this mean? is this a suggestion?No, ignore it.
Macro Macro8
int w=win("Font" "#32770")
int c=id(1 w) ;;push button 'OK'
out
if(c=0) end "control not found"
act w
int t1(GetCurrentThreadId) t2(GetWindowThreadProcessId(c 0))
if(!AttachThreadInput(t1 t2 1)) end "AttachThreadInput failed." 16
int prevFocus=SetFocus(c)
AttachThreadInput(t1 t2 0)
out "previous focus:"
outw prevFocus