Auto Angriff Bot Problem

03/23/2013 17:25 SilverEmerald#1
Hello,
I'm trying to farm conquest with hitrange + 1 hit kill :D I was using this code , but dunno why but it keep aims the floor. So , hitrange doesn't work when it aims the floor. :/ Can any1 help me ? ty~

Code:
#include <Misc.au3>
#include <WinAPI.au3>

#RequireAdmin
Global $go = 0



While 1
if  _IsPressed("1B") Then ;esc key Check if is pressed then exit
		_exit()
	EndIf

if _IsPressed("77") Then ;check if pressed f8
	 _start()
	 EndIf


If $go = 1 Then
	if Not _IsPressed("1B") Then ;check that esc isn't pressed i added this twice to exit while in loop
if _IsPressed("76") Then ;F7 pauses the script
	 _stop()
Else

$cordinate = MouseGetPos() ;get the mouse cordinates to prevent win api to click in 0,0 
_WinAPI_Mouse_Event(0x0002,$cordinate[0],$cordinate[1]) ;mouse down left
Sleep(100)
_WinAPI_Mouse_Event(0x0004,$cordinate[0],$cordinate[1]);mouse up left

;MouseClick("", 581, 530, 2, 1) i replace them too with _winapi_mouse_event
;MouseClick("", 581, 530, 2, 1)
EndIf

Else
	_exit() ;if is pressed esc then exit
EndIf
EndIf
WEnd

Func _start()
	$go =1
	ToolTip("Running",0,0);added tooltip to know if its running or not
	Sleep(1000) ;it has a 1 second sleep so the mouse event will be delayed 1 second :o when start
		ToolTip("")
	EndFunc

Func _stop()
$go = 0
ToolTip("Paused",0,0) ;the same above but for pause
	Sleep(1000)
	ToolTip("")
EndFunc

Func _exit()
	ToolTip("Exit code executed",0,0) ;added exit tooltip
	Sleep(1000)
	Exit 0
EndFunc

#cs 
Here is a list of hotkeys you can make with _ispressed:

01 Left mouse button
02 Right mouse button
04 Middle mouse button (three-button mouse)
05 Windows 2000/XP: X1 mouse button
06 Windows 2000/XP: X2 mouse button
08 BACKSPACE key
09 TAB key
0C CLEAR key
0D ENTER key
10 SHIFT key
11 CTRL key
12 ALT key
13 PAUSE key
14 CAPS LOCK key
1B ESC key
20 SPACEBAR
21 PAGE UP key
22 PAGE DOWN key
23 END key
24 HOME key
25 LEFT ARROW key
26 UP ARROW key
27 RIGHT ARROW key
28 DOWN ARROW key
29 SELECT key
2A PRINT key
2B EXECUTE key
2C PRINT SCREEN key
2D INS key
2E DEL key
30 0 key
31 1 key
32 2 key
33 3 key
34 4 key
35 5 key
36 6 key
37 7 key
38 8 key
39 9 key
41 A key
42 B key
43 C key
44 D key
45 E key
46 F key
47 G key
48 H key
49 I key
4A J key
4B K key
4C L key
4D M key
4E N key
4F O key
50 P key
51 Q key
52 R key
53 S key
54 T key
55 U key
56 V key
57 W key
58 X key
59 Y key
5A Z key
5B Left Windows key
5C Right Windows key
60 Numeric keypad 0 key
61 Numeric keypad 1 key
62 Numeric keypad 2 key
63 Numeric keypad 3 key
64 Numeric keypad 4 key
65 Numeric keypad 5 key
66 Numeric keypad 6 key
67 Numeric keypad 7 key
68 Numeric keypad 8 key
69 Numeric keypad 9 key
6A Multiply key
6B Add key
6C Separator key
6D Subtract key
6E Decimal key
6F Divide key
70 F1 key
71 F2 key
72 F3 key
73 F4 key
74 F5 key
75 F6 key
76 F7 key
77 F8 key
78 F9 key
79 F10 key
7A F11 key
7B F12 key
7C-7F F13 key - F16 key
80H-87H F17 key - F24 key
90 NUM LOCK key
91 SCROLL LOCK key
A0 Left SHIFT key
A1 Right SHIFT key
A2 Left CONTROL key
A3 Right CONTROL key
A4 Left MENU key
A5 Right MENU key
BA ;
BB =
BC ,
BD -
BE .
BF /
C0 `
DB [
DC \
DD ]

--------------------------------------------------------------------------------------------
Another list for the first parameter of _winapi_mouse_event

------------------------------------------------------------------------------------------
Value	Meaning
MOUSEEVENTF_ABSOLUTE
0x8000
The dx and dy parameters contain normalized absolute coordinates. If not set, those parameters contain relative data: the change in position since the last reported position. This flag can be set, or not set, regardless of what kind of mouse or mouse-like device, if any, is connected to the system. For further information about relative mouse motion, see the following Remarks section.
MOUSEEVENTF_LEFTDOWN
0x0002
The left button is down.
MOUSEEVENTF_LEFTUP
0x0004
The left button is up.
MOUSEEVENTF_MIDDLEDOWN
0x0020
The middle button is down.
MOUSEEVENTF_MIDDLEUP
0x0040
The middle button is up.
MOUSEEVENTF_MOVE
0x0001
Movement occurred.
MOUSEEVENTF_RIGHTDOWN
0x0008
The right button is down.
MOUSEEVENTF_RIGHTUP
0x0010
The right button is up.
MOUSEEVENTF_WHEEL
0x0800
The wheel has been moved, if the mouse has a wheel. The amount of movement is specified in dwData
MOUSEEVENTF_XDOWN
0x0080
An X button was pressed.
MOUSEEVENTF_XUP
0x0100
An X button was released.
MOUSEEVENTF_WHEEL
0x0800
The wheel button is rotated.
MOUSEEVENTF_HWHEEL
0x01000
The wheel button is tilted.
#ce
03/23/2013 17:31 elmarcia#2
Equip cannonade and try with my x7 file this should solve your problem :D
03/23/2013 22:40 ™Mes13™#3
Im using mouse auto clicker and it works great
03/25/2013 14:44 Raikiking#4
U must edit the Script

Code:
$cordinate = MouseGetPos() ;get the mouse cordinates to prevent win api to click in 0,0 
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x0008,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
_WinAPI_Mouse_Event(0x00010,$cordinate[0],$cordinate[1]) ;mouse down right
Sleep(1000)
Send("{F5}")
Finish and u have a Auto attack bot.

And u must the 8.x7 file, edit the Gravity func from -7500 in 10000000 edit

and Suscess

Sry for my bad english