trung Posted February 23, 2008 Share Posted February 23, 2008 hey guys is there a way to make my script have a timmer for 20 seconds then press 6. like do watever its doing then on the side have a timer pressing 6 every second. i tried adding another while but that didnt help example HotKeySet("{NumPad7}", "Start") HotKeySet("{NumPad8}", "Pause") HotKeySet("{NumPad9}", "Leave") While 1 Sleep(1000) WEnd Func Start() Send("2") Sleep(50) Send("3") Sleep(50) Send("4") Sleep(50) Send("5") Sleep(50) Send("{Space}") Sleep(50) Send("{Space}") WEnd EndFunc Func Pause() While 1 Sleep(1) WEnd EndFunc Func Leave() Exit EndFunc Link to comment Share on other sites More sharing options...
martin Posted February 23, 2008 Share Posted February 23, 2008 hey guys is there a way to make my script have a timmer for 20 seconds then press 6. like do watever its doing then on the side have a timer pressing 6 every second.i tried adding another while but that didnt helpexampleHotKeySet("{NumPad7}", "Start")HotKeySet("{NumPad8}", "Pause")HotKeySet("{NumPad9}", "Leave")While 1Sleep(1000)WEndFunc Start()Send("2")Sleep(50)Send("3")Sleep(50)Send("4")Sleep(50)Send("5")Sleep(50)Send("{Space}")Sleep(50)Send("{Space}")WEndEndFuncFunc Pause()While 1Sleep(1)WEndEndFuncFunc Leave()ExitEndFuncSounds like a job for AdLibEnable. 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...
therks Posted February 23, 2008 Share Posted February 23, 2008 Or have a look at the new timer functions in the latest beta. My AutoIt Stuff | My Github 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