Autoit script working in background help

09/13/2013 17:21 -Ashi#1
Hi, so I have an issue with my script, I'm trying to get it to run on internet explorers in the background, with ie opened or minimized, doesn't matter, but it doesn't seem to do a thing when I run it
Here's part of the script

HotKeySet("{F7}", "StartStop")
HotKeySet("{F8}", "ExitProgram")

Opt("WinTitleMatchMode", 2)
$handle = WinGetHandle("Windows Internet Explorer")
$cId = "[CLASS:Internet Explorer_Server; INSTANCE:1]"
$on = False

While 1

While $on = True
Sleep(1500)
ControlClick($handle, "", "Left", 1, 552, 47)
ControlClick($handle, "", "", "Left", 1, 1044, 575)
Sleep(700)
ControlClick($handle, "", "", "Left", 1, 1170, 497)
Sleep(700)
ControlClick($handle, "", "", "Left", 1, 1011, 653)
09/13/2013 17:30 alpines#2
Instead of using ControlClick you could have used WinHttp which is more reliable than ControlClick. [Only registered and activated users can see links. Click Here To Register...]

As you can see ControlClick wants the controlID and not "Left".
09/13/2013 17:33 -Ashi#3
So, if I fix it like this

WinHttp($handle, "", "Left", 1, 552, 47)
WinHttp($handle, "", "", "Left", 1, 1044, 575)
Sleep(700)
WinHttp($handle, "", "", "Left", 1, 1170, 497)
Sleep(700)
WinHttp($handle, "", "", "Left", 1, 1011, 653)

will it work?
The thing is, I see people using controlclick for it, so I'm not sure

What about controlsend?
09/13/2013 17:36 alpines#4
You didn't get what I was talking about, "WinHttp" is no function.
WinHttp is a way to interact with webservers to create Bots for online games etc...
ControlClick requires the ControlID instead of "Left" but $cID is not the right value.

Better start making the bot new and use WinHttp instead, you can look up the reference of WinHttp in the WinHttp.au3 [Only registered and activated users can see links. Click Here To Register...].