Jump to content

Any way to type a key thats used by sethotkey?


Recommended Posts

I can do the thing inside hotkey func like

if notactivewindow then return

but this will still keep the key unusuable so i wont be able to use it in skype for example unless i completely disable hotkey.

Edited by Aktonius
Link to comment
Share on other sites

  • Developers

but this will still keep the key unusuable so i wont be able to use it in skype for example unless i completely disable hotkey.

correct and what is the problem with that?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Jos, i want to use a key like (0-9 on keyboard) in specific situations(while i am chatting in skype for example) but when that key is needed for hotkey(example firefox is active) i want it to act as hotkey.

I have app that heavily relies on hotkeys, so if say my users load the app, have fun using it in specific situation and then decide they want to chat on skype they would need to delete all hotkkeys that they want to use on skype which as you can assume is not fun way to go around it.

Edited by Aktonius
Link to comment
Share on other sites

  • Developers

Jos, i want to use a key like (0-9 on keyboard) in specific situations(while i am chatting in skype for example) but when that key is needed for hotkey(example firefox is active) i want it to act as hotkey

Just test which Window is active in the Hotkey Function and do a Send() for the key when its not the window to want to act upon.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Checking the active window will work well if you have application specific hotkeys. IF you have hotkeys that need to work in many applications it might be worth it to use _IsPressed as it doesn't stop the key from being send to the active application.

I have an example

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...