Register for your free account! | Forgot your password?

You last visited: Today at 04:01

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

Advertisement



autoIt3 problem

Discussion on autoIt3 problem within the General Gaming Discussion forum part of the General Gaming category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2006
Posts: 128
Received Thanks: 3
autoIt3 problem

Hi everybody,

i was bored with my Choppa today and thought itd be a good idea to just let a bot go level for me, so i checken out autoit and made a real basic bot, very simple and all... Well, i figured it worked out quite nicely for me, ill just post the code i put in the script right here, so u people see what im trying to do. Script is real basic and nothing special, i know.
Quote:

HotKeySet("{F9}", "endthis")

$answer = MsgBox(4, "Choppa Level Bot", "rdy?")
AutoItSetOption ("WinTitleMatchMode",2)

If $answer = 7 Then
MsgBox(0, "Byebye", "cya!")
Exit
EndIf

$count = 0
Do
botFuncChoppa()
Until $count > 0

Exit


Func botFuncChoppa()
WinWaitActive("Warhammer")
Send("{TAB}");
Sleep(1000);
WinWaitActive("Warhammer")
Send("0");
Sleep(1000);
WinWaitActive("Warhammer")
Send("0");
Sleep(1000);
WinWaitActive("Warhammer")
Send("1");
Sleep(1000);
WinWaitActive("Warhammer")
Send("1");
Sleep(1000);
WinWaitActive("Warhammer")
Send("1");
Sleep(1000);
WinWaitActive("Warhammer")
Send("2");
Sleep(1000);
WinWaitActive("Warhammer")
Send("2");
Sleep(1000);
WinWaitActive("Warhammer")
Send("2");
Sleep(1000);
WinWaitActive("Warhammer")
Send("!1");
Sleep(1000);
WinWaitActive("Warhammer")
Send("2");
Sleep(1000);
WinWaitActive("Warhammer")
Send("2");
Sleep(1000);
WinWaitActive("Warhammer")
Send("3");
Sleep(1000);
WinWaitActive("Warhammer")
Send("2");
Sleep(1000);
WinWaitActive("Warhammer")
Send("2");
Sleep(1000);
WinWaitActive("Warhammer")
Send("{F1}");
Sleep(1000);
WinWaitActive("Warhammer")
Send("2");
Sleep(1000);
WinWaitActive("Warhammer")
Send("2");
Sleep(1000);
WinWaitActive("Warhammer")
Send("3");
Sleep(1000);
WinWaitActive("Warhammer")
Send("2");
Sleep(1000);
WinWaitActive("Warhammer")
Send("2");
Sleep(1000);
WinWaitActive("Warhammer")
Send("2");
Sleep(1000);
WinWaitActive("Warhammer")
Send("0");
Sleep(1000);
WinWaitActive("Warhammer")
Send("0");
Sleep(1000);
WinWaitActive("Warhammer")
Send("1");
Sleep(1000);
WinWaitActive("Warhammer")
Send("1");
Sleep(1000);
WinWaitActive("Warhammer")
Send("1");
Sleep(1000);
WinWaitActive("Warhammer")
Send("2");
Sleep(1000);
WinWaitActive("Warhammer")
Send("2");
Sleep(1000);
WinWaitActive("Warhammer")
Send("2");
Sleep(1000);
WinWaitActive("Warhammer")
Send("!1");
Sleep(1000);
WinWaitActive("Warhammer")
Send("2");
Sleep(1000);
WinWaitActive("Warhammer")
Send("3");
Sleep(1000);
WinWaitActive("Warhammer")
Send("2");
Sleep(1000);
WinWaitActive("Warhammer")
Send("2");
Sleep(1000);
WinWaitActive("Warhammer")
Send("2");
Sleep(1000);
WinWaitActive("Warhammer")
Send("2");
Sleep(1000);
WinWaitActive("Warhammer")
Send("2");
Sleep(1000);
WinWaitActive("Warhammer")
Send("3");
Sleep(1000);
WinWaitActive("Warhammer")
Send("2");
Sleep(1000);
WinWaitActive("Warhammer")
Send("2");
Sleep(1000);
WinWaitActive("Warhammer")
Send("2");
Sleep(15000);
EndFunc

Func endthis()
Exit
EndFunc
So what im basically doing is pressing tab ( next enemy ) and then throw my axe at him... followed by several attacks and so on and so on... Now... i know theres a way to send controls to a minimized window via controlSend() function... but i just couldnt get it to work with my bot right here, its just not doing anything.

Now what i tried looked something like this:
Quote:
$handle = WinGetHandle("Warhammer")
ControlSend($handle,"","","2")
And that like in all kinds of variations i could think of... googled stuff up too, but couldnt get it to work...

So now.. is there anybody out there who could provide me some help right here? I just need some code snippet that works or a little advice

thanks in advance
danny
Dannydunno is offline  
Old 05/03/2009, 13:05   #2
 
felixli93's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 820
Received Thanks: 909
ControlSend ("Warhammer","",$handle,2)

$handle here is the control ID, not the title of the window
felixli93 is offline  
Old 05/03/2009, 18:19   #3
 
elite*gold: 0
Join Date: Jul 2006
Posts: 128
Received Thanks: 3
hmmm ... tried that...

i guess its just not possible with warhammer since the window doesnt react to keystrokes ( real or fake ) if it doesnt have focus...
Dannydunno is offline  
Old 05/04/2009, 10:32   #4
 
hhan's Avatar
 
elite*gold: 0
Join Date: Apr 2006
Posts: 123
Received Thanks: 15
ControlSend doesn't work for WAR. A lot of programmers tried to do a minimized function, but all failed

maybe help this:
hhan is offline  
Reply


Similar Threads Similar Threads
Autoit3 -> AHK?
02/06/2010 - Mabinogi - 12 Replies
I've noticed more people use Autoit3 for scripting, but I personally prefer AHK. But does Autoit3 scripting work the same way as AHK? I've seen some useful scripts here, especially for weaving (which is what I need) but I really don't like the fact that I can't pause the script (even if I press the pausing hotkey, it just doesn't stop for some reason). Let's say I'm using this Autoit3 script to weave my cobwebs: #include <ImageSearch.au3> MsgBox(0,"Yeah!","get'em GEWD!",5) Global...
Autoit3
09/14/2009 - Guild Wars - 4 Replies
Hallo, hab ein paar Fragen zu Autoit. 1. Mit MsbBox öffnet man ja ein Fenster aber wie schreibe ich in das Fester(mit welchem Befehl). z.B. Wie alt bist du? Antwort: 2. Wie speichert man dieses als Variabel. Gruss artimes:handsdown:
[AutoIt3]If und Then
04/23/2009 - AutoIt - 1 Replies
Hey habe eine frage ich habe jetzt eine Bot der über ein Internetbrowser läuft Leider hängen sich mehrere Browser immer auf... Ich arbeite mit WinActivate("xxx - Mozilla Firefox) Winactivate("xxx - Internet Explorer") und da sich ein Browser immer aufhängt würde ich gerne fragen wie das geht mit wenn unten im Fenstern steht (seitenladefehler - Mozilla Fiorefox) dass der Bot mit IF und then arbeitet könnt ihr mir bitte beschreiben wies geht?
SF - AutoIt3
08/29/2008 - Soldier Front - 2 Replies
I was wondering if anyone had any ideas about how to get AutoIt to work in-game.I've made a type of Anti-Recoil tool that works flawlessly outside of the game.Maybe someone can check it out and see whats up with it. The uploaded file comes with AutoIt v3 for those who do not have the updated version of AutoIt. Along with the .au3 script file as well as the compiled .exe for testing purposes.Any ideas would be appreciated. The way this works is you run the .exe (or the .au3 file after...
AutoIt3
04/08/2008 - Metin2 - 4 Replies
Hi,ich habe mir mal AutoIt3 instaliert und jetzt blicke ich garnichts mehr durch wie man da z.b attk speed hack erstellt oder fishing bot ich verstehe nicht wo ich dieses zeug die codes also eintragen soll und ja ich weiss einfach auch nicht wie die codes heißen ES WÄRE TOLL WEN IHR MIR HELFEN KÖNNT!!::confused::o



All times are GMT +1. The time now is 04:01.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.