Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

Glaucco Lima84920's profile on WallpaperFusion.com
Hello, I want to use a script to: Move the window closer to the monitor and maximize, Center the mouse pointer, and Double-click the Left mouse button. Doing this process, Janela will be full screen on the next monitor. I found this script but it is incomplete, can someone help me.

Code

using System;<br/>
using System.Drawing;<br/>
<br/>
public static class DisplayFusionFunction<br/>
{<br/>
public static void Run()<br/>
{<br/>
         
        // Move the mouse cursor to the next monitor<br/>
BFS.DisplayFusion.RunFunction("Move Mouse to Monitor 3");<br/>
<br/>
// Wait 100ms<br/>
        BFS.General.ThreadWait(10);<br/>
        <br/>
        // Send a mouse left-click<br/>
        BFS.Input.LeftClickMouse();<br/>
}<br/>
}
Jul 14, 2022  • #1
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
Will that window maximize with a key stroke, like F11, or does it have to be double clicked?

Thanks!
Jul 15, 2022  • #2
Glaucco Lima84920's profile on WallpaperFusion.com
You will need to click twice.
Jul 15, 2022  • #3
Glaucco Lima84920's profile on WallpaperFusion.com
Yes double clicked
Jul 15, 2022  • #4
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
We currently don't have a scripting function to double click, but I've attached a script below that should move and maximize the window, and then center the cursor. You can import it via the DisplayFusion Settings > Functions > Scripted Function > Import Scripted Function.

You can adjust the monitor the window gets moved to on line 15.

Hope that helps!
• Attachment: Move Window, Maximize, and Center Cursor.dfscript [2,734 bytes]
Jul 18, 2022  • #5
Glaucco Lima84920's profile on WallpaperFusion.com
Hello Owen, Thank you for your help. Just a friend who doesn't have it available. I really need the left mouse button two clicks. Because I'm using the window on the secondary monitor in Zoom Meetings, Meeting window, on the secondary monitor. The Zoom Meetings program does not have a keyboard shortcut to make it full screen. It is only allowed to put it in full screen, by clicking twice with the left mouse button.
Jul 18, 2022  • #6
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
I've added this to our feature request list. We don't guarantee that feature requests will be implemented, or offer timelines on possible implementation. We'll be sure to let you know if we do add it to our planned features in a future version.

Thanks!
Jul 19, 2022  • #7
User Image
Sullie
19 discussion posts
I have also been trying to have a double click function work for a Windows native UI. I noticed that doubling up the click function worked--your mileage may vary though.

BFS.Input.LeftClickMouse();
BFS.Input.LeftClickMouse();
Oct 7, 2022  • #8
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)