War on the Sea

War on the Sea

MarkShot9 Jan 29, 2024 @ 4:45pm
WoS-Edge-Scroll (new as of 01/30/24)
PLEASE USE SOME AV OR VIRUSTOTAL TO SCAN THIS FOR YOURSELF!!!

https://www.kwlsystems.com/images/gameq/WoS-Edge-Scroll.zip

WoS-Edge-Scroll

What Does It Do?

This will scroll the Battle and Campaign maps in full screen when pushing the mouse to the screen edge. In the Battle Map, scrolling does not work when paused. Although there may be a game option for this. (I just started playing.) In the Campaign Map, scrolling only works when there are no UI elements on the edge where the mouse is pushed.

How Does It Work?

In computer speak, this is NOT a mod (meaning it does not alter your game). It is a co-resident utility (runs alongside the game). It detects when the game is active and emits arrow keys as necessary based on the mouse cursor position.

Included

WoS-Edge-Scroll.exe You can run this (compiled) directly. (and this is all you need).

WoS-Edge-Scroll.rtf This file.

WoS-Edge-Scroll.ahk This is the script version, but you will need
www.autohotkey.com installed. This is for people who are
uncomfortable with EXEs or want to alter the code.

Usage

Unzip and place anywhere.

Launch the EXE or the AHK (requires AutoHotKey). Launch the game within 30 seconds.

You can also launch the game first, and then tab out to launch the EXE or AHK.

As it waits for the game to exist for 30 seconds, it will do nothing for 30 seconds.

Play and scroll to a map edge, and watch it work.

There is no need to unload the utility. It will only run while the game is present. It will unload itself within 5 seconds of unloading the game.

Attribution

Feel free to reuse this code without attribution. In the spirit that it was released, please do not include it in anything which will be monetized.

Development

This was developed on an old version of AutoHotKey, but I don't expect compatibility issues. It was developed on Windows 10 Pro 64 bit. The EXE runs 32 bit, but this should not present a problem.

Liability

If this should cause your PC to undergo a critical mass fission reaction, and destroys the city or country in which you reside --- THE AUTHOR ACCEPTS NO LIABILITY.
Last edited by MarkShot9; Jan 29, 2024 @ 4:51pm
< >
Showing 1-1 of 1 comments
MarkShot9 Jan 29, 2024 @ 9:47pm 
The code ...

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance force
#Persistent
#NoTrayIcon
SetTitleMatchMode 3

Game = War on the Sea

SetTitleMatchMode 1
SetKeyDelay,-1,-1,-1
CoordMode, Mouse, Screen

Sleep 30000
SetTimer, ScriptDone, 5000
SetTimer, WatchCursor, 25
return

ScriptDone:

IfWinNotExist,%Game%,
ExitApp

Return

WatchCursor:

IfWinActive, %Game%
{
SysGet, Screen, Monitor,
MouseGetPos, XPos, YPos
If (XPos = (ScreenRight-1))
{
Send {Right}
}
If (XPos = ScreenLeft)
{
Send {Left}
}
If (YPos = (ScreenBottom-1))
{
Send {Down}
}
If (YPos = ScreenTop)
{
Send {Up}
}
}
return
< >
Showing 1-1 of 1 comments
Per page: 1530 50