Dark Byte Site Admin Reputation: 458 Joined: 09 May 2003 Posts: 25295 Location: The netherlands
|
Posted: Tue Mar 23, 2021 2:33 am Post subject: |
|
|
Perhaps you can do what you need to do without AA scripts in 7.2
example:
Code: |
function forEachAndFutureForm(classname, func)
local i
for i=0,getFormCount()-1 do
local f
f=getForm(i)
if f.ClassName==classname then
func(f)
end
end
registerFormAddNotification(function(f)
if classname==f.ClassName then
f.registerFirstShowCallback(function()
func(f)
end)
end
end)
end
forEachAndFutureForm('THotKeyForm',function(f)
printf('Hotkey form created. Name='..f.name)
--check which memoryrecords are currently selected and store it or something...
local oldOK=f.BitBtn1.OnClick
f.BitBtn1.OnClick=function(s)
print("Do stuff before ok click")
oldOK(s)
print("Do stuff after ok click")
end
--f.btnApply.OnClick is also a thing
end)
|
_________________ Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping
Last edited by Dark Byte on Wed Mar 24, 2021 2:01 am; edited 1 time in total
|
|