StrokesPlus.net Forum
»
General Discussion
»
Scripts
»
Error on MOVE WINDOW TO ANOTHER SCREEN
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 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???
|
|
|
|
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.
|
|
|
|
StrokesPlus.net Forum
»
General Discussion
»
Scripts
»
Error on MOVE WINDOW TO ANOTHER SCREEN
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