Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars > GW Bots
You last visited: Today at 01:49

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

Advertisement



ControlClick

Discussion on ControlClick within the GW Bots forum part of the Guild Wars category.

Reply
 
Old 01/09/2009, 21:28   #46
 
elite*gold: 0
Join Date: Oct 2007
Posts: 147
Received Thanks: 51
hmm... Also ich mach das clicken in minimierte fenster immer so:

Erstma die Funktion:

Quote:
;================================================= ==============================
;
; Function Name: _MouseClickPlus()
; Version added: 0.1
; Description: Sends a click to window, not entirely accurate, but works
; minimized.
; Parameter(s): $Window = Title of the window to send click to
; $Button = "left" or "right" mouse button
; $X = X coordinate
; $Y = Y coordinate
; $Clicks = Number of clicks to send
; Remarks: You MUST be in "MouseCoordMode" 0 to use this without bugs.
; Author(s): Insolence <[Only registered and activated users can see links. ]>
;
;================================================= ==============================
Func _MouseClickPlus($Window, $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

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.dll", "int", "SendMessage", _
"hwnd", WinGetHandle( $Window ), _
"int", $WM_MOUSEMOVE, _
"int", 0, _
"long", _MakeLong($X, $Y))

DllCall("user32.dll", "int", "SendMessage", _
"hwnd", WinGetHandle( $Window ), _
"int", $ButtonDown, _
"int", $Button, _
"long", _MakeLong($X, $Y))

DllCall("user32.dll", "int", "SendMessage", _
"hwnd", WinGetHandle( $Window ), _
"int", $ButtonUp, _
"int", $Button, _
"long", _MakeLong($X, $Y))
Next
EndFunc
So... dann schreibe ich mir erstmal nen trashscript mit dem inhalt:

WinMove("Guild Wars", "", 0, 0)

Dann benutze ich das autoit window info tool und benutze die cords die unter "Mouse" Stehen.

dann ziehe ich von der Y coordinate 30 ab und es funkzt.

Weis nicht obs bei Guildwars funkzt aber man kanns mal versuchen.

Ps: An MouseCoordMode 0 denken ^^
Haygu is offline  
Old 01/09/2009, 21:34   #47
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,098
Received Thanks: 198
Quote:
Originally Posted by Haygu View Post
hmm... Also ich mach das clicken in minimierte fenster immer so:

Erstma die Funktion:



So... dann schreibe ich mir erstmal nen trashscript mit dem inhalt:

WinMove("Guild Wars", "", 0, 0)

Dann benutze ich das autoit window info tool und benutze die cords die unter "Mouse" Stehen.

dann ziehe ich von der Y coordinate 30 ab und es funkzt.

Weis nicht obs bei Guildwars funkzt aber man kanns mal versuchen.

Ps: An MouseCoordMode 0 denken ^^
MouseCoordMode 2 und die Funktion haben wir schon paar mal gepostet :P
i4mSoH34Vy is offline  
Old 01/10/2009, 09:33   #48
 
aLasca's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 614
Received Thanks: 164
Jo, nur das seins unübersichtlicher ist
aLasca is offline  
Reply


Similar Threads Similar Threads
controlclick?
04/15/2010 - AutoIt - 9 Replies
mal ne frage irgendwie bekomme ich keinen controlclick hin ControlClick ("METIN2","", ]]]) was da falsch?
AutoHotKey help (ControlClick)
12/12/2009 - Conquer Online 2 - 2 Replies
Hi there, I'm working on a background macro for skills (all skills), but I'm having a problem when trying to make it work for SH or healing spells. The problem is with this: ControlClick, x300 y230,ahk_id %id%,,left,2,d This should double click in the 300,230 coords (horse slot) to unequip it. It sends the left click (if I close the equip window will start walking in that direction) but it doesn't sends double click for unequip. Here is the code I've done so far for skills (the code still...
Saufbot (ControlClick)
03/24/2009 - GW Bots - 8 Replies
Hallo an alle, wollte mir einen ganz simplen Saufbot schreiben, jedoch mache ich irgendwas falsch. Nachdem ich die exe erstellt habe, startet der Bot kurz und schließt sich nach ein paar Sekunden wieder. Hier mal der Code func trinken() WinActivate("Guild Wars") sleep(5000) Do
memory und controlclick xD
02/14/2009 - GW Bots - 3 Replies
guten morgen, ich bin gerade dabei meinen bot mit memoryreads auszustattetn, nachdem er nun ne ftp versions abfrage hat sowie über regestrie und gui gesteuert wird. vornerein weg, ich lehne es so ziemlich ab, die tt6 zu benutzen, da ich nicht den vollen umfang verstehe und es net von mir ist ;) das auslesen der werte hab ich soweit, Global $mem_gw = WinGetProcess($gw) Global $mem_id = _MemoryOpen($mem_gw)
Probleme mit ControlClick
01/01/2009 - Guild Wars - 7 Replies
HeyHo, Neues Jahr = Neue Probleme :) Also schreib grade einen Bot fuer GW. Er macht grade auch alles richtig bis auf eins: Er klickt nicht auf den Zurueck zum aussenposten button. ControlClick("Guild Wars","","","left&qu ot;,1,x,y)



All times are GMT +2. The time now is 01:49.


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