Page 1 of 1

Reassign F12 ?

Posted: 15 Jul 2022, 16:53
by dorsalmo
I want to reassign F12 so I can use it in Visual Studio. How do I do this?

Re: Reassign F12 ?

Posted: 15 Jul 2022, 17:24
by mikeyww
Welcome to this AutoHotkey forum!

Code: Select all

F12::x

Re: Reassign F12 ?

Posted: 18 Jul 2022, 08:50
by dorsalmo
Thanks for responding, but I'm a newbie. Where do I use that code? In a new macro? At the top of every macro I create? In some system-wide configuration area?

Re: Reassign F12 ?

Posted: 18 Jul 2022, 10:12
by mikeyww
This may help. https://www.autohotkey.com/docs/Program.htm

When you run a script with hotkeys, it stays resident and will execute the hotkey routines when they are triggered. Have a look at examples in the documentation or here on the forum.

Re: Reassign F12 ?

Posted: 21 Jul 2022, 20:04
by dorsalmo
I forgot to mention that I'm using Pulover's Macro Creator, not AutoHotkey. It has reassigned important function keys, which I did not want. I just wanted to create a couple simple text macros, but now I need to figure out how to disable PMC's key assignments so I can use Visual Studio's keys again!

Re: Reassign F12 ?

Posted: 21 Jul 2022, 20:36
by mikeyww
Since the script is just a plain text file, you can use a text editor to delete the hotkey routines that you do not want.

Re: Reassign F12 ?

Posted: 22 Jul 2022, 13:42
by dorsalmo
I have created the script using Notepad, but I have no idea how to run it in PMC. It doesn't appear to support scripts, only recorded macros.

Re: Reassign F12 ?

Posted: 22 Jul 2022, 13:55
by tidbit
Most of us don't use PMC. If you're using PMC, use the dedicated PMC section for those who do use it: viewforum.php?f=63
Maybe consider learning ahk? It's not as hard as it looks. start here: https://autohotkey.com/docs/Tutorial.htm

moved the topic for you.

Re: Reassign F12 ?

Posted: 25 Jul 2022, 12:48
by dorsalmo
Yes, AutoHotKey was much easier to use for my purposes - and it didn't reassign keys I use in Visual Studio. Thanks.