Modify

Opened 10 years ago

Closed 5 years ago

#3148 closed Feature Request (Rejected)

Add new events to GUIGetMsg()

Reported by: anonymous Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:

Description

Please add new event to GUIGetMsg() :
$GUI_EVENT_PRIMARYDOUBLECLICK: primary mouse button double click.

Attachments (0)

Change History (4)

comment:1 by Melba23, 10 years ago

Please provide an example where this functionality would be useful and it cannot be easily provided by another means.

M23

comment:2 by anonymous, 10 years ago

cannot be easily provided by another means? You mean as simple as using $GUI_EVENT_PRIMARYDOUBLECLICK event?

I guess something like this:

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case GUI_EVENT_PRIMARYDOUBLECLICK
			$handleOfObject = GUIGetCursorInfo($hGUI)
			if (Not @error) Then
			Switch $handleOfObject[4]
				Case $Tab03ListView01
					$aIndex = _GUICtrlListView_GetSelectedIndices($Tab03ListView01, True)
					If IsArray($aIndex) And ($aIndex[0] > 0) Then
						$iIndex_Selected = $aIndex[1]
						$sPath = _GUICtrlListView_GetItemText($Tab03ListView01, $iIndex_Selected, 2)
						ShellExecute($sPath)
					EndIf
				
				Case $Tab03Pic01
					...
			
			EndSwitch
			
		Case ...
				
	EndSwitch
WEnd

comment:3 by Melba23, 10 years ago

That can be done just as easily via a message handler.

M23

comment:4 by J-Paul Mesnage, 5 years ago

Resolution: Rejected
Status: newclosed

as suggest by Melba23 we close it.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.