Page 1 of 1

ClipboardChange event differs in platforms

Posted: Thu Apr 24, 2025 1:17 pm
by lazi
The following code does not working the same way on win32 and OS4.
On windows platform InstallEventHandler() instantly sends an event while on OS4 it is silent until the first clipboard change.
Both behaviour has some sense, but should be working the same I think.
Not tested on other systems.

Code: Select all

StartTimer(1)
Function p_event(msg)
	NPrint(GetTimer(1),msg.action)
EndFunction

InstallEventHandler({clipboardchange=p_event})

Repeat
	WaitEvent
Forever               

Re: ClipboardChange event differs in platforms

Posted: Sat Apr 26, 2025 5:21 pm
by airsoftsoftwair
lazi wrote: Thu Apr 24, 2025 1:17 pm Both behaviour has some sense, but should be working the same I think.
Yes, that's true. I'll see if this can be fixed.

Re: ClipboardChange event differs in platforms

Posted: Sun May 18, 2025 5:59 pm
by airsoftsoftwair

Code: Select all

- Fix [Windows]: When installing an event handler for "ClipboardChange" events with InstallEventHandler() 
  a "ClipboardChange" was immediately fired even though nothing in the clipboard had actually changed;
  this behaviour was inconsistent with the other platforms