Guten Morgen
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
Any help to complete that script and make it work?
Danke
The AHK script on github work, i have tested it before post. You need to use the correct unicode version based on your architecture:
hxxp://ahkscript.org/download/
Anyway i don't care about that code, the goal is make the injection in a way. Tomorrow i'll test both script and let you know, thanks.
EDIT: No man both script not work
I don't have any error but like the previus i can always see the process in the task
Do you have the source code from the hyde.dll? I looked at the original thread and now I know why an alternative injection method can not work.
The While() loop is not necessary for the last script but it can't work anyway.
... unless you inject the .dll into all processes:
No i don't have the source ( the link of dropbox is suspended ) but i have make a post in the ahk forum "Broken links" thread, if someone has it i'll post the link here or directly the code in the tags
The only things i know is that use the MHOOK library v2.3:
There are a few things that could be changed in the source code, but that's not required. The first script I posted contains two errors, both in the same line.
Very nice, finally i see that script working, thanks
I have only two last questions for you:
1) Is possible to inject that DLL in another process instead? In any case seems you can only use for 64 Bit executable on x64 system, you can't inject a 32 Bit executable also using hyde.dll and not hyde64.dll on a x64 system. Can you confirm this behavior?
2) Do you know why not work on Windows 8?
Dllcall auf eigener dll? 05/12/2012 - AutoIt - 5 Replies Servus,
hab mir eben ne kleine .dll in C++ geschrieben.
Die führt eine einfache Main funktion aus, die den typen int besitzt.
Also, sobald die dll in einen Process attached wird, wird die Main Funktion ausgeführt und eine MessageBox wird geöffnet. Diese befindet sich ebenfalls in der Main Funktion.
Nun meine Frage.
Kann ich diese Funktion mithilfe von Autoit aufrufen wie z.B mit dem dllcall ?
[DllCall] FRAPS mit Autoit ansteuern 06/03/2011 - AutoIt - 0 Replies Hallo erstmal :)
Folgendes FRAPS ist ja ein Benchmark-, Screencapture- und
Echtzeitvideoaufnahmeprogramm für DirectX- und OpenGL-Anwendungen.
--> mich interessieren allerdings nur die Frame Benchmark Funktionen.
http://www.fraps.com/images/33fps.png
[Frage] DllCall, EndScence, Hook, LUA Injection 04/24/2011 - General Coding - 10 Replies Hallihallo,
ich bin mir nicht ganz sicher, ob da hier richtig ist, da es sich auf WoW bezieht.
Ich möchte via AutoIt ein kleines Tool schreiben, mit dem ich z.B. den 'Charakter erstellen' Button drücken kann, ohne das WoW Fenster maximiert zu haben (ControlClick, Mouseclick plus funktionieren bei WoW nicht).
Dazu hab ich mich natürlich schon schlau gemacht und bin auf einige Begriffe wie Endscene, Hook, LUA Injection und die Funktion WowLuaDoString gestoßen.
Jetzt meine Frage: Besteht...
DLL injection und AutoIT DLLCall 11/30/2010 - AutoIt - 4 Replies Hallo,
ich hab ein Problem was mit seit ein paar Stunden den Kopf zerbricht, vllt ist es auch einfach der falsche Ansatz.
Ich hab mir eine DLL zum injizieren mit C++ geschrieben, durch Winject wird diese auch injiziert und die main Funktion durch die WINAPI DLLMain aufgerufen (einfach nur eine MsgBox).
Jetzt besteht meine Frage / Problem darin, kann ich mit AutoIt die restlichen Funktionen auch aufrufen (durch DLLCall) oder soll man dass auch lieber mit C++ realisieren. (andere...