StrokesPlus.net
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
JPS  
#1 Posted : Friday, September 1, 2023 6:52:59 PM(UTC)
JPS

Rank: Member

Reputation:

Groups: Approved
Joined: 12/6/2022(UTC)
Posts: 12

Thanks: 5 times
Hello, I'm using a plugin (thanks, Rob) to execute code every time a gesture is triggered.
It works great if I add an action and assign the object I'm interested in,
But if I don't do that, the script runs twice.
The code is very simple, here it is:

Quote:

function executeOnGesture() {
sp.Run('c:\\prg\\scripts\\bin\\sp.ahk "' + ExecuteOnGestureMatch.ExecuteOnGestureMatchWatcher.GestureName + '" ' + ExecuteOnGestureMatch.ExecuteOnGestureMatchWatcher.Button.ToString())
}
ExecuteOnGestureMatch.ExecuteOnGestureMatchWatcher.ExecuteScript = "executeOnGesture();"; I know anybody here
Rob  
#2 Posted : Thursday, October 19, 2023 2:52:49 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,372
United States
Location: Tampa, FL

Thanks: 28 times
Was thanked: 423 time(s) in 359 post(s)
Quote:
It works great if I add an action and assign the object I'm interested in,
But if I don't do that, the script runs twice.


Can you explain here a little more?
Users browsing this topic
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.