Making Menu Selections through Program
-
Hey there, I have an application which lists the following menu options "File" " View" "Help" etc. And ofcourse within each of these is a further list of options. I want to write an application which will automatically nagivate through this menu ... As an example...suppose I want to go to View->Text Size -> Normal, I can do so through my application at the click of a button. Is anyone aware of the kind of messages I could send or provide an example of any such code you may have. Regards, Abhishek
-
Hey there, I have an application which lists the following menu options "File" " View" "Help" etc. And ofcourse within each of these is a further list of options. I want to write an application which will automatically nagivate through this menu ... As an example...suppose I want to go to View->Text Size -> Normal, I can do so through my application at the click of a button. Is anyone aware of the kind of messages I could send or provide an example of any such code you may have. Regards, Abhishek
have you tried menuItem1.PerformClick() ? Rob -- There are 10 kinds of people. Those who understand binary and those who don't.
-
have you tried menuItem1.PerformClick() ? Rob -- There are 10 kinds of people. Those who understand binary and those who don't.
hey, thanks for the reply however I am trying to navigate through a different programs menu using my application.
-
hey, thanks for the reply however I am trying to navigate through a different programs menu using my application.
-
I dont have the SDK but I could use Microsoft Depends to get a idea of the function being called.
-
Hey there, I have an application which lists the following menu options "File" " View" "Help" etc. And ofcourse within each of these is a further list of options. I want to write an application which will automatically nagivate through this menu ... As an example...suppose I want to go to View->Text Size -> Normal, I can do so through my application at the click of a button. Is anyone aware of the kind of messages I could send or provide an example of any such code you may have. Regards, Abhishek
Your looking for SendKeys[^]. Which, BTW, is a problematic way to control another application. Since the focus can shift from one window to another without any warning, your keystrokes could end up going to the wrong application. Also, I hope your VB app that your controlling has keyboard shortcuts define for all the menu choices... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome