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

Notification

Icon
Error

Options
Go to last post Go to first unread
taro-sato  
#1 Posted : Saturday, February 5, 2022 7:53:02 AM(UTC)
taro-sato

Rank: Newbie

Reputation:

Groups: Approved
Joined: 2/5/2022(UTC)
Posts: 1
Japan

Hi there, I've been using StrokesPlus for several years.
Recently I've met an error after changing to a new laptop PC with a built-in 2nd monitor, which means I use 3 monitors sometimes.
1 is main monitor of the laptop PC, 2nd is sub monitor of the same laptop PC, 3rd is external monitor connected via Wifi or USB or D-SUB (depends on what option I have).

The script is totally same as written in here
https://www.strokesplus.net/ExampleScripts.txt


Quote:
//Send the window to the previous screen in relation to the current screen and center the mouse on the destination screen

var scr = action.Window.MoveToPreviousScreen();
sp.ConsumePhysicalInput(true);
sp.MouseMove(new Point(scr.Bounds.Left + (scr.Bounds.Width / 2), scr.Bounds.Top + (scr.Bounds.Height / 2)));
sp.ConsumePhysicalInput(false);


The error message is
Quote:
Script execution failed.
Error: Type 'System.Drawing.Point' has no constructor that matches the specified arguments
at Script [7453]:5:16 ->
sp.MouseMove(new Point(scr.Bounds.Left + (scr.Bounds.Width / 2), scr.Bounds. Top + (scr.Bounds.Height/2)));


After I get this message, I can't do anything and have to shutdown PC by pushing power button for 3 seconds.
I guess the error appears after turning off 3rd screen which means when I use only 2 monitors, but not sure because I can't test much to avoid unnecessary force shutdown.

How can I tweak this script???
ventricle9286  
#2 Posted : Saturday, October 1, 2022 9:00:51 PM(UTC)
ventricle9286

Rank: Newbie

Reputation:

Groups: Approved
Joined: 10/1/2022(UTC)
Posts: 1

I think you have to pick one of three and comment out other ones you did not pick.
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.