Jump to content


Photo

(solved)this script not works on basic ?


  • Please log in to reply
2 replies to this topic

#1 Klark92

Klark92
  • Members
  • 859 posts

Posted 15 April 2012 - 09:55 AM

why it's not working ?

#NoEnv
SetWorkingDir %A_ScriptDir%

OnExit, ExitSub

hMod := DllCall("LoadLibrary", Str, "hyde.dll", Ptr)

module2 := DllCall("GetProcAddress", Ptr, hMod, AStr, "CBProc", ptr)

hHook := DllCall("SetWindowsHookEx", Int, 5, Ptr, module2, Ptr, hMod, Ptr, 0, Ptr)

MsgBox, Process hidden
Return

Esc::ExitApp

ExitSub:
   if (hHook)
      DllCall("UnhookWindowsHookEx", Ptr, hHook)
   if (hMod)
      DllCall("FreeLibrary", Ptr, hMod)
ExitApp


#2 Frankie

Frankie
  • Members
  • 2930 posts

Posted 15 April 2012 - 01:28 PM

It looks like it's written for AutoHotkey_L, maybe 64bit, but I'm not sure.

See Script Compatibility for details on converting it. Little things like this, will tell you how to make it work.

Note that "UInt" must be used in place of "Ptr" in AutoHotkey Basic, but the resulting code may not be 64-bit compatible.



#3 Klark92

Klark92
  • Members
  • 859 posts

Posted 15 April 2012 - 05:36 PM

yeah thanx I translated then it works .. thanks again ^^