Sign in to follow this  
Followers 0
onix

Auto actions in IE

1 post in this topic

Hello to autoit comunity, i am new (from yesterday) and i am trying to learn some things about this program but i can't find good tutorials (there was only one "hello world" and i need some more to read) . This is my first PC language that i am trying to learn (i am not sure if it's language but i hope you guis to help me). I decide for my first script to create a script for 1 game played in internet so far i got this

Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")

;button pressed

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(10000)
        ToolTip('Script is "Paused"',0,0)
    WEnd
    ToolTip("")
EndFunc

Func Terminate()
    Exit 0
EndFunc

;Script

sleep ("6000")
While 1
Opt("WinWaitDelay",100)
Opt("WinTitleMatchMode",4)
Opt("WinDetectHiddenText",1)
Opt("MouseCoordMode",0)
MouseMove(289,389)
MouseDown("left")
MouseUp("left")
sleep ("3000")
MouseMove(374,582)
MouseDown("left")
MouseUp("left")
sleep ("3000")
MouseMove(391,599)
MouseDown("left")
MouseUp("left")
sleep ("3000")
MouseMove(589,518)
MouseDown("left")
MouseUp("left")
sleep ("3000")
MouseWheel("down", 10)
sleep ("3000")
MouseMove(514,574)
MouseDown("left")
MouseUp("left")
sleep ("3000")
MouseMove(111,236)
MouseDown("left")
MouseUp("left")
sleep ("600000")
Wend

the problem is that when i left the PC over the night dunno why the explorer was in a fully diferent menu of the game. So i was wondering how i can make sure that the script is clicking buttons that i desire (it doesn't matter where they are in the screen). I also find another program alot simply than this with alot of tutorials in the site of it (also how to make mouse auto moving, how to recognize colors on the screen and lick on them and so on) but here i search in this section for 2 hours to find some one that need script for similar thing to me to copy the script and edit it.

So if it's posible to make the script to search for pictures and click on them or some other way to secure the clicking

Share this post


Link to post
Share on other sites



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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0