Jump to content

hotkeys


Guest pgoulash
 Share

Recommended Posts

Guest pgoulash

i am setting shift+alt+d as a hot key. <<HotKeySet("+!d", "my_function")>>

so while using an app, visual studio in this case, i want to be able to write my own shortcuts+functions and assign them hotkeys of my choosing. (shift+alt+d above, but doesn't have to be, f1-f12 or whatever.) i try just showing a simple msgbox, though doesn't work. do i need to target the app i want to create a hot key in? not sure. can we overide hotkeys set by an application we're using? for example: your using photoshop, and you want to make ctrl+s do something other than save, possible?

i eat goulash, thank you

Link to comment
Share on other sites

can we overide hotkeys set by an application we're using? for example: your using photoshop, and you want to make ctrl+s do something other than save, possible?

Sure, just create a loop to test what window is currently active. If a different window becomes active you can disable the current hotkeys and enable the set for whatever application just took focus.

[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Link to comment
Share on other sites

Guest pgoulash

thanks pekster...

say notepad was the active app, could you show how i would have ctrl+s perform some function, like just writing a line into notepad?

thanks

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...