Onamayous Posted February 15, 2018 Share Posted February 15, 2018 Hello I need help making a loop, i have an action in the loop i want to do 60 times, then i need to break the loop and do a different action once, but then return to the pervious loop for another 60 actions then after back to the other one and back and forth ect... HotKeySet("{ESC}", "_Exit") ; Make a hotkey to exit the script ; Very important when u are using MouseMove, MouseClick etc. in a loop HotKeySet("{*}", "_Mine") ; Look at the Send command in the help file for keys Global $Mine = False ; Here we say $Mine = false, so the bot has stopped as default While 1 Sleep(5000) ; Start delay, optimized CPU WEnd Func _Mine() $Mine = Not $Mine ; Mine = Set to false, automatically off until start. True = Instant Start. For $mine MouseMove(685, 385, 10);moving mouse to optimized position MouseClick("left"); Clear any open actions or Menus Send( "{m 3}" );Queue 3x Sleep(5000);Waiting for action to finish Send( "{m 3}" );Queue last 3 actions Sleep(19500); waiting for mining to finish WEnd Send( "{o}" ) ; Drink keybind EndFunc Func _Exit() Exit EndFunc This is the current code, i want the 60 actions to be the "m 3"'s then the secondary action "o" need to be done after 60 m's how do i do this, been struggling for ages with different loop functions and cant find the proper one. Link to comment Share on other sites More sharing options...
Developers Jos Posted February 15, 2018 Developers Share Posted February 15, 2018 3 minutes ago, Onamayous said: waiting for mining to finish 3 minutes ago, Onamayous said: Drink keybind Welcome, This feels like a game automation script, so please ensure you read our forum rules! Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Onamayous Posted February 15, 2018 Author Share Posted February 15, 2018 Not automation, this near exact scrip has been posted before and its not closed Link to comment Share on other sites More sharing options...
Developers Jos Posted February 15, 2018 Developers Share Posted February 15, 2018 Just now, Onamayous said: Not automation mmm so what would you call it? and this implies it is for a game. 1 minute ago, Onamayous said: this near exact scrip has been posted before and its not closed That is not a reason as the rules have changed a while ago and we haven't bothered going back to close all topics that are now not allowed anymore. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Onamayous Posted February 15, 2018 Author Share Posted February 15, 2018 1 minute ago, Jos said: mmm so what would you call it? and this implies it is for a game. That is not a reason as the rules have changed a while ago and we haven't bothered going back to close all topics that are now not allowed anymore. Jos Ah, sorry very new to this and haven't really explored it much nor tried looking through everything , thanks though 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