AutIt Problem

12/24/2009 11:05 michael3000#1
Hi,
ich hab mir gestern hier im forum so eine autoit anleitung angesehen und hab mir dann gleich mal einen autologin bot gemacht. so jetzt mein problem ich starte metin2 immer im fenstermodus (das soll auch so bleiben) aber immer wenn es gestartet wird verrutscht es um ein paar millimeter auf dem desktop also dann stimmen die xxx und yyy werte nicht mehr. also kann man das irgendwie so machen das autoit nur die koordinaten von einem bestimmten fenster benutzt ? also das man das fenster dann praktisch auch verschieben könnte aber trozdem noch das richtige an klickt...

hier noch mein script:
Quote:
mousemove ( 417, 21) ; hier ist mein metin2 symbol aufm desktop
mouseclick ("left")
mouseclick ("left")
sleep (5000) ; warten bis metin gestartet wurde
mousemove ( 506,690) ; soll auf server7 gehen, aber das geht ja nicht >.< (nur manchmal^^)
mouseclick ("left")
sleep (100)
mousemove( 764, 607) ; hier auf ch2 (geht auch manchmal daneben
mouseclick ("left")
mousemove ( 763, 902) ; hier auf einloggen
mouseclick ("left")
sleep (100)
send ("xxx")
send ("{Enter}") ; id eingeben
send ("xxx")
send ("{Enter}") ; pw eingeben
sleep (10000)
mousemove ( 260,627) ; auf start klicken
mouseclick ("left")
exit
12/24/2009 12:00 AllesVergeben#2
Dafür gibt's ne extra AutoIT-Sektion...:

[Only registered and activated users can see links. Click Here To Register...]

#Reported

@Topic:

Schau dir die Seite an:

[Only registered and activated users can see links. Click Here To Register...]

Opt("MouseCoordMode", 1-3)
Opt("PixelCoordMode", 1-3)

PixelCoordMode Sets the way coords are used in the pixel functions, either absolute coords or coords relative to the window defined by hwnd (default active window):
0 = relative coords to the defined window
1 = absolute screen coordinates (default)
2 = relative coords to the client area of the defined window

MouseCoordMode Sets the way coords are used in the mouse functions, either absolute coords or coords relative to the current active window:
0 = relative coords to the active window
1 = absolute screen coordinates (default)
2 = relative coords to the client area of the active window

Lesen und denken und du hast es.
12/24/2009 12:06 michael3000#3
dankö
12/24/2009 12:49 Der-Eddy#4
ich würde raten das:
Quote:
mousemove ( 417, 21) ; hier ist mein metin2 symbol aufm desktop
mouseclick ("left")
mouseclick ("left")
gegen
Quote:
Run ("C:\...\Metin2*") ; Pfad eingeben
zu tauschen
12/24/2009 14:23 DraaaKe#5
Und zum Schluss das auf Start Klicken.. nur aufwendig mach einfach:

Send("{Enter}")