Unc3nZureD Posted April 25, 2010 Posted April 25, 2010 Hi! i get stucked with my script. How can i use more send funcion in a script? like if I press F1 then send("xy") if I press F2 then send("cc") ok i know the AutoHotkeySet command, but how can i use more send("...") command? huhh, im not really good in english if i press F1 then it pressing always 00000... if i press the F2 too then it press the 000+11111... ive done a source code but if a func is activated is can't activate an other func without disabling the 1st. so my source is this: msgbox(0, "[unc3nZureD]", "message") Global $Paused HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") HotKeySet("{u}", "Func1") HotKeySet("{i}", "Func2") HotKeySet("{o}", "Func3") HotKeySet("{p}", "Help") ;;;; Body of program would go here ;;;; While 1 Sleep(100) WEnd ;;;;;;;; Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc Func Func1() While 1 Send("{0}") Sleep(100) Send("{0}") Sleep(100) WEnd EndFunc Func Func2() $delay = InputBox("Delay","Enter the time of your buff" & @CRLF & "But you need to *1000 example 10sec = 10000") While 1 Sleep($delay) Send("{1}") WEnd Exit EndFunc Func Func3() While 1 Send("{2}") Sleep(200) Send("{2}") Sleep(200) WEnd EndFunc Func Help() Run("notepad.exe") WinWaitActive("[CLASS:Notepad]") Send("szevasz{ENTER}") Sleep(500) Send("zser") Sleep(500) EndFunc so again the question: how can i solve the switching. i dont wanna switch between 2 function, i want to use 2 func in 1 time. I hope u understand it if my source need modification please write it thx
Unc3nZureD Posted April 25, 2010 Author Posted April 25, 2010 if any1 didn't understand it, pls write me.
JohnOne Posted April 25, 2010 Posted April 25, 2010 I'm more than willing to help you. Please first link me to this function "AutoHotkeySet" so I can familiarize myself with it. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
murder567 Posted April 26, 2010 Posted April 26, 2010 I get what your saying but unfortunately it is not possible. You cannot make it do two functions at the same time because autoit is single-threaded so it only does one thing at a time.
Unc3nZureD Posted April 26, 2010 Author Posted April 26, 2010 ok thx. If any1 knows in visual basic, pls pm me. or mail. ty
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