Hi,
hier einmal wo das Ding dauernd während es im AFK-Modus ist deinen Text spamt:
PHP Code:
Global $AFK
$Chatfenstertitel = "- Chat"
HotKeySet("{right}", "ToggleAFK")
While 1
Sleep(100)
WEnd
Func ToggleAFK()
$AFK = Not $AFK
While $AFK
ToolTip('AFK', 0, 0)
If WinActive($Chatfenstertitel) Then
spam_chat()
Else
WinActivate($Chatfenstertitel)
WinWaitActive($Chatfenstertitel)
spam_chat()
EndIf
WEnd
ToolTip("")
EndFunc ;==>ToggleAFK
Func spam_chat()
Send("Hallo,ich bin gerade beschäftigt!")
Send("{ENTER}")
Sleep(1000)
Send("Ich werde sobald ich Zeit hab antworten!")
Send("{ENTER}")
Sleep(1000)
EndFunc ;==>spam_chat
Oder als einfachere Version, wo es nur einmal bei Tastendruck den Text spamt:
PHP Code:
$Chatfenstertitel = "- Chat"
HotKeySet("{right}", "AFK")
While 1
Sleep(100)
WEnd
Func AFK()
If WinActive($Chatfenstertitel) Then
spam_chat()
Else
WinActivate($Chatfenstertitel)
WinWaitActive($Chatfenstertitel)
spam_chat()
EndIf
EndFunc ;==>AFK
Func spam_chat()
Send("Hallo,ich bin gerade beschäftigt!")
Send("{ENTER}")
Sleep(1000)
Send("Ich werde sobald ich Zeit hab antworten!")
Send("{ENTER}")
Sleep(1000)
EndFunc ;==>spam_chat
Als Anregung für weitere Skripts :-)