Jump to content

Double Click on control


Recommended Posts

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]
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...