WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: pguild on May 02, 2019, 09:18:45 PM

Title: How assign a Hot Key within a Winbatch Script to the application itself?
Post by: pguild on May 02, 2019, 09:18:45 PM
How do I attach a hot key to an .exe?  I did this before and it worked nicely, but now I can't recall how I did it or find sample code.
I know it can be done.  I was able to launch my Winbatch programs by hitting a hot key and I did not have to do this manually with right clicking on an .exe and so on.

I am seeking clarity on this issue.  Thanks! :)
Title: Re: How assign a Hot Key within a Winbatch Script to the application itself?
Post by: td on May 03, 2019, 11:03:33 AM
One approach is to create a Desktop shortcut using ShortCutmake and ShortcutExtra.
Title: Re: How assign a Hot Key within a Winbatch Script to the application itself?
Post by: pguild on May 04, 2019, 01:24:22 AM
Thanks. Where do I find Shortcut Make or Shortcut Extra? -- Oops! nevermind I see they are built-in functions!
Title: Re: How assign a Hot Key within a Winbatch Script to the application itself?
Post by: td on May 04, 2019, 08:53:00 AM
If you only need your shortcuts on a system with WinBatch already installed, you could also consider adding shortcut keys to a PopMenu menu item of your making.
Title: Re: How assign a Hot Key within a Winbatch Script to the application itself?
Post by: pguild on May 23, 2019, 11:07:13 PM
If a shortcut key already exists for another app and I assign that shortcut key to my Winbatch compiled app, what happens?  Does my shortcut key override the other one?
Title: Re: How assign a Hot Key within a Winbatch Script to the application itself?
Post by: td on May 24, 2019, 08:03:11 AM
Couldn't say for sure but it certainly isn't advised.  You would have to try it to find out how the OS handles it.