ctrl + F12

Get help with using AutoHotkey and its commands and hotkeys
JoPo
Posts: 25
Joined: 04 Feb 2018, 09:03

ctrl + F12

10 Jun 2018, 06:04

Grrr !
I thought I would be able to easily make a simple line script like that but..... :eh:

I've got a new keyboard on which the manufacturer forgot to put the "pause" key ! And I like the shortcut windows key + pause to open system in windows 7. So, I decided to use the F12 key but not alone, so, ctrl + F12 and only when it's windows explrer the active window.

I did like that :

Code: Select all

#IfWinActive ahk_exe C:\Windows\explorer.exe
>^F12::#Pause
return
It's not working !! If I remove the ">^", so, just by pressing the F12 key, it is working !
So, my question is : what wrong with >^F12 ? Or what else is wrong ?

Thanks a lot !
> > > > > > > > > > > > --- Musica --> here ! ---< < < < < < < < < < < <
Rohwedder
Posts: 2281
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: ctrl + F12

10 Jun 2018, 10:48

Hallo,
try:

Code: Select all

#IfWinActive ahk_exe C:\Windows\explorer.exe
>^F12::Send, #{Pause}
JoPo
Posts: 25
Joined: 04 Feb 2018, 09:03

Re: ctrl + F12

10 Jun 2018, 17:46

Yeah !! That's working ! Pff !

Sorry to take so long for answering, I wasn't at home.

I tried with # (with no luck) but not {}... What do {} add ?? Why are they needed ?
I tried also with "send" but not with the "," why is it needed too ?

I'd like to understand for next time to achieve without help... I hope... :mrgreen: :roll:
> > > > > > > > > > > > --- Musica --> here ! ---< < < < < < < < < < < <
Rohwedder
Posts: 2281
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: ctrl + F12

11 Jun 2018, 00:40

Hallo,
it is a syntax rule. "Pause" is a Key Name.
https://autohotkey.com/docs/commands/Send.htm#keynames
Key Names: The following table lists the special keys that can be sent (each key name must be enclosed in braces)
JoPo
Posts: 25
Joined: 04 Feb 2018, 09:03

Re: ctrl + F12

11 Jun 2018, 07:42

Danke sehr ! ;)
> > > > > > > > > > > > --- Musica --> here ! ---< < < < < < < < < < < <

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], Bort P, Desperate for my F9, ElektroBerry, flint, Google [Bot], Gully, KHA, mehrez1989, SuperFoobar and 198 guests