Sign in to follow this  
Followers 0
demo

How Do You Make A Script Repeat Itself?

4 posts in this topic

#1 ·  Posted (edited)

Ok here is my script. How can you make this part repeat? I need to make it so that the person can repeat it as many times as he/she wants

;==========IniRead===============

SetEnv, ShenkFile, %A_SCRIPTDIR%\\Shenk.ini

IniRead, LoadDelay, %ShenkFile%, GameSettings, LoadDelay

IniRead, ActiveAccount, %ShenkFile%, AccountSettings, Account

IniRead, ActivePassword, %ShenkFile%, AccountSettings, Password

IniRead, CharLocation, %ShenkFile%, AccountSettings, CharLocation

IniRead, Repeat Game, %ShenkFile%, GameSettings, Repeat Game

IniRead, Atack How Many Times, %ShenkFile%, AttackSettings, # Of times to attack

IniRead, TeleKey, %ShenkFile%, AttackSettings, Teleport Key

IniRead, AttackKey, %ShenkFile%, AttackSettings, FireBall Key

;==========MAIN===============

GoSub, StartDiablo

GoSub, Login

GoSub, AcessCharacters

;---------------------This part I need to repeat

GoSub, CreateGame

GoSub, WalkToWP

GoSub, WalkToShenk

GoSub, KillShenk

GoSub, QuitGame

----------------------End of repeat

Edited by demo

Share this post


Link to post
Share on other sites



I really do need help. Can someone please help me?


Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I want to make it so that it will repeat intself intill the user says it to stop

EXAMPLE:

Repeat, 7

EndRepeat

Edited by demo

Share this post


Link to post
Share on other sites

If all else fails:

If the script isn't too complicated, you could convert it from AutoIt2 to 3 and thereby gain the hotkey features of AutoIt3. If the script is complex or you don't want to convert it, you could try AutoHotkey, which allows old AutoIt2 scripts to be enhanced with hotkeys and new commands.

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0