WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Forum

  Reply to this topicStart new topicStart Poll

Detecting commandline

sonic
Posted: Nov 30 2007, 12:46 PM
Quote Post


Active Member
***

Group: Members
Posts: 43
Member No.: 3034
Joined: 2-October 06


I need to enable/disable menu item. As WAM_GETCURRENTPROJECTINFO will not return true on addin loading. Is there any other solution apart from manuall scanning commandline for .wap. Is there any message that i can process for enabling/disabling of menu item.

Edit:
When i double click the project file then scanning commandline for .wap doesn't work. Is there any notification when a project loads in winasm studio.

Also what notification is sent when i use recent project manager to open a project. What are Project Explorer notifications?

Sorry for asking too much :)

PMEmail Poster
Top
sonic
Posted: Dec 1 2007, 11:52 PM
Quote Post


Active Member
***

Group: Members
Posts: 43
Member No.: 3034
Joined: 2-October 06


Nobody interested or i have made fool of myself by asking a stupid ques?? :huh:
PMEmail Poster
Top
JimG
Posted: Dec 2 2007, 06:53 AM
Quote Post


Extremely Active Member
******

Group: Admins
Posts: 471
Member No.: 11
Joined: 16-May 04


I'm not understanding what you are asking, exactly.

Do you want to write an addin that will enable or disable some menu items whenever some other addin is loaded or unloaded?

I used WAM_GETCURRENTPROJECTINFO for both projects that were started with a command line or not and it seems to work.

I do a:
Invoke SendMessage,hMain,WAM_GETCURRENTPROJECTINFO,ADDR CurrentProject,0
and it fills a CURRENTPROJECTINFO structure with information.

What were you wanting to do again?
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll