|
Ryuujin Newbie
Joined: 28 Nov 2003 Posts: 1
|
Posted: Tue Jan 11, 2005 9:43 am
Window Focus |
I am looking for a COM call or function that can determine if ZMud is the active window.
I am trying to create an Alarm that disables itself if the window loses focus. Prevent myself from accidentally going AFK skripting when surfing a page and not paying attention.
#say %Zmud.ZmudIsActive
Yields result -1
Thank you,
D |
|
_________________ |
|
|
|
Full Throttle Wanderer
Joined: 07 Dec 2004 Posts: 65
|
Posted: Mon Jan 31, 2005 9:33 am |
#alias {checkwindow} {
#if (%mss(Zmud.zMUDIsActive) = -1) {#show {zMud is the active window.}}
#if (%mss(Zmud.zMUDIsActive) = 0) {#show {zMud is not the active window.}}}
To test if zMud is not the active window, enter the following alarm and open another window.
#alarm {+3} {checkwindow} |
|
|
|
|
|