Timeout and held window in Windows

Discuss any general programming issues here
Post Reply
Flinx
Posts: 370
Joined: Sun Feb 14, 2021 9:54 am
Location: Germany

Timeout and held window in Windows

Post by Flinx »

Hi,
If you hold down a Hollywood program window with the mouse in Windows to move or resize it, and a timeout event occurs during that time, the event is lost. This also happens if you hold down a second display opened by the program.
Can this be fixed?
By the way, it works as expected in Linux Mint (Cinnamon).
Here’s an example. The event occurs after 3 seconds and terminates the script, but not if you grab the window by the title bar.

Code: Select all

SetTimeout(Nil, Function() NPrint("\nTimeout function. End in 2 seconds...") Sleep(2000) End EndFunction, 3000)
NPrint("\nStarting main loop. Timeout should come in 3 seconds.")
Repeat
	WaitEvent()
Forever
Post Reply