I've been troubled with this for a long time...I just ended up using common mouseclick but now i really need to click on a window (game) in BACKGROUND.
doesn't work exactly right, that is it actually click on the named window but only where the mouse is positioned, not in x,y.
And _MouseClickPlus:
Code:
Func _MouseClickPlus($handle, $Button = "left", $X = "", $Y = "", $Clicks = 1)
Local $MK_LBUTTON = 0x0001
Local $WM_LBUTTONDOWN = 0x0201
Local $WM_LBUTTONUP = 0x0202
Local $MK_RBUTTON = 0x0002
Local $WM_RBUTTONDOWN = 0x0204
Local $WM_RBUTTONUP = 0x0205
Local $WM_MOUSEMOVE = 0x0200
Local $i = 0
Local $user32 = DllOpen("user32.dll")
Select
Case $Button = "left"
$Button = $MK_LBUTTON
$ButtonDown = $WM_LBUTTONDOWN
$ButtonUp = $WM_LBUTTONUP
Case $Button = "right"
$Button = $MK_RBUTTON
$ButtonDown = $WM_RBUTTONDOWN
$ButtonUp = $WM_RBUTTONUP
EndSelect
If $X = "" OR $Y = "" Then
$MouseCoord = MouseGetPos()
$X = $MouseCoord[0]
$Y = $MouseCoord[1]
EndIf
For $i = 1 to $Clicks
DllCall($user32, "int", "SendMessage", "hwnd",$handle, "int", $WM_MOUSEMOVE, "int", 0, "long", _MakeLong($X, $Y))
DllCall($user32, "int", "SendMessage", "hwnd", $handle, "int", $ButtonDown, "int", $Button, "long", _MakeLong($X, $Y))
DllCall($user32, "int", "SendMessage", "hwnd", $handle, "int", $ButtonUp, "int", $Button, "long", _MakeLong($X, $Y))
Next
EndFunc
Func _MakeLong($LoWord,$HiWord)
Return BitOR($HiWord * 0x10000, BitAND($LoWord, 0xFFFF))
EndFunc
simply doesn't work, even specifing
Code:
AutoItSetOption("MouseCoordmode", 0)
at the biginning. I thought that the fact I'm using a 64 bit system might be a problem but even with
Code:
#AutoIt3Wrapper_UseX64
Strange fact: I've already made background bot in the same game using
Code:
ControlSend ( "Name", "", "", "commands")
Does anyone ever had the same problem (and solved it) or has suggestion to solve this? Of course I've searched for similar topic in this forum but I've never found a proper solution...
If you're playing on the official servers with active HackShield then you need a bypass do send inputs to the window.
I'm not playing on the official server...the thing I do not understand is why controlSend should work and controlClick not. I mean, both functions send input to the window right?
Yes but, as i specified in the title, I have no controlID of the game (searched with Autoit Window Info and similar programs) nor other information except for the title and class. Specifing class as the third parameter doesn't work either. So what kind of parameter should i put there?
ControlClick 11/12/2014 - AutoIt - 8 Replies $EnemyVp = PixelSearch($AutoShootBackAreaX1,$AutoShootBackAre aY1,$AutoShootBackAreaX2,$AutoShootBackAreaY2,0x0D 7600,20)
If IsArray($EnemyVp) Then
ControlClick($WindowHandle,"",$ControlID ,"left",1,$EnemyVp-25,$EnemyVp)
ControlClick($WindowHandle,"",$ControlID ,"left",1,$EnemyVp-25,$EnemyVp)
ControlClick($WindowHandle,"",$ControlID ,"left",1,$EnemyVp-25,$EnemyVp)
FileWrite($FileHandle,@HOUR & ":" & @MIN & ":" & @SEC & "Enemy detected. Shooting back with coords: " &...
Spiel Blockt ControlClick//Game is blocking ControlClick? any Idea? 01/02/2014 - AutoIt - 6 Replies GAME: TALES OF PIRATES II
----------------------
GERMAN:
Hiho leute .... bin gerade eig, fertig mit pointern etc.. zu finden und wollte gerade einen test run machen wo mein chara einfach mal ne runde läuft so und nun ist das, dass problem das, Tales of Pirates II , ControlClick blockiert -.- ... mir wurden "MouseEvents" vorgeschlagen, Ok gehen aber das sind ja nur link/rechts klicks ... brauche aber das die Maus sich bewegt und ich dabei im hintergrund noch was machen kann sowie...
ControlClick -Help 02/17/2012 - AutoIt - 1 Replies Hallo,
Ganz kurz;
Ich hab Probleme mit ControlKlick könnt ihr den MouseClick für mich ihn Controlklick schreiben?
MouseClick("left", 922, 324)
controlclick? 04/15/2010 - AutoIt - 9 Replies mal ne frage irgendwie bekomme ich keinen controlclick hin
ControlClick ("METIN2","", ]]])
was da falsch?
ControlClick 01/10/2009 - GW Bots - 47 Replies Hi Leute,
Also, ich wollte mal einen Bot schreiben der im Hintergrund läuft, sodass ich nebenbei auf einem anderen Account spielen kann. Nun habe ich folgendes Problem:
Die Idee war folgende: ich wollte den Bot ganz einfach alle Taschen des Inventars öffnen lassen und ihn dann per ControlClick wieder schließen lassen.
Dies soll für mich erstmal eine Art Übung sein, um später eine Sellfunc. drauß zu machen. Nun ist meine Frage.. Wieso passiert da nichts? Er öffnet nur das Inventar,...