I am trying to write simple ahk script to swap the mouse buttons (left btn becomes right btn and vice-versa). Yet, I don't want to reboot the system. I have tried these two scripts I found online but they did not work on Windows 10 for me.
trial 1:
MsgBox When ok is pressed, the mouse buttons will be swapped.
DllCall("SwapMouseButton","uInt",true)
trial 2:
MsgBox When ok is pressed, the mouse buttons will be swapped.
Lbutton::Rbutton
Rbutton::Lbutton
Anyone cares to share a script that reverses the mouse button that works on Windows 10?
Related
I need a way to show and hide the virtual keyboard on Win10 (TabTip.exe) because clicking on an entry field (Python and tkinter) it does not show itself. I know I can show it clicking on its icon in the system bar but I want it appears and disappears when needed. I found a key shortcut (win+ctrl+O) that opens it, I can use the keyboard module to send it but I did not find a shortcut to hide it. In tablet mode TabTip.exe is already running and the keyboard hidden.
when I play osu! on Linux the option to "confine mouse cursor to osu! window" does not work. This means that my mouse cursor will move to my other monitor when I am playing. This is an issue because if I accidentaly click one of my mouse buttons it will tab me out of osu! and I will fail the map.
I wanted to make a python script to check if the user is focused on the osu! window, and if they are, it would confine the cursor to that window, but I have no idea how I would check what window the user is focused on.
I am trying to run my Android Studio applications using my emulator. But when i try to run it emulator only shows up like this:
Emulator stuck in taskbar - Windows 10
I have created multiple Virtual devices though..and all of these have same issue. Sadly, I have no control over my emulator except if i hover over it then only the screen for emulator is displayed but the view is minimized and as soon as I move my mouse away or even if i double click the screen nothing happens. By the way i'm using windows 10 and Android Studio 3.6.3. My problem is similar to Android Studio emulator gets stuck minimised in task bar. But this question has not been helpful to me in fixing my problem.
Mabye it opens somewhere else: Try the following:
- Press SHIFT+CTRL
- Right Click on the Program showing up in the taskbar.
- Select the "Move" Window option
- Use the keyboard (Left Arrow/Right Arrow) <-/ -> keys to move the window to the center of the screen.
- Try holding down the left arrow key for a while to see the Window outline. Try moving right/up/down if the window outline is still not visible.
- Hit enter when you can see the Window outline move to the center of the screen.
It appears that the desktop extends beyond the Screen Display and the program window seems hidden. Moving the Window either to the Left / Right / Top/ Bottom of the screen helps.
Coppied from here.
I am looking for a way to allow a user to complete a Dialog entry using keyboard shortcuts. Is this possible?
Other questions have discussed assigning shortcuts to the options in an AppleScript dialog box, but not to the "Continue"/"Okay" etc. button.
The main difficulty is that I'm using a multi-line text entry form, so the Enter button simply creates a new line, instead of targeting the default button as it would conventionally. I'm hoping cmdenter can be assigned to the default button instead.
The line of script defining the dialog in question is:
set theResponse to display dialog "Enter tasks:" default answer "
" buttons {"Cancel", "Continue"} default button "Continue"
Running your AppleScript code from Script Editor on a US English MacBook Pro, whether or not something is typed in, fnenter presses the Continue button.
The same keyboard shortcut works on an US English Apple Magic Keyboard when connected to the MacBook Pro and I'd assume any US English Mac it was connected to would do the same. I only have the MacBook Pro to test with at the moment.
In macOS, by default, pressing the tab key in this use case will not move between the controls as the controlling setting in System Preferences > Keyboard > Shortcuts is not set to allow it to act on all controls.
You must select one of the following options, depending on the version of macOS one is running, in order to use the tab key on all controls.
If you see:
Full Keyboard Access: In windows and dialogs, press Tab to move keyboard focus between:
(•) Text boxed and lists only
( ) All Controls
Select: (•) All Controls
If you see:
[] Use keyboard navigation to move between controls
Press the Tab key to move focus forward and Shift Tab to move focus backward.
Check: [√] Use keyboard navigation to move between controls
With this done, one can then use tabtabenter to press the continue button, with the dialog box produced by the code shown in the OP.
Side Note: One can also try fncommandenter as that was necessary from within a VMware macOS Catalina virtual machine that I also tested in.
⌘-Enter (on the numeric keypad) presses Continue
If you are in a multiline text field, hit the Tab key so that focus is on some element other than the text field. Then the Enter key should route properly to the dialog's default close button.
Windows get focus is meaning that you can type in something in that. But at the same time, I hope that windows not to cover some others. How to config gnome 3 to implement that?
Leaving a window in focus though not on top of the screen is quite easy in Gnome. It is possible to give each and every window a special attribut which will shift their priority on the screen.
First, right click the titlebar of the application which should always be on top. A small menu should pop up. Now just select the option "Always on top" and you are done. This option may be parsed to multiple windows. Independently of which window is in focus, the application with this attribute will always cover it.
By the way the so called "Titlebar Actions" can be configured through the gnome-tweak-tool. Under the "Windows" tab you may define what should happen on a double click, a middle click or a secondary/right-mouse click.