Hello,
i need a script to do this. When i press {shift down}{shiftup}{a down}{a up} then it makes c pressed for 3 seconds. I've tried many ways and im thinking of using hotstring. Can i make a hotstring like that?
:*B0:{shift}a::
send, {c up}
sleep, 3000
send, {c down}
return
the problem is "{shift}" in string name. it does not work like that. The same for :*B0:+a::
Do u have any ideas for my script? Thanks in advance.
Can i put shift into a hotstring?
Re: Can i put shift into a hotstring?
Shift is not a valid key for hotstrings. I wonder what alternatives people use.
I am your average ahk newbie. Just.. a tat more cute.
Re: Can i put shift into a hotstring?
Hallo,
try:
try:
Code: Select all
~Shift::
Input, Key, VL1T1
If (Key == "a")
{
send, {BS}{c Down}
sleep, 3000
send, {c Up}
}
Return
Re: Can i put shift into a hotstring?
What if you had to press 'a' a second later?Rohwedder wrote:Hallo,
try:Code: Select all
~Shift:: Input, Key, VL1T1 If (Key == "a") { send, {BS}{c Down} sleep, 3000 send, {c Up} } Return
I am your average ahk newbie. Just.. a tat more cute.
Re: Can i put shift into a hotstring?
Hallo,
if you want, do it with T2 or T3 or without T...
if you want, do it with T2 or T3 or without T...
- Delta Pythagorean
- Posts: 627
- Joined: 13 Feb 2017, 13:44
- Location: Somewhere in the US
- Contact:
Re: Can i put shift into a hotstring?
Why not the most simple:
Code: Select all
+a::
; Some action
Return
[AHK]......: v2.0.12 | 64-bit
[OS].......: Windows 11 | 23H2 (OS Build: 22621.3296)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat
Re: Can i put shift into a hotstring?
Because that's a hotkey not a hotstring.Delta Pythagorean wrote:Why not the most simple:Code: Select all
+a:: ; Some action Return
I am your average ahk newbie. Just.. a tat more cute.
Re: Can i put shift into a hotstring?
source https://autohotkey.com/docs/Hotstrings.htmC: Case sensitive: When you type an abbreviation, it must exactly match the case defined in the script. Use C0 to turn case sensitivity back off.
- Delta Pythagorean
- Posts: 627
- Joined: 13 Feb 2017, 13:44
- Location: Somewhere in the US
- Contact:
Re: Can i put shift into a hotstring?
Why not use this:
There's no need for a hotstring.
Code: Select all
~Shift Up::
KeyWait, a, d t0.75
; Your code
Return
[AHK]......: v2.0.12 | 64-bit
[OS].......: Windows 11 | 23H2 (OS Build: 22621.3296)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat
Re: Can i put shift into a hotstring?
Hallo Delta Pythagorean:
Because it does not work.
Every time after any capital letter is written, your Hotkey fires!
Because it does not work.
Every time after any capital letter is written, your Hotkey fires!
Re: Can i put shift into a hotstring?
repeating post above because nobody read it probably
Guest wrote:source https://autohotkey.com/docs/Hotstrings.htmC: Case sensitive: When you type an abbreviation, it must exactly match the case defined in the script. Use C0 to turn case sensitivity back off.
Re: Can i put shift into a hotstring?
Pal we already discussed that but we were looking at other options. You see the problem with case is that you have to press shift while you're typing the key. But we want it to work when shift is lifted, released, and the key is pressed as well.Guest wrote:repeating post above because nobody read it probablyGuest wrote:source https://autohotkey.com/docs/Hotstrings.htmC: Case sensitive: When you type an abbreviation, it must exactly match the case defined in the script. Use C0 to turn case sensitivity back off.
But that's a good alternative can't deny.
I am your average ahk newbie. Just.. a tat more cute.
Who is online
Users browsing this forum: filipemb and 368 guests