Skip to content

Instantly share code, notes, and snippets.

@bstaint
Last active December 10, 2017 08:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bstaint/5d2728badb4c51e28fcf1e9a2948e340 to your computer and use it in GitHub Desktop.
Save bstaint/5d2728badb4c51e28fcf1e9a2948e340 to your computer and use it in GitHub Desktop.
#SingleInstance force
Initialize:
{
Global dm
; 初始化大漠插件
RunWait, regsvr32 /s dm.dll
dm := ComObjCreate("dm.dmsoft")
ret := DllCall("dmCrack\patch")
OutputDebug % dm.Ver()
hwnd := dm.FindWindow("Diablo II","")
ret := dm.BindWindow(hwnd, "dx2", "dx2", "dx", 0)
OutputDebug % "GetLastError: " dm.GetLastError()
Return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment