Sign in to follow this  
Followers 0
ToyleY

HotKey F1 to bring up help

5 posts in this topic

I want the key F1 to bring up help in my program.

I put this command in program, so pressing F1 calls subroutine "QHelp"

HotKeySet("{F1}", "QHelp")

It all works OK but after program has closed the F1 key is still running the "QHelp" from my Autoit program (even in stuff like firefox, photoshop etc.)

How do I deregister the hotkey F1 in my program (when closing down), or is there another way to assign the F1 key for help.

Ta

Share this post


Link to post
Share on other sites



What's in your QHelp function?


Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Share this post


Link to post
Share on other sites

Hmm, I have never had a hotkey 'stick' like that, but to unregister it just do: HotKeySet("{F1}") <---- just don't put a function to point to and it will unregister.

Share this post


Link to post
Share on other sites

"What's in your QHelp function?" - just a message box

*HotKeySet("{F1}") *

I'll try it later - I can't reboot at the moment and a test show the problem persists - I'll try with a clean slate later.

Thank you both

Share this post


Link to post
Share on other sites

*HotKeySet("{F1}") *

Is not a messagebox .... show some real code for some real assistance.

Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

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