You're totally right. I got carried away, it isn't getfocus that I need.
I have the handle already. I want to assign a hotkey to bring a console
window into focus if it's minimized or hidden behind other windows,
otherwise to minimize it.
This is what I was trying:
; cycle between focused/minimized window
if(win.getfocus == handle)do
win.minimize(handle)
else
win.show(handle)
endif
but now I realize that it can't work since getfocus won't return the
handle of the main application window --I tested it by setting
handle=win.handle("=notepad") and running notepad.
How can I do my toggle then? I want to minimize a window only if it's got
the focus, not simply if it's visible.
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/