Quick Question

Get help with using AutoHotkey and its commands and hotkeys
username123
Posts: 4
Joined: 25 Jan 2020, 00:07

Quick Question

25 Jan 2020, 00:25

Hi,

I have a script that spam my keys for a game, but i have a problem... i've a french keyboard so i don't have 1 2 3 4 on alphanumeric keys but i have & é " ' .

So to spam 1 (which is & in my keyboard) i do this;

$&::
While GetKeyState("&","P")
Send, {&}
Return

Same work for 2 (which is é on my keyboard)

I want to do same but with 3 (which is " QUOTES on my keyboard).
Please help tyvm
gregster
Posts: 4652
Joined: 30 Sep 2013, 06:48

Re: Quick Question

25 Jan 2020, 00:57

Like this?

Code: Select all

$"::
While GetKeyState("""","P")
	Send, "
Return
https://www.autohotkey.com/docs/commands/_EscapeChar.htm#Escape_Sequences wrote:Within an expression, two consecutive quotes enclosed inside a literal string resolve to a single literal quote.
btw, welcome to the forums!
username123
Posts: 4
Joined: 25 Jan 2020, 00:07

Re: Quick Question

27 Jan 2020, 21:07

Thank you, it works.

Return to “Ask For Help”

Who is online

Users browsing this forum: anhnha, Google [Bot], pnKed, SilasDeVis and 61 guests