Busser
Members-
Posts
12 -
Joined
-
Last visited
Busser's Achievements
Seeker (1/7)
0
Reputation
-
Hi im kinda new to this still learning. i need a little help if you guys don't mind. here is my code $window = GUICreate("Timed Game Close Down", 400, 100) GUICtrlCreateLabel("Game Window Title Name:", 10, 10) $title = GUICtrlCreateInput("", 222, 10, 175, 18) GUICtrlCreateLabel("Time Before Window Closes in Milliseconds:", 10, 40) $time = GUICtrlCreateInput("", 222, 40, 175, 18) $ok = GUICtrlCreateButton("OK!", 150, 70, 35) $cancel = GUICtrlCreateButton("Cancel", 200, 70, 50) GUISetState(@SW_SHOW) ;------------------------------------------------------------------------------------ HotKeySet("{Home}", "TogglePause") HotKeySet("{End}", "Terminate") Global $WinTitle ='test.txt' ;--------------------------------------------------------------------------------------- WinActivate ( "test.txt" ) If WinExists($WinTitle) Then Sleep(10000) Else MsgBox(0, "No test.txt Window", "Can't find test.txt Window!"&@CRLF&"Launch the game before."&@CRLF&""&@CRLF&"Will Close Now.", "", "") Exit EndIf WinActivate ( "test.txt" ) ToolTip("Game Window Will CLose In 30 Seconds Press End to Stop", 0, 0) Sleep (3000) WinKill ( "test.txt" ) MsgBox(64, "Aion", "Game Window Closed") ;------------------------------------------------------------------------------------- Func TogglePause() $Paused = NOT $Paused While $Paused Sleep(100) ToolTip('Game Close Count Down Paused! (Home = Enable - End = Exit)',0,0) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc What i want to do is 1) When something is typed in the Gui window in the "Game Window Title Name:" it will auto change everything that has "test.txt" 2) Everything that is put into "Time Before Window Closes in Milliseconds:" it will auto change only the " Sleep(10000)" but not the other sleep function 3) and if you there anything esle you guys see wrong plz Quote Johnny 5 love input hahahahahha thank you very much for your time
-
Thank you all for the help everythign is working great now Thanx again
-
Hi have made a autoit script and i was wandering if it is possible too make another autoit script that will have it auto start on the comptuer when it loads up and it will run it at 0600 and at 1200 every day at those times is this possible and i hope i explained it right
-
So nobody has any ideas
-
ya i have looked over the top one and can't figure out why it jsut wants to do the this CODEMouseMove(1490, 469) ; Talic in bag MouseClick("left") MouseMove(846, 460) ; Talic In combation winodw MouseClick("left") over and over and will not go passed that and continue with the rest of the code and it does'nt matter what i press 1 2 3 4 5 does the same thing with everyone but hte original works fine it run normal the way it was to be repeat its self over and over but hte new one is not working prperly so if someone could help that would be great thank you
-
here is the original that works great it runs thru the whole thing perfectly CODEWinActivate("RF Online", "") WinMove("RF Online", "", 0, 0) Global $Paused HotKeySet("{HOME}", "TogglePause") HotKeySet("{END}", "Terminate") If 1 = 1 Then WinActivate("RF Online", "") While 1= 1 Sleep(1500) MouseMove(1490, 469) ; Talic in bag MouseClick("left") MouseMove(846, 460) ; Talic In combation winodw MouseClick("left") Sleep (100) ;-------------------------- Send("{2}") ; Enters 20 then hits enter Sleep (100) ; Send("{0} {Enter}") ;-------------------------- MouseMove(843, 555) ; Start Button MouseClick("left") MouseMove(907, 577) ; Saying Yes to pay money MouseClick("left") Sleep (3750) ; Sleeps 5 secs while it does it stuff MouseMove(1003, 643) ; Clicks Continue MouseClick("left") Sleep (2000) WEnd EndIf Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc But when i do it in the other one it just goes grabs the talic out of bag and then puts it where it is to go then goes tries to grab a talic again it is not goign thru the whoel thing it is missing stuff dont know why
-
Ok i made something based off of what i had b4 and it worked but now when i do it wheni hit 1 it just grabs the talic and puts it where it is to go and then goes tries to gab it again it doesn't continue with what it is to be doing if i take that and run it normal with while 1 in there it works great if anyone could help me that would be cool and if you know a better way of doing this would be also a good learning i have it so if i it 1 it does it 1 times hit 2 it does it 2 times up to 4 and then if it hit 5 it will do 4 times in each of the boxes that is why there is a few differnt things there CODEWinActivate("RF Online", "") WinMove("RF Online", "", 0, 0) Global $Paused HotKeySet("{HOME}", "TogglePause") HotKeySet("{END}", "Terminate") HotKeySet("{1}", "Talic1") HotKeySet("{2}", "Talic2") HotKeySet("{3}", "Talic3") HotKeySet("{4}", "Talic4") HotKeySet("{5}", "Talic5") While 1 sleep("10000"); Idle, will start when you press something WEnd If 1 = 1 Then WinActivate("RF Online", "") EndIf Func Talic1() For $i = 1 To 1 ; Runs it 1 time Call("Talic") ; Calls (Runs) Func "?" Next EndFunc Func Talic2() For $i = 1 To 2 ; Runs it 2 time Call("Talic") ; Calls (Runs) Func "?" Next EndFunc Func Talic3() For $i = 1 To 3 ; Runs it 3 time Call("Talic") ; Calls (Runs) Func "?" Next EndFunc Func Talic4() For $i = 1 To 4 ; Runs it 4 time Call("Talic") ; Calls (Runs) Func "?" Next EndFunc Func Talic5() For $i = 1 To 4 ; Runs it 4 time Call("Talic") ; Calls (Runs) Func "?" Next For $i = 1 To 4 ; Runs it 4 time Call("Talic2a") ; Calls (Runs) Func "?" Next For $i = 1 To 4 ; Runs it 4 time Call("Talic3a") ; Calls (Runs) Func "?" Next For $i = 1 To 4 ; Runs it 4 time Call("Talic4a") ; Calls (Runs) Func "?" Next For $i = 1 To 4 ; Runs it 4 time Call("Talic5a") ; Calls (Runs) Func "?" Next EndFunc Func Talic() MouseMove(1490, 469) ; Talic in bag MouseClick("left") MouseMove(846, 460) ; Talic In combation winodw MouseClick("left") Sleep (100) ;-------------------------- Send("{2}") ; Enters 20 then hits enter Sleep (100) ; Send("{0} {Enter}") ;-------------------------- MouseMove(843, 555) ; Start Button MouseClick("left") MouseMove(907, 577) ; Saying Yes to pay money MouseClick("left") Sleep (3750) ; Sleeps 5 secs while it does it stuff MouseMove(1003, 643) ; Clicks Continue MouseClick("left") EndFunc Func Talic2a() MouseMove(1530, 466) ; Talic in bag MouseClick("left") MouseMove(846, 460) ; Talic In combation winodw MouseClick("left") Sleep (100) ;-------------------------- Send("{2}") ; Enters 20 then hits enter Sleep (100) ; Send("{0} {Enter}") ;-------------------------- MouseMove(843, 555) ; Start Button MouseClick("left") MouseMove(907, 577) ; Saying Yes to pay money MouseClick("left") Sleep (3750) ; Sleeps 5 secs while it does it stuff MouseMove(1003, 643) ; Clicks Continue MouseClick("left") EndFunc Func Talic3a() MouseMove(1572, 466) ; Talic in bag MouseClick("left") MouseMove(846, 460) ; Talic In combation winodw MouseClick("left") Sleep (100) ;-------------------------- Send("{2}") ; Enters 20 then hits enter Sleep (100) ; Send("{0} {Enter}") ;-------------------------- MouseMove(843, 555) ; Start Button MouseClick("left") MouseMove(907, 577) ; Saying Yes to pay money MouseClick("left") Sleep (3750) ; Sleeps 5 secs while it does it stuff MouseMove(1003, 643) ; Clicks Continue MouseClick("left") EndFunc Func Talic4a() MouseMove(1609, 466) ; Talic in bag MouseClick("left") MouseMove(846, 460) ; Talic In combation winodw MouseClick("left") Sleep (100) ;-------------------------- Send("{2}") ; Enters 20 then hits enter Sleep (100) ; Send("{0} {Enter}") ;-------------------------- MouseMove(843, 555) ; Start Button MouseClick("left") MouseMove(907, 577) ; Saying Yes to pay money MouseClick("left") Sleep (3750) ; Sleeps 5 secs while it does it stuff MouseMove(1003, 643) ; Clicks Continue MouseClick("left") EndFunc Func Talic5a() MouseMove(1640, 466) ; Talic in bag MouseClick("left") MouseMove(846, 460) ; Talic In combation winodw MouseClick("left") Sleep (100) ;-------------------------- Send("{2}") ; Enters 20 then hits enter Sleep (100) ; Send("{0} {Enter}") ;-------------------------- MouseMove(843, 555) ; Start Button MouseClick("left") MouseMove(907, 577) ; Saying Yes to pay money MouseClick("left") Sleep (3750) ; Sleeps 5 secs while it does it stuff MouseMove(1003, 643) ; Clicks Continue MouseClick("left") EndFunc Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func Terminate() Exit EndFunc thank you for all that help and look at it
-
Hi i was wandering if it is possible 2 and if so how would i Question 1 if i press 1 it runs Func Talic() 1 times if i press 2 it runs Func Talic() 2 times ect..... but then after i press 2 when that function is done i can press 1 and then it will godo it 1 times then press 3 it will do it 3 times ect..... Question 2 Is there was way it to run a func 1 time then have the a func run 2 times then go back 2, 1 time then repeat that over and over
-
Start run for 4 times then stop ect....
Busser replied to Busser's topic in AutoIt General Help and Support
CODEHotKeySet("{HOME}","StartScript") HotKeySet("{END}","StopScript") HotKeySet("{PAUSE}", "TogglePause") While 1 sleep("10000"); Idle, will start when you press HOME WEnd Func StartScript() While 1 MouseMove(1409, 470) ; Talic in bag MouseClick("left") MouseMove(804, 439) ; Talic In combation winodw MouseClick("left") Sleep (100) ;--------------------------20 20 Send("{2}") ; Enters 20 then hits enter Sleep (100) ; Send("{0} {Enter}") ;-------------------------- MouseMove(803, 541) ; Start Button MouseClick("left") MouseMove(870, 564) ; Saying Yes to pay money MouseClick("left") Sleep (3750) ; Sleeps 5 secs while it does it stuff MouseMove(963, 630) ; Clicks Continue MouseClick("left") Sleep (2000) WEnd EndFunc Func StopScript() Exit EndFunc Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc ok that is wat i have and i have it so it will start when i press HOME stop when i hit END pause when i hit PAUSE but i would like it so that says PAGEUP stops it but doesn't stop the whole script and if i hit PAGE DOWN or HOME it will restart the whole prgram again i don't want to have to log out and restart it every time and pause pause it and starts it from last stop i want it to start from 1 again thanx -
hi im making a macro to do a few things im looking to do a Start when i press a key i know how to do that but i want it to run 4 times then stop until i press the start button again but i also would like a button in there that if i pres?????? it will stop it but if i press ???? it will start from the beginning again not a pause i think that is all thank you for all the read this and help BUsser
-
basicly i want to have both of those macros running in 1 just like they would of ran if i made them seperate and had 2 macros running so there seprate but 1 hopefully that makes sence i jsut want it so that i don't have to have like 2-5 different macros running on my at one time jsut combine them into one but have then run sepratly in that one hahahah HAY this makes sence in my head
-
hi i was wandering if it is possible to have 2 macros running at different times so i can do this MACRO 1 While 1 WinActivate("CABAL") Send("{F2}") Send("{2}") Sleep(300500) If Not @error Then EndIf Wend MACRO 2 While 1 WinActivate("CABAL") Send("{F4}") Send("{9}") Sleep(150500) If Not @error Then EndIf Wend it is for a game if you didn't figure that out, but they have to be runned seprate but with the same macro if that is possible i have looked in the help file and icould not see anything on it that icould find so any help would be great THanx for read Busser