Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars > GW Bots
You last visited: Today at 02:09

  • 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 12/25/2008, 12:05   #31
 
elite*gold: 602
Join Date: Jun 2008
Posts: 123
Received Thanks: 28
Auch wenn ich die Opt fürs Mausklicken erhöhe, wird das identkit immer sofort ins erste Fach verschoben
anonym110 is offline  
Old 12/25/2008, 12:17   #32
 
aLasca's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 614
Received Thanks: 164
bei nicht sofort, meistens so 3. Reihe 3. Slot
aLasca is offline  
Old 12/26/2008, 12:35   #33
 
elite*gold: 0
Join Date: Oct 2008
Posts: 19
Received Thanks: 1
Mein Nestlinge Bot läuft im Hintergrund .. zumindest eine Version dieses viechs Ich nutz da die ganz normale ControlClick Funktion von Autoit geht super

AutoItSetOption("WinTitleMatchMode", 2)
Opt("SendKeyDownDelay", 20)
Opt("SendKeyDelay", 15)
Opt("MouseClickDelay", 20)
Opt("MouseClickDownDelay", 15)

anfangs definieren sonst macht der nur mist ... okay da ich im Fenster spiele hab ich da so meine Schwierigkeiten gehabt weil ich das ding ja wieder völlig über die Gui Konfigurierbar gemacht hab und die Koordinaten so gar nicht passen .. aber hey ich weiß jezt das ich ein Fensteroffset von -8 x und -28 y einberechnen muß und taddaa es geht. Leider hat das mit der Verkaufenfunktion im Hintergrund nicht geklappt weil PixelSearch so gar nicht im Inaktiven Fenster Funktioniert
ylfi1337 is offline  
Old 12/26/2008, 14:24   #34
 
elite*gold: 20
Join Date: Feb 2007
Posts: 3,080
Received Thanks: 4,294
zum fenstermodus...es sollte passen wenn du im autoitwindow info tool auf "window" in den optionen stellst. dann wird der balken vom fesnter meines wissens nach gleich abgezogen.
kknb is offline  
Old 12/26/2008, 15:08   #35
 
| Moep |'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,079
Received Thanks: 438
Quote:
Originally Posted by kknb View Post
zum fenstermodus...es sollte passen wenn du im autoitwindow info tool auf "window" in den optionen stellst. dann wird der balken vom fesnter meines wissens nach gleich abgezogen.
Falsch!
Der Balken wird nicht abgezogen. Der Balken kann außerdem unterschiedlich groß sein, je nach Darstellung.
Außerdem musst du dann noch eine Option setzen.

Opt("MouseCoordMode",0)

Damit die coords relativ zum aktiven Fenster stehen. Als Vorgabe sind hier nämlich die absoluten coords vom Desktop gegeben, was ja demnach woanders wäre

so long, hf
| Moep | is offline  
Old 12/26/2008, 15:26   #36
 
Gabba2's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,403
Received Thanks: 918
Wenn ihr das Window Info Tool auf Client stellt und in AutoIT Opt("MouseCoordMode",2) wird doch bei beidem der Rand des Fensters abgezogen o0
Gabba2 is offline  
Old 12/26/2008, 15:29   #37
 
| Moep |'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,079
Received Thanks: 438
Quote:
Originally Posted by Gabba2 View Post
Wenn ihr das Window Info Tool auf Client stellt und in AutoIT Opt("MouseCoordMode",2) wird doch bei beidem der Rand des Fensters abgezogen o0
ownd!!!
| Moep | is offline  
Old 12/26/2008, 15:32   #38
 
Gabba2's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,403
Received Thanks: 918
Quote:
Originally Posted by | Moep | View Post
ownd!!!
Check ich jetzt nicht Hab ich euch so falsch verstanden oder wie ist das jetzt gemeint?
Gabba2 is offline  
Old 12/26/2008, 15:36   #39
 
| Moep |'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,079
Received Thanks: 438
Quote:
Originally Posted by Gabba2 View Post
Check ich jetzt nicht Hab ich euch so falsch verstanden oder wie ist das jetzt gemeint?
1:0 für dich!
War dass verständlicher?
| Moep | is offline  
Old 12/26/2008, 15:36   #40
 
elite*gold: 0
Join Date: Oct 2008
Posts: 19
Received Thanks: 1
HIlft Dir aber nichts wenn Du im Script mit MouseGetPos() arbeitest
Ich bin doch son Parameterfreak :P
ylfi1337 is offline  
Old 12/26/2008, 15:44   #41
 
Gabba2's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,403
Received Thanks: 918
Inwiefern hilft dir das nichts? Bei MoouseGetPos wird dann doch die Position genauso relativ zur Anwendungsfläche angezeigt/genommen. Oder was willst du machen was da Probleme bereitet?
Bin ich eig. heut so schwer von Begriff oder drücken sich die Leuts was undeutlich aus?^^
Gabba2 is offline  
Old 12/26/2008, 20:42   #42
 
elite*gold: 0
Join Date: Oct 2008
Posts: 19
Received Thanks: 1
MousGetPos nimmt die Koordinaten relativ zum Desktop und demnach stimmen die für den ControlClick nicht um die Fensterleiste.
Mag sein das es da was elegenteres gibt aber ich kenn das Offset für den krams und lass das Automatisch runterrechnen
ylfi1337 is offline  
Old 12/26/2008, 21:25   #43
 
Gabba2's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,403
Received Thanks: 918
mousegetpos nimmt doch die Koordinaten eben so wie du ihm sagst wie er sie geben soll also wenn du Opt("MouseCoordMode",2) hast wirds auch relativ zur Anwendugsfläche genommen genau wie beim Controlclick dann, oder?
Probiers aus es kommen die selben Werte wie beim WindowInfoTool raus.
Code:
Opt("WinTitleMatchMode", 3)
Opt("MouseCoordMode", 2)

while 1
$pos = MouseGetPos()
tooltip("Mouse x,y: "& $pos[0] & "," & $pos[1], 0, 0)
Sleep(50)
wend
Gabba2 is offline  
Old 01/03/2009, 20:00   #44
 
aLasca's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 614
Received Thanks: 164
Also.. ich hab immernoch das selbe Problem wie vorher - das Identkit wird mit den Items ausgetauscht, obwohl Opt gesetzt ist und 3s Sleep drin sind..

PHP Code:
Func _MakeLong($LoWord$HiWord)
    Return 
BitOR($HiWord 0x10000BitAND($LoWord0xFFFF))
EndFunc   ;==>_MakeLong

Func _MouseClick
($hWnd$button$x$y$times 1$delay 15) ; Use the relative coords to the client area of the active window
    
If $hWnd 0 Then
        SetError
(-1)
        Return
    EndIf
    
    
Local $ix
    Local $lParam 
_MakeLong($x$y)
    
Local $user32 DllOpen("user32.dll")
    
    
$button StringLower($button)
    
    If 
$button "left" Then
        
For $ix 1 To $times
            DllCall
($user32"int""PostMessage""hwnd"$hWnd"int"0x200"int"0"long"$lParam) ; Move
            DllCall
($user32"int""PostMessage""hwnd"$hWnd"int"0x201"int"1"long"$lParam) ; Down
            DllCall
($user32"int""PostMessage""hwnd"$hWnd"int"0x202"int"0"long"$lParam) ; Up
            
            
If $ix $times Then Sleep($delay)
        
Next
    
ElseIf $button "right" Then
        
For $ix 1 To $times
            DllCall
($user32"int""PostMessage""hwnd"$hWnd"int"0x200"int"0"long"$lParam) ; Move
            DllCall
($user32"int""PostMessage""hwnd"$hWnd"int"0x204"int"2"long"$lParam) ; Down
            DllCall
($user32"int""PostMessage""hwnd"$hWnd"int"0x205"int"0"long"$lParam) ; Up
            
            
If $ix $times Then Sleep($delay)
        
Next
    
Else
        
SetError(-2)
        If 
$user32 <> -1 Then DllClose($user32)
        Return
    EndIf
    If 
$user32 <> -1 Then DllClose($user32)
EndFunc   ;==>_MouseClick

Opt
("MouseClickDelay"1000)

func _ident()

$hwnd0 WinGetHandle("Guild Wars")
ControlSend($hwnd0"""""{.}")
Sleep(500)
$ident_x 40
$ident_y 
318
$x 
41
$y 
78

For $iy $y To $y 140 Step 45
For $ix $x To $x 165 Step 40
ControlClick
($hwnd0"""""left"2$ident_x$ident_y)
Sleep(3000)
_MouseClick($hwnd0"left"$ix$iy180)
Next
Next
EndFunc 
;==>ident 

_ident
() 
aLasca is offline  
Old 01/06/2009, 20:07   #45
 
elite*gold: 0
Join Date: Oct 2008
Posts: 19
Received Thanks: 1
Die Controlsend geschichten sind eh mehr Zufall als definitiv hab ich das Gefühl

Func resign()

sleep (2000)
ControlSend ($handle , "", "","s")
ControlSend ($handle , "", "","{Enter}")
Sleep (100)
Opt("SendKeyDownDelay", 100)
ControlSend ($handle , "", "","{LSHIFT}+7resign{Enter}")
Opt("SendKeyDownDelay", 20)
sleep (4000)
fudas($resignx,$resigny,20,4)
ControlClick ( $handle, "", "" , "left" , 1 ,Random($lowx,$highx), Random($lowy,$highy))
sleep (7000)
EndFunc

in 8 von 10 fällen gehts den rest baut der mist ... /resgn oder /rgn sehr cool auch 7resign .. jaa ich mag autoit ..
Identen hab ich nich noch nicht rangemacht bisher verkauf ich nur alles außer Gold oder Lila .. geht aber auch nicht im Hintergrund weil Pixelsearch irgendwie alles ansatzweise hwndmäßige ignoriert ..
ylfi1337 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 +1. The time now is 02:09.


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