Rank: Member
Groups: Approved
Joined: 12/6/2022(UTC) Posts: 12
Thanks: 5 times
|
Hello, I'm executing this script on Quote:ExecuteOnGestureMatch.ExecuteOnGestureMatchWatcher.ExecuteScript This is the script: Code:
function executeOnGesture() {
var columns = 3;
var rows = 3;
try{
var columns = 3;
var rows = 3;
var regionCol = 1
var regionRow = 1
var region = sp.GetRegionFromPoint(sp.ForegroundWindow().Rectangle, sp.GetCurrentMousePoint(), columns, rows);
if(!(region == null)) {
regionCol = region.Column
regionRow = region.Row
}
sp.Run('c:\\prg\\scripts\\bin\\sp.ahk ' + ExecuteOnGestureMatch.ExecuteOnGestureMatchWatcher.GestureName + " " + ExecuteOnGestureMatch.ExecuteOnGestureMatchWatcher.Button.ToString() + " " + regionCol + " " + regionRow)
} catch(e) {
sp.MessageBox( e, "Error")
}
//sp.Run('c:\\prg\\scripts\\bin\\sp.ahk ' + "none" + " " + ExecuteOnGestureMatch.ExecuteOnGestureMatchWatcher.GestureName + " " + "global" + " " + ExecuteOnGestureMatch.ExecuteOnGestureMatchWatcher.Button.ToString() + " " + region.Row + " " + region.Column)
}
ExecuteOnGestureMatch.ExecuteOnGestureMatchWatcher.ExecuteScript = "executeOnGesture();";
Can you tell me if it's posible to send more data to my script, for example: the modifier(alt/ctrl/windows key), The command that has been executed, if any, etc. And I'm having this issue where region.Column is "Right" Thank you!
|
|
|
|
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