Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 05:27

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Autoit script working in background help

Discussion on Autoit script working in background help within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2013
Posts: 12
Received Thanks: 5
Autoit script working in background help

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)
-Ashi is offline  
Old 09/13/2013, 17:30   #2
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Instead of using ControlClick you could have used WinHttp which is more reliable than ControlClick.

As you can see ControlClick wants the controlID and not "Left".
alpines is offline  
Old 09/13/2013, 17:33   #3
 
elite*gold: 0
Join Date: Jul 2013
Posts: 12
Received Thanks: 5
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?
-Ashi is offline  
Old 09/13/2013, 17:36   #4
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
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 .
alpines is offline  
Reply


Similar Threads Similar Threads
[AutoIt] anti-AFK Bot Background Mode
07/12/2019 - Aion Hacks, Bots, Cheats & Exploits - 25 Replies
Hi! this is my first post here, so... Hello Everyone!! I made this simple anti-AFK bot with background mode so you can do something else when Aion is minimized. It just hit "P" every 10 sec. It works on Full screen and Windowed mode.
[SCRIPT] P.E.T. Auto-Kamikaze (working in background, no mouse clicks)
01/16/2012 - DarkOrbit - 88 Replies
With the new version client of darkorbit 5.x, this tool is not working anymore, if an update will be I will post here Short info: This script will auto-repair, auto-start, auto-select kamikaze. Is all working in background so it wont use your mouse as coordinates, so you can battle easy in PvP or use on cubikons. Also you can have multiple modules and still working like a charm. Download and use: PET Kamikaze 1.3 Must do to work:
AutoIt script not working
12/28/2011 - League of Legends - 2 Replies
It uses send() commands which aren't picked up at all in-game. How are the send() commands prevented and how can it be bypassed? Thanks,
[AutoIt] anti-AFK Bot Background Mode v2
11/19/2010 - Aion Hacks, Bots, Cheats & Exploits - 5 Replies
I made this simple anti-AFK bot with background mode so you can do something else when Aion is minimized. It just hit "P" every 10 sec. It works on Full screen and Windowed mode. Tested on Win XP x84, Win Vista x64, Win 7 x64. ;~ ************************************************** ;~ Aion Anti-AFK Background Mode ;~ Ver 1.0 10/1/2009 ;~



All times are GMT +2. The time now is 05:27.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.