"\" key

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
LokoMan
Posts: 3
Joined: 19 Jun 2022, 06:40

"\" key

Post by LokoMan » 19 Jun 2022, 06:48

Hey all, got a quick question with autohotkey. I've got a script that looks like this.

Code: Select all

\ & RIGHT::
Send {End}
return

\ & LEFT::
Send {Home}
return

\ & UP::
Send {PgUp}
return

\ & DOWN::
Send {PgDn}
return
The functions works fine and as intended, home, end etc do work,, but for some reason, it also breaks my \ key completely. I can't type "\" or "|" at all with this script active.
If I pause the script, it still doesn't work. Once I exit autohotkey, the key will resume working normally.
Any ideas what could be causing such behaviour?

Oh, also, is there any way to run this script on startup somehow? Thanks.

gregster
Posts: 9029
Joined: 30 Sep 2013, 06:48

Re: "\" key

Post by gregster » 19 Jun 2022, 06:49

Welcome to the AHK forums!
This is expected behaviour for a custom combination.
See https://www.autohotkey.com/docs/Hotkeys.htm#combo
and https://www.autohotkey.com/docs/FAQ.htm#Startup

Also, hotkeys need to be suspended, not paused.

LokoMan
Posts: 3
Joined: 19 Jun 2022, 06:40

Re: "\" key

Post by LokoMan » 23 Jun 2022, 08:02

gregster wrote:
19 Jun 2022, 06:49
Welcome to the AHK forums!
This is expected behaviour for a custom combination.
See https://www.autohotkey.com/docs/Hotkeys.htm#combo
and https://www.autohotkey.com/docs/FAQ.htm#Startup

Also, hotkeys need to be suspended, not paused.
Thank you, this makes sense then. I've been able to somewhat restore the functionality with

Code: Select all

\::Send {\}  
return
Shift & \::Send {|}  
return
I was just confused because I have this same script running but with Ctrl instead of the \ key, and my Ctrl key still works fine by itself.

Appreciate the help. Do you happen to know how to make scripts run on startup? That's the only functionality I'm kind of missing now

User avatar
boiler
Posts: 16965
Joined: 21 Dec 2014, 02:44

Re: "\" key

Post by boiler » 23 Jun 2022, 08:44

LokoMan wrote: Do you happen to know how to make scripts run on startup? That's the only functionality I'm kind of missing now
From the FAQ: How do I put my hotkeys and hotstrings into effect automatically every time I start my PC?

LokoMan
Posts: 3
Joined: 19 Jun 2022, 06:40

Re: "\" key

Post by LokoMan » 25 Jun 2022, 14:54

boiler wrote:
23 Jun 2022, 08:44
LokoMan wrote: Do you happen to know how to make scripts run on startup? That's the only functionality I'm kind of missing now
From the FAQ: How do I put my hotkeys and hotstrings into effect automatically every time I start my PC?
Thank you. I did Google but ended up seeing something about registry changes which I wasn't as keen on. This seems simple, I'll give it a try thanks

Edit: Worked a charm. Thank you

Post Reply

Return to “Ask for Help (v1)”