DrH Posted March 24, 2011 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 !
AutoBert Posted March 24, 2011 Posted March 24, 2011 Hi, why don't you use the native autoit functions like GUICtrlCreateContextMenu ?
Andreik Posted March 24, 2011 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
DrH Posted March 24, 2011 Author Posted March 24, 2011 not contextmenu for gui,i want a context menu like file association,read the msdn forum!
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