zelaznogsirc Posted August 16, 2008 Posted August 16, 2008 Can you guys tell me how to get the variable to tell the Send function how many times? I got this so far..... CODE$times = InputBox( "SRBOT", "How Many Times?" ) Send( "{BROWSER_REFRESH}" ) Should I do This? CODE$times = InputBox( "SRBOT", "How Many Times?" ) Send( "{BROWSER_REFRESH $times}" )
PsaltyDS Posted August 16, 2008 Posted August 16, 2008 Can you guys tell me how to get the variable to tell the Send function how many times? I got this so far..... $times = InputBox( "SRBOT", "How Many Times?" ) Send( "{BROWSER_REFRESH}" ) Should I do This? $times = InputBox( "SRBOT", "How Many Times?" ) Send( "{BROWSER_REFRESH $times}" ) Try this way: Send( "{BROWSER_REFRESH " & $times & "}" ) As described in the help file under Send()... Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
zelaznogsirc Posted August 16, 2008 Author Posted August 16, 2008 (edited) wait sorry nevermind i think its refreshing to fast so it doesnt get all of the refreshes is there a way to make it wait like a second between each refresh I know thers sleep but how would i use it in this situation? and to stop it could i do HotKeySet("{END}", "sts") $times = InputBox( "SRBOT", "How Many Times?" ) Send( "{BROWSER_REFRESH " & $times & "}" ) Func sts() HotKeySet("{END}") Send("{END}") HotKeySet("{END}", "sts") EndFunc Edited August 16, 2008 by zelaznogsirc
PsaltyDS Posted August 16, 2008 Posted August 16, 2008 wait sorry nevermind i think its refreshing to fast so it doesnt get all of the refreshes is there a way to make it wait like a second between each refresh I know thers sleep but how would i use it in this situation? and to stop it could i do HotKeySet("{END}", "sts") $times = InputBox( "SRBOT", "How Many Times?" ) Send( "{BROWSER_REFRESH " & $times & "}" ) Func sts() HotKeySet("{END}") Send("{END}") HotKeySet("{END}", "sts") EndFunc If it's IE you are using, then you would be much better off with _IEAction($oIE, "refresh") followed by _IELoadWait($oIE). For other browsers you would just have to do it in a loop with sleep: For $n = 1 To $times Send("{BROWSER_REFRESH}") Sleep(5000) Next Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
zelaznogsirc Posted August 16, 2008 Author Posted August 16, 2008 Thanks PsaltyDS.... The Loop script just what i needed...
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