ExoCore Posted August 7, 2011 Share Posted August 7, 2011 (edited) I already looked at using hot key.. but when I try doing this expandcollapse popup#include <Misc.au3> $g_szVersion = "ScriptBT" If WinExists($g_szVersion) Then Exit ; It's already running AutoItWinSetTitle($g_szVersion) HotKeySet( "{END}","_killEricMSBot") Func _killEricMSBot() ProcessClose("EricMSBot.exe") EndFunc MsgBox(0, "Guide to Start", "Start F9,Stop END,Pause Insert ") Global $Sending HotKeySet("{F9}", "ToggleSend") While 1 Sleep(100) WEnd Func ToggleSend() $Sending = NOT $Sending While $Sending Send('{ENTER}') Sleep(2000) Send('@reborn c') Sleep(4000) WEnd EndFunc HotKeySet("{Insert}", "TogglePause") Func TogglePause() $Paused = NOT $Paused While $Paused sleep(15000) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc It doesnt pause like I want it too, it just keep going Edited August 7, 2011 by ExoCore Link to comment Share on other sites More sharing options...
JohnOne Posted August 7, 2011 Share Posted August 7, 2011 (edited) EDIT:Forget my solution, just seen Edited August 7, 2011 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
wakillon Posted August 8, 2011 Share Posted August 8, 2011 Try expandcollapse popup#include <Misc.au3> Global $Sending , $Paused, $g_szVersion = "ScriptBT" If WinExists($g_szVersion) Then Exit ; It's already running AutoItWinSetTitle($g_szVersion) HotKeySet( "{END}","_killEricMSBot") HotKeySet("{Insert}", "TogglePause") HotKeySet("{F9}", "ToggleSend") MsgBox(0, "Guide to Start", "Start F9,Stop END,Pause Insert ") While 1 Sleep(100) WEnd Func _killEricMSBot() ProcessClose("EricMSBot.exe") EndFunc Func ToggleSend() $Sending = NOT $Sending While $Sending Send('{ENTER}') Sleep(2000) Send('@reborn c') Sleep(4000) WEnd EndFunc Func TogglePause() $Paused = NOT $Paused While $Paused sleep(15000) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
ExoCore Posted August 8, 2011 Author Share Posted August 8, 2011 (edited) Try expandcollapse popup#include <Misc.au3> Global $Sending , $Paused, $g_szVersion = "ScriptBT" If WinExists($g_szVersion) Then Exit ; It's already running AutoItWinSetTitle($g_szVersion) HotKeySet( "{END}","_killEricMSBot") HotKeySet("{Insert}", "TogglePause") HotKeySet("{F9}", "ToggleSend") MsgBox(0, "Guide to Start", "Start F9,Stop END,Pause Insert ") While 1 Sleep(100) WEnd Func _killEricMSBot() ProcessClose("EricMSBot.exe") EndFunc Func ToggleSend() $Sending = NOT $Sending While $Sending Send('{ENTER}') Sleep(2000) Send('@reborn c') Sleep(4000) WEnd EndFunc Func TogglePause() $Paused = NOT $Paused While $Paused sleep(15000) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc ty so much I got a question, how do i make something send(once every whatever) when I also want the other function to still running I see what i did wrong now Edited August 8, 2011 by ExoCore 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