I am pretty new in the AutoIt scripting
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]] )
Until now i tried it with 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 <<<<
PHP Code:
HotKeySet ("f", "start")
Func start()
ControlClick ( "AvalonHeroes", "", [Viewport Window] [, "right" [, 662 [, 324 ]]] )
ControlClick ( "AvalonHeroes", "", [Viewport Window] [, "right" [, 672 [, 324 ]]] )
EndFunc
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.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.
I hope you can help a newbie with this
edit versteh auch deutsch






