AutoHotkey mouse scripts – Play games without a mouse (on a tablet, for example)
Tags: games, gaming, tool, utility
Published: 2019-02-03 12:25:54

---
title: AutoHotkey mouse scripts – Play games without a mouse (on a tablet, for example)
published: true
tags: games,gaming,tool,utility
canonical_url: 
---

[Here](https://github.com/jalbam/AutoHotkey_mouse_scripts) you have simple [AutoHotkey](https://autohotkey.com/) scripts that will perform some actions by using the mouse.

I made these scripts for myself to be able to play some games in a tablet which lacks of a physical keyboard but has a mouse attached. This way I can exit the games, show their menus, show an on-screen keyboard (which does not work well with some games when they are running in full-screen mode, sadly), etc. by just using the mouse.

Hopefully, they could also be useful for someone else so I decided to share them.

They were tested on both 32 and 64-bit version of Microsoft Windows 10 (tablet and desktop) as well as on 32-bit versions of Microsoft Windows XP (with Service Pack 1) and Microsoft Windows 7. If, after trying a binariy (32-bit version and also 64-bit versions if any), it does not work on your Windows version then you can try to compile it from the source code provided. Please, have in mind that not all Windows versions have “tabtip.exe” or “osk.exe” files.

They can be found on GitHub: [https://github.com/jalbam/AutoHotkey\_mouse\_scripts](https://github.com/jalbam/AutoHotkey_mouse_scripts)

## Included scripts

**pressEsc\_32** – It will press the “ESC” (_ESCAPE_) key when the mouse wheel button (the middle button) is pressed. Compiled for 32-bit but it should also run on 64-bit versions of Microsoft Windows.

**pressF5\_32** – It will press the “F5” key when the mouse wheel button (the middle button) is pressed. Compiled for 32-bit but it should also run on 64-bit versions of Microsoft Windows.

**pressF10\_32** – It will press the “F10” key when the mouse wheel button (the middle button) is pressed. Compiled for 32-bit but it should also run on 64-bit versions of Microsoft Windows.

**showOSK\_32** – If available in the operating system, it will show the “OSK” (_osk.exe_) which belongs to the “On Screen Keyboard” (“floating” around the screen, as an independent window) when the mouse wheel button (the middle button) is pressed. Compiled for 32-bit.

**showOSK\_64** – The same as “showOSK\_32” but for 64-bit versions of Microsoft Windows. Use it in the case that you get [an error](https://autohotkey.com/board/topic/119602-the-system-cannot-find-the-file-specified/) using the “showOSK\_32” version.

**showTabTip\_32** – If available in the operating system, it will show the “TabTip” (_tabtip.exe_) which also belongs to an on-screen keyboad (different from the “osk.exe” one) when the mouse wheel button (the middle button) is pressed. Compiled for 32-bit.

**showTabTip\_64** – The same as “showTabTip\_32” but for 64-bit versions of Microsoft Windows. Use it in the case that you get [an error](https://autohotkey.com/board/topic/119602-the-system-cannot-find-the-file-specified/) using the “showTabTip\_32” version.

## How to run

To use the already-compiled binaries, just run them as any other normal program. While they are running, an icon will be shown in the taskbar.

Note that, if desired, more than one script can be run at the same time to be combined.

## Compile from the source code

Apart from the binaries for Microsoft Windows, the source code is included so they can be easily modified to edit the actions performed, enhance features, etc.

To compile from the source code, the [AutoHotkey](https://autohotkey.com/) software will be needed.

## License

This project can be used, reproduced, distributed and modified freely for any non-commercial purposes but always keeping the author’s name and copyright clauses. Other than that, just use this project as you wish but never sell it!