Jump to content

Frix

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Frix

  1. Thanks for answer Melba, Actually I did the same code to prevent from double-click. But yes, I definitely am missing clicks, they are not eaten by any GUI. On slow clicks, no problem, the script reacts as expected but on fast clicks it simply ignores ~80% of them. Maybe it is in relation with my OS ? I am running Win7 x64... Anyway, thanks... Any other solution (except slow clicking welcome.
  2. Hi, I have exactly the same need as you (record mouse coords when user clicks somewhere) and tried the script you provided. However, this did not work as expected for me: If user clicks very fast, then the _IsPressed() function has not time to catch the button down state and the exitloop is not executed. I obviously tried to reduce Sleep() time (even tried to remove Sleep()), this did not help very much. The best behavior I got is when there is no Sleep() at all but this makes CPU run at 100% load and very fast clicks still not are catched. Something that would solve the problem is something just like the HotKeySet() function (which is event triggered) but this function seams working only with keyboard keys, not with mouse buttons. Does anyone have an idea on how to deal with that ? Thanks a lot by advance.
×
×
  • Create New...