Struggling with CAPITALIZATION Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
lockExe
Posts: 4
Joined: 16 Dec 2017, 16:27

Struggling with CAPITALIZATION

16 Dec 2017, 16:35

my current "working" hotkey is:

Loop 30
{
F::
Send, FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
return
}


i know something's wrong with the loop itself but it functions normally at least >-<

but i would like the single "F::" to register as if shift is being held down
i cant seem to understand any of this stringupper or ^!u stuff, or maybe just cant figure out where to put it?
if someone could work with this (and keep it tidy, preferably, there are a lot of commands in this file) it would be greatly appreciated <33
User avatar
Delta Pythagorean
Posts: 627
Joined: 13 Feb 2017, 13:44
Location: Somewhere in the US
Contact:

Re: Struggling with CAPITALIZATION

16 Dec 2017, 19:01

Code: Select all

F::
Loop, 30 {
    Send, FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
}
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

Osprey
Posts: 453
Joined: 18 Nov 2017, 05:50

Re: Struggling with CAPITALIZATION

16 Dec 2017, 21:59

If you want a single 'f' to come out as 'F', simply use the following:

Code: Select all

$F::Send, +f
lockExe
Posts: 4
Joined: 16 Dec 2017, 16:27

Re: Struggling with CAPITALIZATION

16 Dec 2017, 22:29

Delta Pythagorean wrote:

Code: Select all

F::
Loop, 30 {
    Send, FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
}
Return
that just made it loop until AHK was like "whoa buddy calm down" lmao
thank you though!
lockExe
Posts: 4
Joined: 16 Dec 2017, 16:27

Re: Struggling with CAPITALIZATION

16 Dec 2017, 22:36

Osprey wrote:If you want a single 'f' to come out as 'F', simply use the following:

Code: Select all

$F::Send, +f
i need, when i press "F", that it only registers in uppercase, so i need to be holding down shift when i press the key
but i need "F" to send multiple F's
lockExe
Posts: 4
Joined: 16 Dec 2017, 16:27

Re: Struggling with CAPITALIZATION  Topic is solved

16 Dec 2017, 22:44

lockExe wrote:my current "working" hotkey is:

Loop 30
{
F::
Send, FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
return
}
[....]
Fixed with this:

Loop 30
{
+F::
Send, ffffffffffffffffffff
return
}


thank you both for your help!!! you gave great tips and ive got it working perfectly now <33 love you
Osprey
Posts: 453
Joined: 18 Nov 2017, 05:50

Re: Struggling with CAPITALIZATION

16 Dec 2017, 23:15

Your loop does nothing. What you have is no different than:

Code: Select all

+F::Send, ffffffffffffffffffff
If you prefer using a loop, though, then do:

Code: Select all

+F::
  Loop 30
    Send, f
return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: ccqcl, Descolada, Rohwedder and 179 guests