Posts: 576
Threads: 97
Joined: Aug 2007
Is there a way to check to see if something is frozen?
like check to see if qm is frozen or check to see if the internet explorer page isnt responding?
Posts: 12,073
Threads: 140
Joined: Dec 2002
When a program is not responding >= 5 s, it is considered hung. Then Windows adds a ghost window on top of the hung window so you can move it or terminate the program.
if(IsHungWindow(win("Quick Macros" "QM_Editor"))=1)
,out "qm hung"
When a web page is loading too long, it is different. Let the macro wait while IE is busy for certain time...
wait 5 I; err out "still loading"
Posts: 576
Threads: 97
Joined: Aug 2007
i dont seem to have the IsHungWindow function ?
Posts: 473
Threads: 33
Joined: Aug 2007
IsHungWindow
Is not a function, if it was then it would be blue.
IsHungWindow
Or do you mean that it's just not working for you?
Taking on Quick Macros one day at a time
Posts: 576
Threads: 97
Joined: Aug 2007
Thats wut i meant lol didnt mean to say function sorry yes its not working! its not red like i think it shud be
Posts: 473
Threads: 33
Joined: Aug 2007
Could you post your code? Maybe you mistyped it or miscopied it or something.
Taking on Quick Macros one day at a time
Posts: 576
Threads: 97
Joined: Aug 2007
This Code:
Macro ( Macro )
if(IsHungWindow(win("Quick Macros" "QM_Editor"))=1)
,out "qm hung"
This Error: Error in Macro: unknown identifier.
Highlights: IsHungWindow
Posts: 473
Threads: 33
Joined: Aug 2007
What version of QM are you using? Try downloading the latest version.
Download QM 2.2.1 beta (2.2.1.3). Released December 14, 2007.
http://www.quickmacros.com/history.html
Taking on Quick Macros one day at a time
Posts: 576
Threads: 97
Joined: Aug 2007
OK Ty bro that worked!
Posts: 473
Threads: 33
Joined: Aug 2007
Yep, np.
Taking on Quick Macros one day at a time
Posts: 1,271
Threads: 399
Joined: Mar 2003
can IsHungWindow be used as trigger function ?
Posts: 12,073
Threads: 140
Joined: Dec 2002
Quote:can IsHungWindow be used as trigger function ?
Call it repeatedly...