StrokesPlus.net Forum
»
General Discussion
»
Scripts
»
Execute an external script on gesture
Rank: Newbie
Groups: Approved
Joined: 12/6/2022(UTC) Posts: 8
Thanks: 4 times
|
Hello guys. Is it possible to execute an external script on any gesture? For now what I'm doing is executing that script on every gesture one by one, like this:  and this is my autohotkey v2 script (only for testing) #SingleInstance Force cmd := A_Args[1] gestureName := A_Args[2] appName := A_Args[3] MouseGetPos(&xpos, &ypos) msg(cmd . ' x:' . xpos . ' y:' . ypos . ' g:' . gestureName . ' app:' . appName, 4, 20, 1, 1) if (cmd == 'media-next' and appName == 'Global' and ypos > 1000) send('{Media_Next}') if (cmd == 'media-prev' and ypos > 1000 and appName == 'Global') send('{Media_Prev}')
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,294  Location: Tampa, FL Thanks: 28 times Was thanked: 404 time(s) in 349 post(s)
|
Assuming you want to execute a script in conjuction with an existing, defined S+ action:
Global Actions > Settings > After Action > Source: Custom
If you want any defined Applications to also execute that same script, you can set that via:
(Application name) > Before/After Automation > After Action > Source: Inherit from Global Actions
...or select Custom to have a different script execute.
Or are you simply looking to execute AHK on any gesture even if it's not defined as an action in S+?
|
 1 user thanked Rob for this useful post.
|
|
|
Rank: Newbie
Groups: Approved
Joined: 12/6/2022(UTC) Posts: 8
Thanks: 4 times
|
Thank you, Rob, worked like a charm!!! I'm so happy with this software, especially in combination with AutoHotkey, the best!
|
|
|
|
StrokesPlus.net Forum
»
General Discussion
»
Scripts
»
Execute an external script on gesture
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The StrokesPlus.net Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close