Hi Jean-Marc,
if you use 10 milliseconds you make a very tight loop.
I think the screen refresh is every 16 milliseconds = 1 tick. The shortest mouseMove intervall is 16 milliseconds.
For user interface things everything below 100 milliseconds is barely noticeable. Especially if you have to push a key on the keyboard one is distracted and this shortens the perceived latency.
I tried with 150 milliseconds in the loop and that seems to respond quite immediately. 200 and more milliseconds start to show latency.
The short story is you don't need a 10 millisecond loop it strains the program unnecessarily.
And please make shure to clear all your pendingMessages when e.g. you leave the card. Windows Standalones don't like continuing messaging when closing and refuse to close. On a Mac it kills the messages somehow
Code: Select all
on closeCard
repeat for each line aLine in the pendingMessages
if aLine contains "DoCheckShift" then cancel item 1 of aLine
end repeat
set the hilite of btn "bMultipleSelection" to false
end closeCard
Kind regards
Bernd