(edit: watch out with multiple client hacks)
Unsure, but most likely not caused by UI. Anyway I'll save you a Saturday, hopefully.
[Quick]
If lower function is almost similar (structure and construction) to that in your API...
Code:
Func ModifyMemory()
$mASMSize = 0
$mASMCodeOffset = 0
$mASMString = ''
CreateData()
CreateMain()
CreateTargetLog()
CreateSkillLog()
CreateSkillCancelLog()
CreateSkillCompleteLog()
CreateChatRev()
CreateChatLog()
CreateTraderHook()
CreateDialogHook()
CreateKREISCHRec()
CreateLoadFinished()
CreateStringLog()
CreateStringFilter1()
CreateStringFilter2()
CreateRenderingMod()
CreateCommands()
$mMemory = MemoryRead(MemoryRead($mBase), 'ptr')
Switch $mMemory
Case 0
$mMemory = DllCall($mKernelHandle, 'ptr', 'VirtualAllocEx', 'handle', $mGWProcHandle, 'ptr', 0, 'ulong_ptr', $mASMSize, 'dword', 0x1000, 'dword', 64)
$mMemory = $mMemory[0]
MemoryWrite(MemoryRead($mBase), $mMemory)
CompleteASMCode()
WriteBinary($mASMString, $mMemory + $mASMCodeOffset)
WriteBinary('83F8009090', GetValue('ClickToMoveFix'))
MemoryWrite(GetValue('QueuePtr'), GetValue('QueueBase'))
MemoryWrite(GetValue('SkillLogPtr'), GetValue('SkillLogBase'))
MemoryWrite(GetValue('ChatRevAdr'), GetValue('ChatRevBase'))
MemoryWrite(GetValue('ChatLogPtr'), GetValue('ChatLogBase'))
MemoryWrite(GetValue('StringLogPtr'), GetValue('StringLogBase'))
Case Else
CompleteASMCode()
EndSwitch
WriteDetour('MainStart', 'MainProc')
WriteDetour('TargetLogStart', 'TargetLogProc')
WriteDetour('TraderHookStart', 'TraderHookProc')
WriteDetour('DialogStart', 'DialogHookProc')
WriteDetour('DialogRec', 'DialogRecProc')
WriteDetour('LoadFinishedStart', 'LoadFinishedProc')
WriteDetour('RenderingMod', 'RenderingModProc')
WriteDetour('StringLogStart', 'StringLogProc')
WriteDetour('StringFilter1Start', 'StringFilter1Proc')
WriteDetour('StringFilter2Start', 'StringFilter2Proc')
EndFunc
[Dirty]
Continue changing...
Code:
Func GetLabelInfo($aLab)
Local Const $lVal = GetValue($aLab)
If $lVal <> -1 Then Return $lVal
Exit MsgBox(0x10, 'Error', 'Label "' & $aLab & '" tries faq.')
EndFunc
to...
Code:
Func GetLabelInfo($aLab)
Local Const $lVal = GetValue($aLab)
Return $lVal
EndFunc
... for now.
CHEERS