Newbie question for outputting ALT plus Control with one text input

Get help for the alpha version of AutoHotkey v2 here. Please state the v2 version you are working with in the title when making a new topic.
paulcopeland
Posts: 19
Joined: 04 Jun 2020, 19:26

Newbie question for outputting ALT plus Control with one text input

16 Aug 2020, 22:30

Edit: AutoHotkey 1.1.32.00

G'day from Australia.

I have searched on youtube as well as here, but cannot find the answer.

I want to enter a single character on the keyboard and have the output consist of at least two characters

For example if I enter e I would like the output to be ^+e (Crlt Shift e)

Thank you for your expert help.

Best wishes and I look forward to hearing from you soon

The script will work with an already open program

Here is what I have now

Code: Select all

a::v

s::m

d::^d

e::ExitApp

=::Suspend
Last edited by paulcopeland on 17 Aug 2020, 08:04, edited 1 time in total.
User avatar
Ragnar
Posts: 368
Joined: 30 Sep 2013, 15:25

Re: Newbie question for outputting ALT plus Control with one text input

17 Aug 2020, 01:44

It is not quite clear what you want, but actually you already have the solution: d::^d.
For example if I enter e I would like the output to be ^+e (Crlt Shift e)

Code: Select all

e::^+e
Or would you like it to be sent literally?

Code: Select all

e::SendText "^+e"
For details, see Hotkeys and Send.
paulcopeland
Posts: 19
Joined: 04 Jun 2020, 19:26

Re: Newbie question for outputting ALT plus Control with one text input

17 Aug 2020, 02:45

Thank you for your quick response.

I would like to add an extra action.

After Crlt Shift e, I would like there to immediately be an automatic right mouse click. (The right mouse click brings down a drop down window where I can then select an item). I am not sure if I need a mouse click down immediately followed by a mouse up?

A bit complicated for me to work out I am afraid.

I hope you can assist.

Thank you.

Paul.

Code: Select all

e::^+e
User avatar
Ragnar
Posts: 368
Joined: 30 Sep 2013, 15:25

Re: Newbie question for outputting ALT plus Control with one text input

17 Aug 2020, 03:49

Maybe like this?

Code: Select all

e::
{
    Send "^+e"
    MouseClick "Right"
}
paulcopeland
Posts: 19
Joined: 04 Jun 2020, 19:26

Re: Newbie question for outputting ALT plus Control with one text input

17 Aug 2020, 05:43

EDIT: I am using AutoHotkey 1.1.32.00

Hi Ragnar.

Thank you for following up with my question.

Unfortunately the code does not work for me. I may have entered it incorrectly.

I only need the output to be Ctrl e

When I run the file, I get the following error message

Error: Parameter #1 invalid

Specifically: "Right"

Line#
001: Return
003: {
004: Send, "^e"
005: MouseClick,"Right"

----->

The program will exit.

Here is the code I have used

Code: Select all

e::

{
	Send "^e"
	MouseClick "Right"
}

\::ExitApp

=::Suspend
We are so close now to resolving my challenge.

I hope you can assist.

Many thanks.

Paul.
Last edited by paulcopeland on 17 Aug 2020, 08:06, edited 1 time in total.
gregster
Posts: 5840
Joined: 30 Sep 2013, 06:48

Re: Newbie question for outputting ALT plus Control with one text input

17 Aug 2020, 05:47

@paulcopeland : Are you aware that you posted your question in the v2 subforum of the Ask For Help forum? Which covers version 2 alpha of AutoHotkey, and not the up-to-date stable version 1.1.33.02 ?!

If so, it might help to mention which v2 version are you using.
paulcopeland
Posts: 19
Joined: 04 Jun 2020, 19:26

Re: Newbie question for outputting ALT plus Control with one text input

17 Aug 2020, 08:00

Thank you.

I am using version 1.1.32.00

so I will repost in the other help forum.

Best wishes and seeya.

Return to “AutoHotkey v2 Help”

Who is online

Users browsing this forum: Kapitano and 8 guests