ClipboardChange event differs in platforms

Report any Hollywood bugs here
Post Reply
User avatar
lazi
Posts: 646
Joined: Thu Feb 24, 2011 11:08 pm

ClipboardChange event differs in platforms

Post 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               
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: ClipboardChange event differs in platforms

Post 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.
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: ClipboardChange event differs in platforms

Post 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
Post Reply