Mouse Without Borders Control

Discuss Autohotkey related topics here. Not a place to share code.
Forum rules
Discuss Autohotkey related topics here. Not a place to share code.
Atom
Posts: 45
Joined: 05 Sep 2016, 06:49

Mouse Without Borders Control

12 Mar 2023, 06:22

I use AHK to respond to a number of application dialogs and prompts. I also use Mouse Without Borders. I believe MWOB interferes with how my AHK scripts work and I would like to disable MWOB when I need these scripts to be active. Checking here to see if there is a clever way to do this or prevent MWOB from disrupting how my AHK scripts work.
User avatar
lmstearn
Posts: 698
Joined: 11 Aug 2016, 02:32
Contact:

Re: Mouse Without Borders Control

12 Mar 2023, 07:38

Hi! :)
Looking through the docs, it does things with drag/drop, copy/paste, mouse moves (in multi monitor setup), and clipboard sharing.

The quickest way is to setup a hotkey - (from the docs)
Add a hotkey to start/stop the app (enable/disable app)

Windows does support this for any app, you just need to create a desktop shortcut to the app ("C:\Program Files (x86)\Microsoft Garage\Mouse without Borders\MouseWithoutBorders.exe") then you can configure a hotkey for the shortcut :

In the shortcut Properties' dialog, go to the Shortcut tab
Set focus on the Shortcut key value.
Type any key to set a desired hotkey, for ex.: type M to set the hotkey to Ctrl+Alt+M
Click OK or Apply.
The default hotkey to exit the app is Ctrl+Alt+Shift+Q and you can change that in the app's Settings.

You can now use Ctrl+Alt+Shift+Q to exit/disable the app and Ctrl+Alt+M to start/enable the app.
Something like this at the top of the script to disable MWOB (V1):

Code: Select all

if WinExist("MouseWithoutBorders")
	WinActivate MouseWithoutBorders
	send ^!+Q
At termination (just before ExitApp), the shell should recognize the request to re-enable MWOB (if it was disabled per above). :)

Code: Select all

send ^!M
:arrow: itros "ylbbub eht tuO kaerB" a ni kcuts m'I pleH
Atom
Posts: 45
Joined: 05 Sep 2016, 06:49

Re: Mouse Without Borders Control

12 Mar 2023, 18:46

Thanks. I think I can do that.

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 3 guests