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



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

Rank: Newbie


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

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

//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.MouseMove(new Point(scr.Bounds.Left + (scr.Bounds.Width / 2), scr.Bounds.Top + (scr.Bounds.Height / 2)));

The error message is
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???
#2 Posted : Saturday, October 1, 2022 9:00:51 PM(UTC)

Rank: Newbie


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.