I was looking for information on 'double click' support - especially in list boxes - and came upon this post.
I don't think there is any built in 'double click' actions in the GUI part of Autoit - does anyone have any other ideas on how to use double click.

I russelled up some code - very similar to Holgers - and it was great - double click was great - but the message loop in the GUI I used for testing only had 1 case statement . When I imported the code into my script - (13 case statements) double click didn't really work. It sort of worked as long as the 2 clicks were more than half second appart - this was not really usable. I have ended up configuring a 'right click' that does the same action as a double click - some of the users find that acceptable.

I russelled up some code - very similar to Holgers - and it was great - double click was great - but the message loop in the GUI I used for testing only had 1 case statement . When I imported the code into my script - (13 case statements) double click didn't really work. It sort of worked as long as the 2 clicks were more than half second appart - this was not really usable. I have ended up configuring a 'right click' that does the same action as a double click - some of the users find that acceptable.

So are you saying this worked for you or it didn't? I mean the parameter there can be set to what you want for the delay between recognizing whether it was a double click or not.

Edit:Example: If DoubleClickCheck(1) = 1 Then GuiCtrlSetData($test2, GUICtrlRead($test1)) ; the '1' would set the delay to 1/10th of a secondIf DoubleClickCheck(3) = 1 Then GuiCtrlSetData($test2, GUICtrlRead($test1)) ; the '3' would set the deay to 3/10ths of a second

etc...

Edited by SmOke_N, 04 January 2006 - 02:30 AM.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

When I use GUIRegisterMsg in GUIOnEventMode all these examplesbelow doesn't works.

Can you give me a short non-working example?So I could take a look what the problem could be.ThanksHolger

Edit: will take a look what the problem is - thanks for info Example not needed:GUIRegisterMsg() and GUIOnEventMode = 1 -> BUGSorry for this stupid mistake - will looking for the problem now that it could be solved in the next beta.

Edit2: seems to be a TimingProblem - also in 'GUIGetMsg()'-mode if you use a Sleep()-command.

Edit3: I think I found the problem - was an internal false expression to check for the current 'RunMode' - this is if the script is paused or quidded or something else.Also there was a timing problem which is also based on the false thing which I could also solve.So if you have a sleep(5000) for instance then the WM_message-functions will forced to run - before this change (currently) the internal WM_messages were blocked through Sleep() so some messages could not be 'seen'.Sorry for these bugs - have to do more tests in the future...I will do some more tests now...no...at first I will take a sledge and the drive down the hill cause of the cleary weather ...

Can you give me a short non-working example?
So I could take a look what the problem could be.
Thanks
Holger

Edit: will take a look what the problem is - thanks for info
Example not needed:GUIRegisterMsg() and GUIOnEventMode = 1 -> BUG
Sorry for this stupid mistake - will looking for the problem now that it could be solved in the next beta.

Edit2: seems to be a TimingProblem - also in 'GUIGetMsg()'-mode if you use a Sleep()-command.

Edit3: I think I found the problem - was an internal false expression to check for the current 'RunMode' - this is if the script is paused or quidded or something else.
Also there was a timing problem which is also based on the false thing which I could also solve.
So if you have a sleep(5000) for instance then the WM_message-functions will forced to run - before this change (currently) the internal WM_messages were blocked through Sleep() so some messages could not be 'seen'.
Sorry for these bugs - have to do more tests in the future...
I will do some more tests now...no...at first I will take a sledge and the drive down the hill cause of the cleary weather ...

Not sure if your fixes for the above will fix my problem, but something look at anyways, I trimmed this down to just was need to reproduce the problem.

i have the same problem with WM_Notify_Events and slider controls
the slider controls dont function anymore
when i disable the line GUIRegisterMsg($WM_NOTIFY, "WM_Notify_Events")
the slider controls functions are normal