Jump to content

davidwm

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by davidwm

  1. Since it seems Ni still has not changed anything in the support of Menu Shortcuts for Custom Tools and I did not exactly know how to Listen to global Keyboard inputs, I came up with another solution to this issue. Take AutoHotKey and Use the WinMenuSelectItem Function. can be read from WinActive and Menu is &6 (for Tools, might be a different name in other Languages, therefor use number), use Names for the SubMenus (you should know your own titles).

    Done.

    You would still have to code an additional Program (with AutoHotKey) and supply it with you Tool as well as automatically start it on Startup (which is not really neat, but it should work).

    davidwm

    Well, never mind. Labview uses a customized menu and AutoHotKey cannot trigger Menu Items with WinMenuSelectItem ...

    davidwm

  2. Now that I have thought about it a little, there may be a way for me to implement a solution without making the shortcuts to the menu items. In the tools I am working with, the user has the option to log into a database of their choice so the checkin and checkout tools know right away what database they are working in. This tool is running all the time keeping the database connection in memory so I could possibly trap keystrokes within that application, find the top vi window and open the checkout, checkin, or add tool. This solution might work for me, but I don't think it is feasible for other tools. The ultimate solution is to get the update from NI for shortcuts for custom tools menu items...and options for tool bar buttons.

    Since it seems Ni still has not changed anything in the support of Menu Shortcuts for Custom Tools and I did not exactly know how to Listen to global Keyboard inputs, I came up with another solution to this issue. Take AutoHotKey and Use the WinMenuSelectItem Function. can be read from WinActive and Menu is &6 (for Tools, might be a different name in other Languages, therefor use number), use Names for the SubMenus (you should know your own titles).

    Done.

    You would still have to code an additional Program (with AutoHotKey) and supply it with you Tool as well as automatically start it on Startup (which is not really neat, but it should work).

    davidwm

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.