StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Register | Active Topics
Members | Search | FAQ
 All Forums
 Lua Scripts
 General Action Scripts
 Key Press Code Helper

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
XilE Posted - 10/06/2013 : 20:49:07
Well I'm not really sure if this is the right place to post this since it's not SP or LUA "It's AutoHotkey". I set this up to make key pressing macros faster without having to memorize every keys code.

Lazy I know

Almost forgot! You can put ; before #IfWinActive or remove the line if you want this script to work outside of SP.

#IfWinActive ahk_class #32770 ; strokes plus
#SingleInstance Force
TrayTip, Strokes Plus quick keys -By XilE, Click inside the strokes plus scripting area `nPress the appskey to trigger then press the key you want `nPress the appskey again paste the up code for your key, 7500
suspend, on


appskey::
suspend
If U = 1
{
Send, ^v
U=0
Suspend
Return
}
Else
{
}
return

backspace::
Send acSendKeyDown(8)
Clipboard=acSendKeyUp(8)
U=1
suspend
return


tab::
Send acSendKeyDown(9)
Clipboard=acSendKeyUp(9)
U=1
suspend
return


enter::
Send acSendKeyDown(13)
Clipboard=acSendKeyUp(13)
U=1
suspend
return


shift::
Send acSendKeyDown(16)
Clipboard=acSendKeyUp(16)
U=1
suspend
return

ctrl::
Send acSendKeyDown(17)
Clipboard=acSendKeyUp(17)
U=1
suspend
return

alt::
Send acSendKeyDown(18)
Clipboard=acSendKeyUp(18)
U=1
suspend
return

pause::
Send acSendKeyDown(19)
Clipboard=acSendKeyUp(19)
U=1
suspend
return

capslock::
Send acSendKeyDown(20)
Clipboard=acSendKeyUp(20)
U=1
suspend
return

esc::
Send acSendKeyDown(27)
Clipboard=acSendKeyUp(27)
U=1
suspend
return

space::
Send acSendKeyDown(32)
Clipboard=acSendKeyUp(32)
U=1
suspend
return

pgup::
Send acSendKeyDown(33)
Clipboard=acSendKeyUp(33)
U=1
U=1
suspend
return

pgdn::
Send acSendKeyDown(34)
Clipboard=acSendKeyUp(34)
U=1
suspend
return

end::
Send acSendKeyDown(35)
Clipboard=acSendKeyUp(35)
U=1
suspend
return

home::
Send acSendKeyDown(36)
Clipboard=acSendKeyUp(36)
U=1
suspend
return

up::
Send acSendKeyDown(38)
Clipboard=acSendKeyUp(38)
U=1
suspend
return

down::
Send acSendKeyDown(40)
Clipboard=acSendKeyUp(40)
U=1
suspend
return

left::
Send acSendKeyDown(37)
Clipboard=acSendKeyUp(37)
U=1
suspend
return

right::
Send acSendKeyDown(39)
Clipboard=acSendKeyUp(39)
U=1
suspend
return

insert::
Send acSendKeyDown(45)
Clipboard=acSendKeyUp(45)
U=1
suspend
return

del::
Send acSendKeyDown(46)
Clipboard=acSendKeyUp(46)
U=1
suspend
return

0::
Send acSendKeyDown(48)
Clipboard=acSendKeyUp(48)
U=1
suspend
return

1::
Send acSendKeyDown(49)
Clipboard=acSendKeyUp(49)
U=1
suspend
return

2::
Send acSendKeyDown(50)
Clipboard=acSendKeyUp(50)
U=1
suspend
return

3::
Send acSendKeyDown(51)
Clipboard=acSendKeyUp(51)
U=1
suspend
return

4::
Send acSendKeyDown(52)
Clipboard=acSendKeyUp(52)
U=1
suspend
return

5::
Send acSendKeyDown(53)
Clipboard=acSendKeyUp(53)
U=1
suspend
return

6::
Send acSendKeyDown(54)
Clipboard=acSendKeyUp(54)
U=1
suspend
return

7::
Send acSendKeyDown(55)
Clipboard=acSendKeyUp(55)
U=1
suspend
return

8::
Send acSendKeyDown(56)
Clipboard=acSendKeyUp(56)
U=1
suspend
return

9::
Send acSendKeyDown(57)
Clipboard=acSendKeyUp(57)
U=1
suspend
return

a::
Send acSendKeyDown(65)
Clipboard=acSendKeyUp(65)
U=1
suspend
return

b::
Send acSendKeyDown(66)
Clipboard=acSendKeyUp(66)
U=1
suspend
return

c::
Send acSendKeyDown(67)
Clipboard=acSendKeyUp(67)
U=1
suspend
return

d::
Send acSendKeyDown(68)
Clipboard=acSendKeyUp(68)
U=1
suspend
return

e::
Send acSendKeyDown(69)
Clipboard=acSendKeyUp(69)
U=1
suspend
return

f::
Send acSendKeyDown(70)
Clipboard=acSendKeyUp(70)
U=1
suspend
return

g::
Send acSendKeyDown(71)
Clipboard=acSendKeyUp(71)
U=1
suspend
return

h::
Send acSendKeyDown(72)
Clipboard=acSendKeyUp(72)
U=1
suspend
return

i::
Send acSendKeyDown(73)
Clipboard=acSendKeyUp(73)
U=1
suspend
return

j::
Send acSendKeyDown(74)
Clipboard=acSendKeyUp(74)
U=1
suspend
return

k::
Send acSendKeyDown(75)
Clipboard=acSendKeyUp(75)
U=1
suspend
return

l::
Send acSendKeyDown(76)
Clipboard=acSendKeyUp(76)
U=1
suspend
return

m::
Send acSendKeyDown(77)
Clipboard=acSendKeyUp(77)
U=1
suspend
return

n::
Send acSendKeyDown(78)
Clipboard=acSendKeyUp(78)
U=1
suspend
return

o::
Send acSendKeyDown(79)
Clipboard=acSendKeyUp(79)
U=1
suspend
return

p::
Send acSendKeyDown(80)
Clipboard=acSendKeyUp(80)
U=1
suspend
return

q::
Send acSendKeyDown(81)
Clipboard=acSendKeyUp(81)
U=1
suspend
return

r::
Send acSendKeyDown(82)
Clipboard=acSendKeyUp(82)
U=1
suspend
return

s::
Send acSendKeyDown(83)
Clipboard=acSendKeyUp(83)
U=1
suspend
return

t::
Send acSendKeyDown(84)
Clipboard=acSendKeyUp(84)
U=1
suspend
return

u::
Send acSendKeyDown(85)
Clipboard=acSendKeyUp(85)
U=1
suspend
return

v::
Send acSendKeyDown(86)
Clipboard=acSendKeyUp(86)
U=1
suspend
return

w::
Send acSendKeyDown(87)
Clipboard=acSendKeyUp(87)
U=1
suspend
return

x::
Send acSendKeyDown(88)
Clipboard=acSendKeyUp(88)
U=1
suspend
return

y::
Send acSendKeyDown(89)
Clipboard=acSendKeyUp(89)
U=1
suspend
return

z::
Send acSendKeyDown(90)
Clipboard=acSendKeyUp(90)
U=1
suspend
return

lwin::
Send acSendKeyDown(91)
Clipboard=acSendKeyUp(91)
U=1
suspend
return

rwin::
Send acSendKeyDown(92)
Clipboard=acSendKeyUp(92)
U=1
suspend
return

numpad1::
Send acSendKeyDown(97)
Clipboard=acSendKeyUp(97)
U=1
suspend
return

numpad2::
Send acSendKeyDown(98)
Clipboard=acSendKeyUp(98)
U=1
suspend
return

numpad3::
Send acSendKeyDown(99)
Clipboard=acSendKeyUp(99)
U=1
suspend
return

numpad4::
Send acSendKeyDown(100)
Clipboard=acSendKeyUp(100)
U=1
suspend
return

numpad5::
Send acSendKeyDown(101)
Clipboard=acSendKeyUp(101)
U=1
suspend
return

numpad6::
Send acSendKeyDown(102)
Clipboard=acSendKeyUp(102)
U=1
suspend
return

numpad7::
Send acSendKeyDown(103)
Clipboard=acSendKeyUp(103)
U=1
suspend
return

numpad8::
Send acSendKeyDown(104)
Clipboard=acSendKeyUp(104)
U=1
suspend
return

numpad9::
Send acSendKeyDown(105)
Clipboard=acSendKeyUp(105)
U=1
suspend
return

numpadmult::
Send acSendKeyDown(106)
Clipboard=acSendKeyUp(106)
U=1
suspend
return

numpadadd::
Send acSendKeyDown(107)
Clipboard=acSendKeyUp(107)
U=1
suspend
return

numpadsub::
Send acSendKeyDown(109)
Clipboard=acSendKeyUp(109)
U=1
suspend
return

numpaddot::
Send acSendKeyDown(110)
Clipboard=acSendKeyUp(110)
U=1
suspend
return

numpaddiv::
Send acSendKeyDown(111)
Clipboard=acSendKeyUp(111)
U=1
suspend
return

f1::
Send acSendKeyDown(112)
Clipboard=acSendKeyUp(112)
U=1
suspend
return

f2::
Send acSendKeyDown(113)
Clipboard=acSendKeyUp(113)
U=1
suspend
return

f3::
Send acSendKeyDown(114)
Clipboard=acSendKeyUp(114)
U=1
suspend
return

f4::
Send acSendKeyDown(115)
Clipboard=acSendKeyUp(115)
U=1
suspend
return

f5::
Send acSendKeyDown(116)
Clipboard=acSendKeyUp(116)
U=1
suspend
return

f6::
Send acSendKeyDown(117)
Clipboard=acSendKeyUp(117)
U=1
suspend
return

f7::
Send acSendKeyDown(118)
Clipboard=acSendKeyUp(118)
U=1
suspend
return

f8::
Send acSendKeyDown(119)
Clipboard=acSendKeyUp(119)
U=1
suspend
return

f9::
Send acSendKeyDown(120)
Clipboard=acSendKeyUp(120)
U=1
suspend
return

f10::
Send acSendKeyDown(121)
Clipboard=acSendKeyUp(121)
U=1
suspend
return

f11::
Send acSendKeyDown(122)
Clipboard=acSendKeyUp(122)
U=1
suspend
return

f12::
Send acSendKeyDown(123)
Clipboard=acSendKeyUp(123)
U=1
suspend
return

numlock::
Send acSendKeyDown(144)
Clipboard=acSendKeyUp(144)
U=1
suspend
return

scrolllock::
Send acSendKeyDown(145)
Clipboard=acSendKeyUp(145)
U=1
suspend
return

$;::
Send acSendKeyDown(186)
Clipboard=acSendKeyUp(186)
U=1
suspend
return

$=::
Send acSendKeyDown(187)
Clipboard=acSendKeyUp(187)
U=1
suspend
return

$,::
Send acSendKeyDown(188)
Clipboard=acSendKeyUp(188)
U=1
suspend
return

$-::
Send acSendKeyDown(189)
Clipboard=acSendKeyUp(189)
U=1
suspend
return

$.::
Send acSendKeyDown(190)
Clipboard=acSendKeyUp(190)
U=1
suspend
return

$/::
Send acSendKeyDown(191)
Clipboard=acSendKeyUp(191)
U=1
suspend
return

$`::
Send acSendKeyDown(192)
Clipboard=acSendKeyUp(192)
U=1
suspend
return

$[::
Send acSendKeyDown(219)
Clipboard=acSendKeyUp(219)
U=1
suspend
return

$\::
Send acSendKeyDown(220)
Clipboard=acSendKeyUp(220)
U=1
suspend
return

$]::
Send acSendKeyDown(221)
Clipboard=acSendKeyUp(221)
U=1
suspend
return

$'::
Send acSendKeyDown(222)
Clipboard=acSendKeyUp(222)
U=1
suspend
return
8   L A T E S T    R E P L I E S    (Newest First)
Rob Posted - 11/27/2018 : 08:01:12
Yep! See the help page here for more info on using acSendKeys:

https://www.strokesplus.com/help/#acSendKeysUsage
nlambert Posted - 11/27/2018 : 07:25:31
Because this post was the only one I found and I didn't know you could do that!

acSendKeys('^c')

So that would be "Ctrl + c" ?
nober Posted - 11/27/2018 : 02:27:25
May I ask why you use
acSendControlDown()
acSendKeyDown(67)
acSendKeyUp(67)
acSendControlUp()

instead of
acSendKeys('^c')
?
nlambert Posted - 11/26/2018 : 09:03:44
Thanks! I was able to make it work. Here's my "Open Discord link in Explorer" function :

-- Ctrl C + Win R
acSendControlDown()
acSendKeyDown(67)
acSendKeyUp(67)
acSendControlUp()
acSendKeyDown(91)
acSendKeyDown(82)
acSendKeyUp(82)
acSendKeyUp(91)

acDelay(800)

-- \
acSendKeys('\\')

acDelay(300)

-- Ctrl V + Enter
acSendControlDown()
acSendKeyDown(86)
acSendKeyUp(86)
acSendControlUp()
acDelay(300)
acSendKeyDown(13)
acSendKeyUp(13)
nober Posted - 11/23/2018 : 22:51:34
Actually it can be as simple as
acSendKeys('`')
.

If you want it to be triggered with alt key (for alt, in modern Windows, there's no differentiation between right and left),
acSendKeys('%`')
.
nober Posted - 11/22/2018 : 23:01:33
As a single line,

acSendKeys('%{vkey 192}')

P.S. The key code of ` (the key left of number 1) is 192.
nober Posted - 11/22/2018 : 13:48:27
On a US Keyboard:

acSendAltDown()
acSendKeyDown(192)
acSendKeyUp(192)
acSendAltUp()
nlambert Posted - 10/12/2018 : 14:10:03
Hi there!
Thanks for the list, we've bee using it for a couple of years now to add some scripts to Strokes Plus. I'm trying to make an "Open Discord link in Explorer" gesture for which I need the following key presses :

Ctrl + C
Win + R
\ (because Discord always ignore the first \ when someone posts a network link)
Ctrl + V
Enter

Problem is, I'm using a french Canadian keyboard and acSendKeyDown(220) doesn't send \, it's used for "". I would need to do Right Alt + ` (the key left of number 1) but I can't find any of those in your list.

Here's what it looks like right now. Instead of using right alt I've put shift + alt which does the same thing :

-- Ctrl C + Win R
acSendControlDown()
acSendKeyDown(67)
acSendKeyUp(67)
acSendControlUp()
acSendKeyDown(91)
acSendKeyDown(82)
acSendKeyUp(82)
acSendKeyUp(91)

acDelay(800)

-- \ (Alt + Shift + ?)
acSendKeyDown(17)
acSendKeyDown(18)
acSendKeyDown(?)
acSendKeyUp(17)
acSendKeyUp(18)
acSendKeyUp(?)

acDelay(300)

-- Ctrl V + Enter
acSendControlDown()
acSendKeyDown(86)
acSendKeyUp(86)
acSendControlUp()
acDelay(300)
acSendKeyDown(13)
acSendKeyUp(13)

I know this is a really old post but I couldn't find another list compatible with StrokesPlus on the Web. Maybe someone here knows where this is coming from?

tl;dr
How can I send "Right Alt" and the key left of number 1 (usually used to open in-game consoles)

Thanks for the help!

StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000