DrH 0 Posted March 24, 2011 Hi guys i want to create a context menu handler dll,i found this : http://msdn.microsoft.com/en-us/library/bb776881%28v=vs.85%29.aspx ,but i dont inderstand anything please,can some one help me to create that dll. Thanks in advance ! Share this post Link to post Share on other sites
AutoBert 197 Posted March 24, 2011 Hi, why don't you use the native autoit functions like GUICtrlCreateContextMenu ? Share this post Link to post Share on other sites
Andreik 66 Posted March 24, 2011 You can use native autoit GuiCtrlCreateContextMenu. A little example: $MAIN = GUICreate("Example") $LIST = GUICtrlCreateList("",80,80,100,200) GUICtrlSetData($LIST,"Item1|Item2|Item3|Item4|Item5|Item6|Item7") $CONTEXT_MENU = GUICtrlCreateContextMenu($LIST) $ADD = GUICtrlCreateMenuItem("Add",$CONTEXT_MENU) $DEL_ALL = GUICtrlCreateMenuItem("Dell all",$CONTEXT_MENU) GUISetState(@SW_SHOW,$MAIN) While True Switch GUIGetMsg() Case $ADD $INPUT = InputBox("Input","New item","") If $INPUT <> "" Then GUICtrlSetData($LIST,$INPUT,1) Case $DEL_ALL GUICtrlSetData($LIST,"") Case -3 Exit EndSwitch Sleep(10) WEnd When the words fail... music speaks Share this post Link to post Share on other sites
DrH 0 Posted March 24, 2011 not contextmenu for gui,i want a context menu like file association,read the msdn forum! Share this post Link to post Share on other sites