Register for your free account! | Forgot your password?

You last visited: Today at 19:37

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

 

autoIt3 problem

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   #2
 
elite*gold: 0
Join Date: Aug 2008
Posts: 821
Received Thanks: 910
ControlSend ("Warhammer","",$handle,2)

$handle here is the control ID, not the title of the window


felixli93 is offline  
Old   #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   #4
 
elite*gold: 0
Join Date: Apr 2006
Posts: 126
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



« Previous Thread | Next Thread »

Similar Threads
Autoit3 -> AHK?
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...
12 Replies - Mabinogi
Autoit3
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...
4 Replies - Guild Wars
[AutoIt3]If und Then
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...
1 Replies - AutoIt
SF - AutoIt3
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...
2 Replies - Soldier Front
AutoIt3
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...
4 Replies - Metin2 Main - Discussions / Questions



All times are GMT +1. The time now is 19:37.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.