Sign in to follow this  
Followers 0
Juanse

Double Click on control

2 posts in this topic

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

case $msg[0] = $GUI_EVENT_PRIMARYDOWN
            If $MouseDown = 0 Then
                $MouseDown = TimerInit()
            Else

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

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

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

                                    $classe=ObjGet("LDAP://" & $selectline[2])
                                    if 
        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  
Followers 0