How to log dialogID

05/11/2024 06:56 aracno974#1
Hi,
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($aID8), StringRegExpReplace(Hex($aID8), '[^0].*'''), '')
EndFunc   ;==>GetLastDialogIDHex 
In both situation, i get no or bad result.
Id there something wrong here:
PHP Code:
;~ DescriptionInternal 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 
This tools was the holy grail:
[Only registered and activated users can see links. Click Here To Register...]
But need an update...
If someone can help, it would be nice.
Thank you.
05/13/2024 11:14 t7tcrusher#2
I got botdev as au3, dont know if its more up to date then the exe though. Send me a pm, and ill attach it to this post or check for values in my version when at my pc.
05/15/2024 07:13 aracno974#3
Thank you. I will send you a PM on discord.