TomCat Posted July 22, 2007 Share Posted July 22, 2007 Hi if written an little script: expandcollapse popupHotKeySet("{F2}", "_Pause") GLobal $Paused, $Count $Count = 0 Func _Pause() ; Pause the script $Paused = NOT $Paused While $Paused sleep(100) WEnd EndFunc;==> Pause hotkeyset('q', "stop") func stop() while 1 sleep (1) wend endfunc hotkeyset('w', "_Func") While 1 Sleep(1) WEnd Func _Func() While 1;Repeat for ever.... Send("{1 DOWN}") Sleep (10) Send("{1 UP}") Sleep (50) Send("{2 DOWN}") Sleep (10) Send("{2 UP}") Sleep (50) Send("{3 DOWN}") Sleep (10) Send("{2 UP}") Sleep (50) Send("{4 DOWN}") Sleep (10) Send("{4 UP}") Sleep (50) Send("{5 DOWN}") Sleep (10) Send("{5 UP}") WEnd;Go back to top EndFunc now i want to store the keys to send the sleep time and die activation keys in an ini file but i dnot know to do this can somebody help me with an example ? Link to comment Share on other sites More sharing options...
martin Posted July 22, 2007 Share Posted July 22, 2007 Hi if written an little script: expandcollapse popupHotKeySet("{F2}", "_Pause") GLobal $Paused, $Count $Count = 0 Func _Pause() ; Pause the script $Paused = NOT $Paused While $Paused sleep(100) WEnd EndFunc;==> Pause hotkeyset('q', "stop") func stop() while 1 sleep (1) wend endfunc hotkeyset('w', "_Func") While 1 Sleep(1) WEnd Func _Func() While 1;Repeat for ever.... Send("{1 DOWN}") Sleep (10) Send("{1 UP}") Sleep (50) Send("{2 DOWN}") Sleep (10) Send("{2 UP}") Sleep (50) Send("{3 DOWN}") Sleep (10) Send("{2 UP}") Sleep (50) Send("{4 DOWN}") Sleep (10) Send("{4 UP}") Sleep (50) Send("{5 DOWN}") Sleep (10) Send("{5 UP}") WEnd;Go back to top EndFunc now i want to store the keys to send the sleep time and die activation keys in an ini file but i dnot know to do this can somebody help me with an example ? The help file can help you! 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...
TomCat Posted July 23, 2007 Author Share Posted July 23, 2007 tnx i found it 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