Jump to content
Sign in to follow this  

Double Click on control

Recommended Posts


How can I detect if the user makes a double click on a control? (For example a List Control)

Share this post

Link to post
Share on other sites

it's a little bit difficult, but when understand it works perfect

here is a sample from my script which shows an item when double clicked on him

            If $MouseDown = 0 Then
                $MouseDown = TimerInit()

                If TimerDiff($MouseDown) < 200 Then
                  ;si en moins de 400 ms secondes....
                    Case  Guictrlread($menu)=1

                                if _GUICtrlListViewGetItemText($Listegroupe)<>$LV_ERR then
                                    $SelectLine = StringSplit(_GUICtrlListViewGetItemText($Listegroupe),"|")

                                    $SelectLine = StringSplit(_GUICtrlListViewGetItemText($Listegroupemembres),"|")

                                    $classe=ObjGet("LDAP://" & $selectline[2])
        case $MouseDown > 0 And TimerDiff($MouseDown) > 200
        $MouseDown = 0

ok so play with the timerinit() and timerdiff() functions ^^

c u

-- Arck System _ Soon -- Ideas make everything

"La critique est facile, l'art est difficile"

Projects :

[list] [*]Au3Service : Run your exe as service V3 / Updated 29/07/2013 Get it Here [/list]

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.