OnMessage unregister Topic is solved

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
User avatar
FredOoo
Posts: 186
Joined: 07 May 2019, 21:58
Location: Paris

OnMessage unregister

04 Sep 2020, 07:07

Code: Select all

OnMessage 0x201, 'click'     ; registered
OnMessage 0x201, 'aNoneRegisteredName', 0  ; error
OnMessage 0x201, 'click', 0  ; unregistered

OnMessage 0x201, objBindMethod(this,'onClick')     ; registered
OnMessage 0x201, objBindMethod(this,'onClick'), 0  ; no error but not unregistered

Is there a way to unregister a binded method ?
(Alan Turing) « What would be the point of saying that A = B if it was really the same thing? »
(Albert Camus) « Misnaming things is to add to the misfortunes of the world. »
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: OnMessage unregister  Topic is solved

04 Sep 2020, 07:28

pass the same reference u used to register the message with.
dont create a new reference
User avatar
FredOoo
Posts: 186
Joined: 07 May 2019, 21:58
Location: Paris

Re: OnMessage unregister

04 Sep 2020, 07:46

Thanks swagfag, that works.
(Alan Turing) « What would be the point of saying that A = B if it was really the same thing? »
(Albert Camus) « Misnaming things is to add to the misfortunes of the world. »

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: alawsareps, Google [Bot], Hermitianc and 70 guests