WSCPorts Posted March 12, 2006 Share Posted March 12, 2006 (edited) my Helper or Gui is just a window to access That Filters our message Func HelperGui() Global $HelperGui = GuiCreate("Helper") Global $AU3_Handle = 0x508 GUISetState() GUIRegisterMsg($AU3_Handle, "_Filter") EndFunc HelperGui() Func _Filter($hWndGUI, $MsgID, $WParam, $LParam) Select Case $MsgID = $AU3_Handle MsgBox(0, "LParam", $LParam) EndSelect EndFunc While WinExists("Helper") Sleep(50) WEnd The Second one sends out message to be intercepted by GUI.. Func GetCurrentThread() $hTiD = DllCall("kernel32.dll","int", "GetCurrentThread") Return $hTiD[0] EndFunc $handleThread = GetCurrentThread() Global $AU3_Handle = 0x508 Func SendMsg($hWTarget, $iMsg, $WParam, $LParam) ; Register WM_COMMAND (Dont use PostMessage, it wont work) DllCall("user32.dll","int","SendMessage","hwnd",$hWTarget,"int",$iMsg,"int",$WParam,"int",$LParam) EndFunc While 1 SendMsg(WinGetHandle("Helper"), $AU3_Handle, 0, $handleThread) Wend I think i have to do Duplicate Handle and SuspendThread GetThreadContext/SetThreadContext Resume Thread to make a valid register editor but i think im on the right track Edited March 12, 2006 by WSCPorts http://www.myclanhosting.com/defiasVisit Join and contribute to a soon to be leader in Custumized tools development in [C# .Net 1.1 ~ 2.0/C/C++/MFC/AutoIt3/Masm32] Link to comment Share on other sites More sharing options...
faldo Posted April 2, 2007 Share Posted April 2, 2007 I think i have to do Duplicate Handle and SuspendThread GetThreadContext/SetThreadContext Resume Thread to make a valid register editor but i think im on the right track Has anyone gotten closer of creating a register editor?Maybe someone could help me create a dll struct for the APIs: GetThreadContext(), SetThreadContext() and SuspendThread() Check out my other scripts: RDP antihammer/blacklist generator | Phemex cryptocurrency exchange API Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now