Bot für directx game

11/30/2012 21:37 michox#1
Hi together
I am pretty new in the AutoIt scripting [Only registered and activated users can see links. Click Here To Register...] so please if you have a answer explain it well^^
i want to make a little Bot, to use a bug in a game. it tried it with Makros and so on, but my Problem is that it is working on DirectX.
The Script should not be complicated.
i want that it gets the position of the mouse, click there go 10 coordinates on right and click again. As fast as possible, and it shoul be done as long i press any key.
the Game i want to use it is called AvalonHeroes. I've read that i have to use ControlClick in DirectX.
the ControlClick should look like this
PHP Code:
ControlClick "title""text"controlID [, button] [, clicks]] ) 
The AutoIt Window Info tells me this
Quote:
>>>> Window <<<<
Title: AvalonHeroes
Class: AVALONHEROES
Position: 40, 10
Size: 1286, 748
Style: 0x14CA0000
ExStyle: 0x00040100
Handle: 0x0000000000140780

>>>> Control <<<<
Class: Viewport Window
Instance: 1
ClassnameNN: Viewport Window1
Name:
Advanced (Class): [CLASS:Viewport Window; INSTANCE:1]
ID:
Text:
Position: 0, 0
Size: 1280, 720
ControlClick Coords: 656, 370
Style: 0x56000000
ExStyle: 0x00000000
Handle: 0x00000000006305C2

>>>> Mouse <<<<
Position: 699, 405
Cursor ID: 2
Color: 0x72B06B

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<


>>>> Hidden Text <<<<
Until now i tried it with this.
PHP Code:
HotKeySet ("f""start")

Func start()
ControlClick "AvalonHeroes""", [Viewport Window] [, "right" [, 662 [, 324 ]]] )
ControlClick "AvalonHeroes""", [Viewport Window] [, "right" [, 672 [, 324 ]]] )
EndFunc 
then there pop up a error

Quote:
Line 15 (File "C:\Users\Michox\Documents\AVA.au3

ControlClick ("AvalonHeroes", "", [Viewport Window] [, "right" [,662 [,324]]])
ControlClick ("AvalonHeroes", "", [Viewport Window^ERROR

Error: Missing seperator Character after keyword.
Can you please tell me if im even on the right Track? and what thit i wrong. Can i use ControlClick for such games? and is it Important to have the Text? out of that idk exactly what the ControlID is... i think this could be my biggest error.
I hope you can help a newbie with this
edit versteh auch deutsch :D
11/30/2012 21:45 BladeTiger12#2
Here:
PHP Code:
Func start()
ControlClick "AvalonHeroes""""" "right" 662 324 )
ControlClick "AvalonHeroes""""" "right" 672 324 )
EndFunc 
Ignore this '[]'
11/30/2012 22:07 michox#3
ok ty now the error disaperead, but still it doesnt do what i want O.O
11/30/2012 22:13 BladeTiger12#4
Vielleicht akzeptiert Avalon Heroes keine ControlClicks.

Maybe accept Avalon Heroes no ControlClicks?
11/30/2012 22:36 michox#5
gibts da ne andere möglichkeit? ka maus hooken hab ich mal iwo gelesen oder irgendwas mit directinput kp wie gesagt bin noob
11/30/2012 22:53 BladeTiger12#6
Also sowas habe ich nie benutzt.
Aber beste möglichkeit ist glaube ich:
Packete...
Kenn ich mich nicht aus:)
Gibt es abere gute Tutorials in EPVP.