Jump to content

Help Make script loop if certain condition met

Recommended Posts


I am trying to make an auto login for a game and It's working up to the part where I need to actually choose my character which I want it to hit Enter to log in after 45 seconds have passed; this isn't working. I am also trying to make the script start back up the auto login process if I am kicked from the game back to the login screen. Any Ideas? 



Edited by Melba23
Code removed

Share this post

Link to post
Share on other sites

I would use the window info tool to find the actual controls to send info to instead of relying on blind faith and "tab"s.

If that doesn't work, then search google for better tools designed specifically to automate games since this topic is forbidden in the AutoIt forums and this thread will be locked as soon as a mod sees it.

if @error Then
	MsgBox(262192,"",@ComputerName&" slaps "&@UserName&" around a bit with a large trout!")

>Exit code: 0

REAL search results

"Yeah yeah patience, how long will that take?"  -Ed Gruberman

Share this post

Link to post
Share on other sites


alienclone is quite right - please read the Forum rules - particularly the bit about not discussing game intereaction - before you post again.  Thread locked.

But welcome to the AutoIt forum - and see you soon with a legitimate question I hope.


When you fully appreciate that a question is against the Forum rules it is not acceptable to offer any help at all - even if only of a general nature. Please do not do so again.



Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:


ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area


Share this post

Link to post
Share on other sites
This topic is now closed to further replies.