Sign in to follow this  
Followers 0
taras di

Running the generated exe using windows shortcut key

3 posts in this topic

Hi everyone,

I've compiled a script into an exe. I wish to run this script from any window, on the file that is currently highlighted. I though I could do this by creating a shortcut to the exe, placing the shortcut on the destkop, and assigning it a shortcut key. However, when I press the shortcut key nothing happens! I tried assigning a shortcut key to some other shortcuts on my desktop, and they seem to work. Does anyone know why this is happening?

Thanks

Taras

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Sounds like you are "trying" correctly, dont know the problem!?... Maybe

just add HotKeySet() to your exe and have it running in a "sleep" mode. When you press the HotKey, the script will execute

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

Sounds like you are "trying" correctly, dont know the problem!?... Maybe

just add HotKeySet() to your exe and have it running in a "sleep" mode. When you press the HotKey, the script will execute

8)

Hmm, didn't think of trying setting the hotkey in the exe (it was late at night :"> ). It works now. What I was trying to do is set a hotkey for the compiled executable, so the executable itself would run when the windows hotkey was set (you set a hotkey by going to properties of the shortcut).

Oh well, this works fine :whistle:

Thanks!

Taras

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0