Sign in to follow this  
Followers 0
McCraken

Don't work, any idea? See plz!

1 post in this topic

HotKeySet("{F9}", "hide")
HotKeySet("{F10}", "show")

AutoItSetOption("WinTitleMatchMode", 4)
While 1
Sleep(1000)
WEnd

Func hide()
Global $Show = 0
Global $handle = WinGetHandle("METIN2")
WinSetState($handle, "", @SW_MINIMIZE)
If @error Then
MsgBox(0, "ERROR", "HANDLE NOT FOUND")
Else
While 1
$unique = Random(1, 4, 1)
If $unique = 1 Then
ControlSend($handle, "", "", "{1}")
ElseIf $unique = 2 Then
ControlSend($handle, "", "", "{F4}")
ElseIf $unique = 3 Then
ControlSend($handle, "", "", "{1}")
ElseIf $unique = 4 Then
ControlSend($handle, "", "", "{F4}")
EndIf
If $Show > 0 Then ExitLoop
WEnd
EndIf
EndFunc;==>hide

Func show()
Global $Show = 1
WinSetState("METIN2", "", @SW_SHOW)
WinActivate($handle, "")
EndFunc;==>show

problem is............ don't send a key {1} or {F4} to client and a spell no start

send, but char 1, number 1.. in chat window i see number 1 ... and no start the shotcurt of the spell

sorry for english...

help-me.... thanksss

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0