How to type 5 shift keys in a row?
Don Cole
[Mod note: Added topic name]
How to type 5 shift keys in a row? Topic is solved
Re:
Code: Select all
Send {Shift 5}
Re: Re:
Code: Select all
;;;;;;;;;;;;;;;;;;;;;;;;;; Windows Alt ;;;;;;;;;;;;;;;;;;;;;;;;;
!w::
Send, _Windows 10
return
^F9:: ;;;;;;;;;;;;;;;;;;;;; ppause() ;;;;;;;;;;;;;;;;;;;;;;;;;
send, ppause("")
return
F6:: ;;;;;;;;;;;;;;;;;;;;; Sticky Key ;;;;;;;;;;;;;;;;;;;;;;;
Send, {SHIFT 5}
Return
ppause() works.
Sticky Keys dosn't work.
nothing happens when I press F6.
I also I tried !F6.
Still bothing happens.
As you probably know:
!=Alt
^=Ctl
Mod edit: Fixed Formatting
Re: How to type 5 shift keys in a row?
['QUOIe
7/ ASDXf ;;;;;;;;;;;;;;;;;;;;;;;;;; Windows Alt ;;;;;;;;;;;;;;;;;;;;;;;;;
!w::
Send, Windows 10
return
F6:: ;;;;;;;;;;;;;;;;;;;;;; Sticky Keys ;;;;;;;;;;;;;;;;;;;;;;;
Send, {SHIFT 5}
Return
Windows Alt works
Sticky Keys dosn't
Nothing happens
Same with !F6
As you problem know:
!=Alt
^=Ctl
7/ ASDXf ;;;;;;;;;;;;;;;;;;;;;;;;;; Windows Alt ;;;;;;;;;;;;;;;;;;;;;;;;;
!w::
Send, Windows 10
return
F6:: ;;;;;;;;;;;;;;;;;;;;;; Sticky Keys ;;;;;;;;;;;;;;;;;;;;;;;
Send, {SHIFT 5}
Return
Windows Alt works
Sticky Keys dosn't
Nothing happens
Same with !F6
As you problem know:
!=Alt
^=Ctl
Re: How to type 5 shift keys in a row?
Perhaps something like this?
Code: Select all
F6:: ; Press F6 to activate
Send, {Shift Down}
Input, string, L5 V ; you could add an endkey, see 'Input' docs
Send, {Shift Up}
return
Re: How to type 5 shift keys in a row?
Thank you gregster,
I tried your code and still get nothing after hitting F6.
I don't hear any beeps either.
Shouldn't I hear 5 beeps?
Don Cole
I tried your code and still get nothing after hitting F6.
I don't hear any beeps either.
Shouldn't I hear 5 beeps?
Don Cole
Re: How to type 5 shift keys in a row?
No, why beeps? Do you usually hear beeps when you use shift?
What do you expect to happen?
With this script, you hit F6 and then the next five characters you type, will be shifted (as long as you don't press shift yourself).
Just 5 shift keys in a row will be sent with this: https://www.autohotkey.com/boards/viewtopic.php?f=76&t=64473&p=277465#p276582
If that's not what you want, please elaborate... we could do beeps with Soundbeep.
If the receiving app runs with elevated rights, run your script as admin.
If that's for a game, it might be more complicated, but then I am probably the wrong guy to help you.
Perhaps this helps then: How to Make AHK Work in Most Games - The Basics
What do you expect to happen?
With this script, you hit F6 and then the next five characters you type, will be shifted (as long as you don't press shift yourself).
Just 5 shift keys in a row will be sent with this: https://www.autohotkey.com/boards/viewtopic.php?f=76&t=64473&p=277465#p276582
If that's not what you want, please elaborate... we could do beeps with Soundbeep.
If the receiving app runs with elevated rights, run your script as admin.
If that's for a game, it might be more complicated, but then I am probably the wrong guy to help you.
Perhaps this helps then: How to Make AHK Work in Most Games - The Basics
Re: How to type 5 shift keys in a row?
the question evidently wasnt "how to type 5 shift keys in a row?"
rather, it was "how to switch sticky keys on?"
and the answer to that is: "not by typing 5 shift keys in a row"
rather, it was "how to switch sticky keys on?"
and the answer to that is: "not by typing 5 shift keys in a row"
Code: Select all
1::toggleStickyKeys(1)
2::toggleStickyKeys(0)
toggleStickyKeys(enableStickyKeys := true) {
static SPI_GETSTICKYKEYS := 0x003A
, SPI_SETSTICKYKEYS := 0x003B
, SIZE_STICKYKEYS := 8
, SKF_STICKYKEYSON := 0x00000001
, SPIF_UPDATEINIFILE := 0x0001
, SPIF_SENDCHANGE := 0x0002
VarSetCapacity(SK, SIZE_STICKYKEYS, 0)
NumPut(SIZE_STICKYKEYS, &SK, 0, "UInt")
DllCall("SystemParametersInfo", "UInt", SPI_GETSTICKYKEYS, "UInt", SIZE_STICKYKEYS, "Ptr", &SK, "UInt", 0)
dwFlags := NumGet(&SK, 4, "UInt")
if enableStickyKeys
dwFlags |= SKF_STICKYKEYSON
else
dwFlags &= ~SKF_STICKYKEYSON
NumPut(dwFlags, &SK, 4, "UInt")
DllCall("SystemParametersInfo", "UInt", SPI_SETSTICKYKEYS, "UInt", SIZE_STICKYKEYS, "Ptr", &SK, "UInt", SPIF_UPDATEINIFILE | SPIF_SENDCHANGE)
}
Re: How to type 5 shift keys in a row?
Thank you swagfag
That's what I was looking for.
I did word my question wrong.
It does work btw.
Don Cole
That's what I was looking for.
I did word my question wrong.
It does work btw.
Don Cole
Re: How to type 5 shift keys in a row?
I want to thank you again awaghag,
That code saved me a lot of time.
I got tired of pushing the shift key 5 times.
BTW how do I mark a thread as solved?
That code saved me a lot of time.
I got tired of pushing the shift key 5 times.
BTW how do I mark a thread as solved?
Re: How to type 5 shift keys in a row?
Didn't you want to mark one of swagfag's (topic-related) posts instead of mine?
Each post has a check mark... I think, by clicking it a second time, you can unmark a post again and select another one.
Each post has a check mark... I think, by clicking it a second time, you can unmark a post again and select another one.
Who is online
Users browsing this forum: Google [Bot] and 58 guests