Lua:unregisterFormAddNotification

From Cheat Engine
Jump to navigation Jump to search

function unregisterFormAddNotification(Object)

Unregisters a previously registered form add notification. Use this to stop receiving notifications for forms added to Cheat Engine's form list.

Function Parameters[edit]

Parameter Type Description
Object Object The object returned by Lua:registerFormAddNotification that identifies the notification to remove.

Examples[edit]

-- Register and then unregister a notification
local notif = registerFormAddNotification(function(form)
  print("Form added: " .. (form.ClassName or "Unknown"))
end)

-- Later, stop receiving notifications
unregisterFormAddNotification(notif)

See also[edit]