Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 00:38

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

Advertisement



Need for Speed World QR Bot

Discussion on Need for Speed World QR Bot within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2012
Posts: 17
Received Thanks: 1
Post Need for Speed World QR Bot

Hey, ich baue gerade zu lernzwecken den QR-Bot von FTW in AutoIt nach. Und bei manchen Sachen komme ich irgendwie nicht weiter. Der Bot läuft schon mal im Hintergrund und macht auch was er soll. Mein Problem ist aber, das wenn ich das Fenster von NFSW verschiebe, es zu fehlerhaftn Mausklicks kommt. Logisch, da ich xy Koordinaten verwende. Ich wäre dankbar wenn da jemand helfen könnte. Ich hab schon etliche tut´s gelesen, bin aber noch zu neu in der Materie. Um es noch mal deutlich zu sagen, ich versuche zu lernen, dafür versuche ich nachzubauen. Just for fun.

Hier mal das Script bislang:

AutoItSetOption("WinTitleMatchMode", 2)
$windowname="SPEED"
$handle = WinGetHandle($windowname, "")
If @error Then
MsgBox(4096, "Fehler", "Spiel ist nicht gestartet. Bitte zuerst Need for Speed starten!")
Else

while 1
sleep(4000)
ControlSend($windowname,'','',"{ALTDOWN}{CTRLDOWN} {9}")
ControlSend($windowname,'','',"{ALTUP}{CTRLUP}{9}" )
sleep(7000)
ControlSend($windowname,'','',"{ENTER 1}")
ControlSend($windowname,'','',"{ESC 2}")
ControlSend($windowname,'','',"{ENTER 1}")
Sleep(3000)
MouseClick ("left",641,322,1)
Sleep (2000)
MouseClick ("left",582,407,1)

WEnd



EndIf
hondaerazor is offline  
Old 09/08/2012, 19:53   #2
 
Ludder231's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
Vllt. gehts mit der "CLASS" vom Au3 Window Tool.
Ludder231 is offline  
Old 09/08/2012, 21:53   #3
 
elite*gold: 0
Join Date: Sep 2012
Posts: 17
Received Thanks: 1
Hey, danke erst mal für die schnelle Antwort. Ich bin echt noch ganz am Anfang mit AutoIt. Kannst du etwas genauer werden? Ich meine mit dem Window Info Toolhab ich die Class schon lokalisiert. Aber wie setze ich es ein?
hondaerazor is offline  
Old 09/08/2012, 22:13   #4
 
Ludder231's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
Wei0ß ich jz garnicht auf die Schnelle. Habs schon ewig nicht benutzt. Ich glaube als 2. Parameter. Sonst drück F1 in Scite das ist die Hilfe.
Ludder231 is offline  
Old 09/09/2012, 12:11   #5
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,234
Received Thanks: 1,095
use memory read/write ... >.> nfs has no anticheats... why do all this ****** button clicking
fear-x is offline  
Old 09/09/2012, 13:23   #6
 
.Dee's Avatar
 
elite*gold: 15
Join Date: Oct 2011
Posts: 363
Received Thanks: 113
@ fear-x because it's serverside '?
.Dee is offline  
Old 09/09/2012, 14:15   #7
 
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,149
Wieso benutzt du nicht einfach ControlClick()?
KDeluxe is offline  
Reply




All times are GMT +1. The time now is 00:38.


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