mik Posted October 23, 2007 Share Posted October 23, 2007 (edited) Hi, all, I have a problem when I run the following codes: $iMenuType = _Menu_GetItemType($hPopupMenu, $index) if bitAND($iMenuType, $MFT_OWNERDRAW) then ConsoleWrite(' owner-draw') So, I had got some "owner-draw" outputs. And the question is how I can get the text of menu items whose type is 'owner-draw'. Edited October 23, 2007 by mik Link to comment Share on other sites More sharing options...
mik Posted October 24, 2007 Author Share Posted October 24, 2007 Hi, all, I have a problem when I run the following codes: $iMenuType = _Menu_GetItemType($hPopupMenu, $index) if bitAND($iMenuType, $MFT_OWNERDRAW) then ConsoleWrite(' owner-draw') So, I had got some "owner-draw" outputs. And the question is how I can get the text of menu items whose type is 'owner-draw'.Nobody had met this problem before? I thought it was a challenging work, and I haven't had a method to resolve it yet. Anyone else can show some tips or some advice?Thanks a lot in advance :0) Link to comment Share on other sites More sharing options...
mik Posted October 25, 2007 Author Share Posted October 25, 2007 Hi, all, I have a problem when I run the following codes: $iMenuType = _Menu_GetItemType($hPopupMenu, $index) if bitAND($iMenuType, $MFT_OWNERDRAW) then ConsoleWrite(' owner-draw') So, I had got some "owner-draw" outputs. And the question is how I can get the text of menu items whose type is 'owner-draw'.Hi, all so admirable that I want to draw your attention to this problem:-). if you use _Menu_GetItemText($hPopupMenu, $index), then you will get "". and you can get tihs case by following steps: 1) Right-click the right pane in a window folder 2) Select "New"->"Microsoft Word Document" or "Microsoft PowerPoint Document" or "Text Document" 3) If we use _Menu_GetItemText($hPopupMenu, $index) to one menu item of the above three, we will get "", and the _Menu_GetItemType($hPopupMenu, $index) will be$MFT_OWNERDRAW Link to comment Share on other sites More sharing options...
mik Posted October 29, 2007 Author Share Posted October 29, 2007 Hi, all so admirable that I want to draw your attention to this problem:-). if you use _Menu_GetItemText($hPopupMenu, $index), then you will get "". and you can get tihs case by following steps: 1) Right-click the right pane in a window folder 2) Select "New"->"Microsoft Word Document" or "Microsoft PowerPoint Document" or "Text Document" 3) If we use _Menu_GetItemText($hPopupMenu, $index) to one menu item of the above three, we will get "", and the _Menu_GetItemType($hPopupMenu, $index) will be$MFT_OWNERDRAWWho is the superman to this question? wish you get up, haha.................... Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 29, 2007 Moderators Share Posted October 29, 2007 4 bumps is enough in a row... (And don't count my post). If someone knows the answer or wants to answer they will. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. 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