Cannot send key strokes in chrome address bar

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
neoman24
Posts: 4
Joined: 02 Feb 2020, 00:00

Cannot send key strokes in chrome address bar

02 Feb 2020, 00:06

Hello all,
I'm a noob with Ahk and my issue is very simple.
Basically i want to press the shortcut key to write on the bar in Chrome and then actually send keystrokes.

Code: Select all

f1::
^l
SendInput, someText
return
the ^l part works, but not SendInput.
Anyone knows why?

Thank you in advance.
Neo
ahk nooblie
Posts: 6
Joined: 19 Jan 2020, 00:49

Re: Cannot send key strokes in chrome address bar

02 Feb 2020, 00:11

Send, {Blind}{Text} sometext

Doesn't work?
gregster
Posts: 9113
Joined: 30 Sep 2013, 06:48

Re: Cannot send key strokes in chrome address bar

02 Feb 2020, 00:14

^l alone is not valid AHK syntax - like this, it cannot work. You'll need to send it.

Code: Select all

F1::
send ^l			; or:     Send {F6}
SendInput, someText
return
neoman24
Posts: 4
Joined: 02 Feb 2020, 00:00

Re: Cannot send key strokes in chrome address bar

02 Feb 2020, 08:57

Yeah, i thought of this after i asked, i'm just very stupid.

But thank you for your help.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], peter_ahk and 355 guests