Combine Multi Key to 1 key

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
kk7680
Posts: 9
Joined: 26 May 2016, 05:57

Combine Multi Key to 1 key

26 May 2016, 06:04

i want to combine 3,4,5 to 3, i wrote this:

3::
Send {3}
Send {4}
Send {5}
return


end up it will keep poping 454545454545454545

can anyone help me? many thanks
User avatar
waetherman
Posts: 112
Joined: 05 Feb 2016, 17:00

Re: Combine Multi Key to 1 key

26 May 2016, 06:29

Give us some example of what should happen on what keypresses.

In your example, whenever you press 3 the script will send 345 except it will capture its own 3 and replace it again into 345 and so on recursively.

Try this:

Code: Select all

3::
Suspend, On
Send {3}
Suspend, Off
Send {4}
Send {5}
return
Image
kk7680
Posts: 9
Joined: 26 May 2016, 05:57

Re: Combine Multi Key to 1 key

26 May 2016, 06:32

waetherman wrote:Give us some example of what should happen on what keypresses.

In your example, whenever you press 3 the script will send 345 except it will capture its own 3 and replace it again into 345 and so on recursively.

Try this:

Code: Select all

3::
Suspend, On
Send {3}
Suspend, Off
Send {4}
Send {5}
return

It works, thanks a lot!!
User avatar
rootmos
Posts: 35
Joined: 11 Mar 2016, 04:38
Location: Sweden
Contact:

Re: Combine Multi Key to 1 key

26 May 2016, 06:32

This is working for me:

Code: Select all

$3::
SendInput {3}
SendInput {4}
SendInput {5}
Return
Look at me, I am your god now.
User avatar
waetherman
Posts: 112
Joined: 05 Feb 2016, 17:00

Re: Combine Multi Key to 1 key

26 May 2016, 07:06

rootmos wrote:This is working for me:

Code: Select all

$3::
SendInput {3}
SendInput {4}
SendInput {5}
Return
Oh yes, this is better, I forgot about $
Image

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Rohwedder, Tech Stuff and 356 guests