Jump to content
Sign in to follow this  
AndreyS

The problem of interaction "HotKeySet" and "Send"

Recommended Posts

AndreyS

Hello!

Prompt please why after using the command "Send" I can not disable the triggering of a hotkey. Hotkey (Ctrl+F) still continues to run func1

HotKeySet ("^f", "func1")
Send ("(CTRLDOWN) (LSHIFT) (CTRLUP)")
HotKeySet ("^f")

Thank you!

Share this post


Link to post
Share on other sites
Jos

Hello!

Prompt please why after using the command "Send" I can not disable the triggering of a hotkey. Hotkey (Ctrl+F) still continues to run func1

HotKeySet ("^f", "func1")
Send ("(CTRLDOWN) (LSHIFT) (CTRLUP)")
HotKeySet ("^f")

Thank you!

should work fine. Post a scriptlet that demonstrates your issue as this clearly doesn't.

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
AndreyS

Disable the shortcut (Ctrl + F) occurs only if I turn it to the command "Send"!

If you run HotKeySet ("^ f") after the command "Send" then the key combination (Ctrl + F) continues to call the function "func1"!

And to me that it was not run!

Please check again later!

Share this post


Link to post
Share on other sites
AndreyS

Sorry! You're right! The combination of off but only if the English keyboard layout.

It can tell my how to make the trip and the combination works when you select another keyboard layout?

Thanks!

Share this post


Link to post
Share on other sites
AndreyS

Found that, unfortunately, the function HotKeySet strictly tied to the current keyboard layout and to enable / disable triggering combinations need to write code in exactly the letter that corresponds to the current keyboard layout. :blink:

The best way is not found...

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.