i am trying to send all dialogID to a file.
So i try to use this 2 funcs:
PHP Code:
Func GetLastDialogID()
Return MemoryRead($mLastDialogID)
EndFunc ;==>GetLastDialogID
Func GetLastDialogIDHex(Const ByRef $aID)
If $aID Then Return '0x' & StringReplace(Hex($aID, 8), StringRegExpReplace(Hex($aID, 8), '[^0].*', ''), '')
EndFunc ;==>GetLastDialogIDHex
Id there something wrong here:
PHP Code:
;~ Description: Internal use only.
Func CreateDialogHook()
_('DialogLogProc:')
_('push ecx')
_('mov ecx,esp')
_('add ecx,C')
_('mov ecx,dword[ecx]')
_('mov dword[LastDialogID],ecx')
_('pop ecx')
_('mov ebp,esp')
_('sub esp,8')
_('ljmp DialogLogReturn')
EndFunc ;==>CreateDialogHook

But need an update...
If someone can help, it would be nice.
Thank you.






