Press CTRL+W to hold W ...

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
gigilal
Posts: 5
Joined: 10 Apr 2021, 07:11

Press CTRL+W to hold W ...

10 Apr 2021, 07:36

Hi,

So I am totally new to AHK - But I know that once I get to understand it it will be easy for me.

What I am looking into is a script that when I press CTRL+W my PC will automaticaly hold W down for me untill I press CTRL+W again to release it.

I have been testing a few things but AHK only presses the W button down once for me.

Code: Select all

^w::
SendInput w
return
I wounder ( ^ ) is for CTRL where can I find what the different symbols can do? etc what if I would like to use ALT instead.

Code: Select all

!numpad1::
SendInput {t},send /emote Impatient{enter} ; This line sends keystrokes to the active (foremost) window.
return
[Mod edit: [code][/code] tags added.]

Hope someone could help me to get started.
Last edited by BoBo on 10 Apr 2021, 09:00, edited 1 time in total.
Reason: Changed subject line from 'Need Help' to 'press CTRL+W to hold W ...' to be more specific.
gregster
Posts: 9001
Joined: 30 Sep 2013, 06:48

Re: Need help

10 Apr 2021, 08:01

! stands for the Alt modifier.
You can learn about in the docs for hotkeys and the beginner's tutorial (see section 3).

Look for "toggle" examples in these forums... also related: https://www.autohotkey.com/docs/FAQ.htm#repeat

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Anput, dipahk, Nerafius, RandomBoy, Stpham and 107 guests