Guten Morgen :D
I need you guys and only this forum can help me. I want to convert another language to autoit, is a couple of lines:
hxxps://github.com/Drugoy/Autohotkey-scripts-.ahk/blob/master/hyde/test%20hyde.ahk
This is my attempt, i think only the first DllCall is correct:
Any help to complete that script and make it work?
Danke :D
I need you guys and only this forum can help me. I want to convert another language to autoit, is a couple of lines:
hxxps://github.com/Drugoy/Autohotkey-scripts-.ahk/blob/master/hyde/test%20hyde.ahk
This is my attempt, i think only the first DllCall is correct:
Code:
OnAutoItExitRegister("_Exit")
Global $hMod, $hHook
$hMod = DllCall("Kernel32.dll", "Ptr", "LoadLibrary", "Str", "hyde.dll")
If $hMod[0] Then
MsgBox(0, "Success", "Success!")
Else
MsgBox(0, "Failed", "Failed!")
EndIf
Func _Exit()
If IsArray($hMod) Then
Local $aResult = DllCall("kernel32.dll", "bool", "FreeLibrary", "handle", $hMod)
If $aResult[0] Then
MsgBox(0, "Success", "Success!")
Else
MsgBox(0, "Failed", "Failed!")
EndIf
EndIf
If IsArray($hHook) Then
Local $aResult = DllCall("user32.dll", "bool", "UnhookWindowsHookEx", "handle", $hHook)
If $aResult[0] Then
MsgBox(0, "Success", "Success!")
Else
MsgBox(0, "Failed", "Failed!")
EndIf
EndIf
EndFunc ;==>_Exit
Danke :D