zelaznogsirc Posted August 16, 2008 Share Posted August 16, 2008 CODEHotKeySet("{END}", "sts") HotKeySet("{INS}", "str") $times = InputBox( "SRBOT", "How Many Times?" ) Func str() Send( "{BROWSER_REFRESH " & $times & "}" ) EndFunc Func sts() HotKeySet("{END}") Send("{END}") HotKeySet("{END}", "sts") EndFunc How do I set a delay of like 1 second between each send of the browser refresh? Link to comment Share on other sites More sharing options...
Omala Posted August 16, 2008 Share Posted August 16, 2008 CODEHotKeySet("{END}", "sts")HotKeySet("{INS}", "str")$times = InputBox( "SRBOT", "How Many Times?" )Func str()Send( "{BROWSER_REFRESH " & $times & "}" )EndFuncFunc sts() HotKeySet("{END}") Send("{END}") HotKeySet("{END}", "sts")EndFuncHow do I set a delay of like 1 second between each send of the browser refresh?This might help... Try the script, it's pretty cool. http://www.autoitscript.com/forum/index.ph...st&p=565971AutoItSetOption("WinWaitDelay", 1)AutoItSetOption("WinTitleMatchMode", 2)Run("notepad")WinWait("Notepad")For $i = 10 To 100 Step 10 AutoItSetOption("SendKeyDelay", $i) WinActivate("Notepad") Send("I am typing here " & $i & "ms" & @CR)NextFor $i = 200 To 400 Step 100 AutoItSetOption("SendKeyDelay", $i) WinActivate("Notepad") Send("I am typing here " & $i & "ms" & @CR)Next Link to comment Share on other sites More sharing options...
martin Posted August 16, 2008 Share Posted August 16, 2008 CODEHotKeySet("{END}", "sts")HotKeySet("{INS}", "str")$times = InputBox( "SRBOT", "How Many Times?" )Func str()Send( "{BROWSER_REFRESH " & $times & "}" )EndFuncFunc sts() HotKeySet("{END}") Send("{END}") HotKeySet("{END}", "sts")EndFuncHow do I set a delay of like 1 second between each send of the browser refresh?Sleep(1000);delay 1s Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
zelaznogsirc Posted August 16, 2008 Author Share Posted August 16, 2008 mm thanks but i figured it out its just using an AutoItSetOption Link to comment Share on other sites More sharing options...
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