Achilles Posted November 5, 2006 Posted November 5, 2006 Hello, I've made my own in-progress media player and was wondering how to make it so that when on I double click it plays or when I right click on a song it gives me the options to delete it or whatever... I've included an example of a GuiListView (simplified from the helpfile) just in case... #include <GUIConstants.au3> GUICreate("listview items",220,250, 100,200,-1,$WS_EX_ACCEPTFILES) $listview = GUICtrlCreateListView ("col1 |col2|col3 ",10,10,200,150) $item1=GUICtrlCreateListViewItem("item2|col22|col23",$listview) $item2=GUICtrlCreateListViewItem("item1|col12|col13",$listview) $item3=GUICtrlCreateListViewItem("item3|col32|col33",$listview) GUISetState() Do $msg = GUIGetMsg () Until $msg = $GUI_EVENT_CLOSE Any help appreciated My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Achilles Posted November 6, 2006 Author Posted November 6, 2006 (edited) Any ideas? I'm just trying to make it come up with the menu that comes up like any other time you rightclick on anything.... Edited November 6, 2006 by Piano_Man My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
GaryFrost Posted November 6, 2006 Posted November 6, 2006 Any ideas? I'm just trying to make it come up with the menu that comes up like any other time you rightclick on anything....Search would of reaped this one many times over.....here's onehttp://www.autoitscript.com/forum/index.ph...st&p=246860as to right click context menu SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
jvanegmond Posted November 6, 2006 Posted November 6, 2006 Luckily for you, here's another very recent topic describing how to make something work on double click. github.com/jvanegmond
GaryFrost Posted November 6, 2006 Posted November 6, 2006 Luckily for you, here's another very recent topic describing how to make something work on double click.That's for buttons, figured the user wanted something for listview being that's what's in the 1st post. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
PaulIA Posted November 6, 2006 Posted November 6, 2006 Hello, I've made my own in-progress media player and was wondering how to make it so that when on I double click it plays or when I right click on a song it gives me the options to delete it or whatever... I've included an example of a GuiListView (simplified from the helpfile) just in case... #include <GUIConstants.au3> GUICreate("listview items",220,250, 100,200,-1,$WS_EX_ACCEPTFILES) $listview = GUICtrlCreateListView ("col1 |col2|col3 ",10,10,200,150) $item1=GUICtrlCreateListViewItem("item2|col22|col23",$listview) $item2=GUICtrlCreateListViewItem("item1|col12|col13",$listview) $item3=GUICtrlCreateListViewItem("item3|col32|col33",$listview) GUISetState() Do $msg = GUIGetMsg () Until $msg = $GUI_EVENT_CLOSE Any help appreciatedThe right click option you're talking about is called a "context menu". Have a look at GUICtrlCreateContextMenu in the help file for starters and then search the forum for the same word to get several dozen examples. Auto3Lib: A library of over 1200 functions for AutoIt
GaryFrost Posted November 6, 2006 Posted November 6, 2006 The right click option you're talking about is called a "context menu". Have a look at GUICtrlCreateContextMenu in the help file for starters and then search the forum for the same word to get several dozen examples.yep i said it was context menu SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
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