Mr.Sniper Posted September 12, 2005 Posted September 12, 2005 What i want to do is have a script run whether the window is open or not... and i tryed putting in the codes that are in the hlep file and i can only get it to work when the window is active... cuz lets say i want the internet to keep pushing refresh while i play a CD ROM game.... so i have the code: $s = 15000 $i = 0 Do WinWait("Google - Microsoft Internet Explorer") Send("{BROWSER_REFRESH}") Sleep($s) $s = $s + 76 $i = $i + 1 Until $i = 50 If $i = 50 Then MsgBox(48, "Script Done") EndIf so how do i make it so that will work whether the window is active or not??
BigDod Posted September 12, 2005 Posted September 12, 2005 What i want to do is have a script run whether the window is open or not... and i tryed putting in the codes that are in the hlep file and i can only get it to work when the window is active... cuz lets say i want the internet to keep pushing refresh while i play a CD ROM game.... so i have the code:$s = 15000 $i = 0 Do WinWait("Google - Microsoft Internet Explorer") Send("{BROWSER_REFRESH}") Sleep($s) $s = $s + 76 $i = $i + 1 Until $i = 50 If $i = 50 Then MsgBox(48, "Script Done") EndIfso how do i make it so that will work whether the window is active or not??<{POST_SNAPBACK}>Try using ControlSend instead of Send but I do not know if it will work with Internet Explorer, you will just have to try it and see. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother
quaizywabbit Posted September 13, 2005 Posted September 13, 2005 (edited) so how do i make it so that will work whether the window is active or not??<{POST_SNAPBACK}>$s = 15000 $i = 0 WinWait("Google - Microsoft Internet Explorer") Do Send("{BROWSER_REFRESH}") Sleep($s) $s = $s + 76 $i = $i + 1 Until $i = 50 If $i = 50 Then MsgBox(48, "Script Done") EndIfEdit: use the ControlSend as described in the last post rather than 'Send' above.... Edited September 13, 2005 by quaizywabbit [u]Do more with pre-existing apps![/u]ANYGUIv2.8
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now