
Originally Posted by
Moxxy
Thanks man

when you say 'loop' itself, do you mean carry on repeating the steps until i exit the script?
Yep, that's what loop means
but I think you would have to have a big sleep, else the site wouldn't be able to load before the bot starts again.

Originally Posted by
Moxxy
And how do I make it run in the background so I can other stuff while the bot is running.
I am aware of how to use mouse co-ordinates and the basic send function but the reason i originally gave up with AutoIt was because I couldnt make anything run in the background..
ControlClick & ControlSend functions.
The following is an example of writing "This string is sent in the backgroun" pushing "ENTER" and then writing "See, it isn't that hard afterall?
". Then we'll make it click... All in the background!
Code:
ControlSend("Untitled - Notepad", "", "[CLASS:Edit; INSTANCE:1]", "This string is sent in the background")
Sleep(1000)
ControlSend("Untitled - Notepad", "", "[CLASS:Edit; INSTANCE:1]", "{ENTER}")
Sleep(1000)
ControlSend("Untitled - Notepad", "", "[CLASS:Edit; INSTANCE:1]", "See, it isn't that hard afterall? ;)")
Sleep(1000)
ControlClick("Untitled - Notepad", "", "MDIClient1", "Left", 1, 100, 200)
Very simple code, and please correct me on the ControlClick if I'm wrong, because I'm not 100% sure about it...
Bookmarks