Teamspeak Poke-Script

03/12/2013 18:12 KingDingD0ng#1
Hallo,

kann mir jmd sagen was damit nicht sitmmt?

Ist ein Poke-Script für Teamspeak.
Funktioniert alles bis zum abschicken, dies funktioniert nicht.

Code:
AutoIt Version: 3.3.8.1
Author:         myName


Script Function:
    Template AutoIt script.


#ce ----------------------------------------------------------------------------


; Script Start - Add your code below here


HotKeySet("{ENTER}", "_klicken")
HotKeySet("{ESC}", "_ende")
HotKeySet("{PAUSE}", "_pause")
HotKeySet("{NUMPADADD}", "_position")


_pause()


Func _pause()
    While 1
        Sleep(100)
        ToolTip('Script is paused, Maus auf das Trollopfer bewegen und Enter drücken', 0, 0)
    WEnd
EndFunc


Func _position()
    Global $pos = MouseGetPos()
    Global $posx = $pos[0]
    Global $posy = $pos[1]
    Global $posx2 = $pos[0] + 30
    Global $posy2 = $pos[1] + 35
EndFunc


Func _klicken()
    While 1
        MouseMove($posx, $posy, 500000)
        MouseClick("right")
        MouseMove($posx2, $posy2 , 100)
        MouseClick("left")
        Sleep(1)
;~         MouseMove(928, 554, 500000)
;~         MouseClick("left")
        Send("{TAB}")
        Sleep(100)
        Send("{ENTER}")
        Sleep(1)
        ToolTip('Script is running', 0, 0)
    WEnd
EndFunc


Func _ende()
    Exit
EndFunc
Hab das Problem anders gelöst.
Das OK-Feld wurde nicht richtig erkannt.
Habe es nun mit Maus-Position einfach gelöst.
03/14/2013 20:36 elmarcia#2
Quote:
did you take a look at your hotkeys?
Especially the hotkey for getting the positions of the mouse :D