Juanse Posted March 2, 2006 Share Posted March 2, 2006 How can I detect if the user makes a double click on a control? (For example a List Control) Link to comment Share on other sites More sharing options...
arcker Posted March 2, 2006 Share Posted March 2, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now