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, June 16, 2023 1:13:17 PM(UTC)
JPS

Rank: Member

Reputation:

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!
Users browsing this topic
Guest
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.