Update all new Tasks
This commit is contained in:
parent
00a190b0a6
commit
91df62d461
5697 changed files with 93386 additions and 804 deletions
11
Task/Machine-code/AutoHotkey/machine-code.ahk
Normal file
11
Task/Machine-code/AutoHotkey/machine-code.ahk
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
MCode(Var, "8B44240403442408C3")
|
||||
MsgBox, % DllCall(&Var, "Char",7, "Char",12)
|
||||
Var := ""
|
||||
return
|
||||
|
||||
; http://www.autohotkey.com/board/topic/19483-machine-code-functions-bit-wizardry/
|
||||
MCode(ByRef code, hex) { ; allocate memory and write Machine Code there
|
||||
VarSetCapacity(code, StrLen(hex) // 2)
|
||||
Loop % StrLen(hex) // 2
|
||||
NumPut("0x" . SubStr(hex, 2 * A_Index - 1, 2), code, A_Index - 1, "Char")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue