Skip to content

mmaenz/FoxholeTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FoxholeTool

Needed for foxhole game, eat while building! Starving doesn't help anybody...
I find it really annoying to use the windows auto hold as it always activates when using the map or rifle. There may be other more generic tools to achieve the same but I don't care. It ist just right for Foxhole. The source is free, anyone is invited to change it as wanted. Please don't open issues with request for changing the keybinding. Clone - change - build and be happy.

Usage

F2 - use hammer, click left mouse button to stop
F3 - open artillery calculator, while in game press F3 again to refocus for new distance. Press F3 twice to hide.
F5 - Autoclicker, pick from inventory. Use SHIFT-F5 for 3 items at once. Move mouse to stop.

Screenshot

Window can be moved freely. It is fairly small to allow for maximum game overview. You can drag the window around to your preferred corner.
Screenshot

FoxholeTool is running in background and registers a handler in systray. To close just right click for context-menu and exit.
Screenshot

The tool uses no magic. It just sends an left mouse button down event to windows without up. As of the nature of windows window handling it works best in fullscreen window mode. You can still use it in fullscreen but it may not overlays correctly or windows are flashing. Foxhole sound is bound to active focus. While FoxholeTool is focused, you will hear no sound including ingame voices. The result is always copied to clipboard for fast paste to chat.

The F5-autoclicker simply sends a mouse click event once per second. If shift is pressed it sends shift-mouse click once per second. When moving the mouse or by pressing F5 again it stops. As simple as that!

When pressing HOME/END on keyboard it send keystrokes RETURN --> CTRL+W/S --> RETURN to the active desktop window (which should be Foxhole) that starts the automated driving/walking. There is no convenient way to send key hold to other active window. Between keystrokes is a 50ms pause to let Foxhole react to the input. Thats why you see the chat box flickering!

How to build

Use Visual Studio 2019 to compile. Prerequisite is WTL https://wtl.sourceforge.io/ Add WTL include dir to C++ Compiler additional include directories.

No MFC needed!

Forking is appreciated!