Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Keyboard macros for WitE

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Gary Grigsby's War in the East Series >> The War Room >> Keyboard macros for WitE Page: [1]
Login
Message << Older Topic   Newer Topic >>
Keyboard macros for WitE - 5/2/2020 7:29:38 AM   
eskuche

 

Posts: 1094
Joined: 3/27/2018
From: OH, USA
Status: offline
Hello all,
I've compiled several keyboard macros that help me click less, mainly when doing airgroup microing. This will need a third party program called Autohotkey. In brief, how this program works is that once it is installed you can activate macro files which connect shortcut keys with multiple keystrokes/mouse clicks. A green [H] icon will appear on the desktop taskbar, which lets you edit, reload, and exit each individual macro file. The actual macro file is attached below and needs to be right clicked and run as an administrator, at least for me, to work in WitE. Here is the series of macros I have currently going. Note that many of the coordinates need to be tweaked for your system. I use dual 1920x1080 screens.

I am happy to answer general questions to compile into a FAQ post and may, time-dependent, be able to help individuals with their setup or new ideas for macros. The program is very robust, and I have scratched only the surface. Example things I want to eventually accomplish are hotkeys to get to a certain commander report setup (all German fights, all infantry over/under x morale, all airgroups under a certain base, etc.)

1. [Toggled on and off by removing comment sections]: Mouse coordinate viewer.
2. Clicking a city window for a brief time (for me to see supply details).
3. Screenshot macro that copy pastes a series of map images to stitch in your favorite image-editing program.
4. Stop command for looping macros.
5. Airgroup commands: setting ranges (0/unlimited, 1, or arbitrary number) or fighter/bomber status for one airgroup
6. Looped airgroup commands to do this for 9 airgroups in an airbase.

Additional documentation and comments are in the actual file, which can be modified in notepad or any other word-processing program, either directly from its stored location (anywhere) or from the taskbar (right click -> edit).


Attachment (1)

< Message edited by eskuche -- 5/8/2020 1:53:22 AM >
Post #: 1
RE: Keyboard macros for WitE - 5/2/2020 7:29:47 AM   
eskuche

 

Posts: 1094
Joined: 3/27/2018
From: OH, USA
Status: offline
Reserved

(in reply to eskuche)
Post #: 2
RE: Keyboard macros for WitE - 5/2/2020 1:46:29 PM   
Telemecus


Posts: 4689
Joined: 3/20/2016
Status: offline
Fabulous work and a great thing to share with the community!

_____________________________

Wargamers Discord https://discord.gg/U6DcDxT

(in reply to eskuche)
Post #: 3
RE: Keyboard macros for WitE - 5/2/2020 2:24:48 PM   
joelmar


Posts: 1023
Joined: 3/16/2019
Status: offline
Yes, super cool stuff... I have problems with the screen coordinates utility, when I uncomment those lines, the script won't start, maybe I need to install some software for that?

And then, nothing really works, except screen capture that sends always the same part of the screen to Photoshop... but I will figure it out later on.

Thanks!

_____________________________

"The closer you get to the meaning, the sooner you'll know that you're dreamin'" -Dio

(in reply to Telemecus)
Post #: 4
RE: Keyboard macros for WitE - 5/2/2020 5:22:50 PM   
eskuche

 

Posts: 1094
Joined: 3/27/2018
From: OH, USA
Status: offline
Had a single line comment error that was preventing the annotated script from activating the program. Re-uploaded and should be good now!

(in reply to joelmar)
Post #: 5
RE: Keyboard macros for WitE - 5/8/2020 3:28:24 PM   
EwaldvonKleist


Posts: 2038
Joined: 4/14/2016
From: Berlin, Germany
Status: offline
Good work and thank you for sharing! Will be put in the library of course. Your idea has the potential to help users with some of the weakest and most boring parts of WitE.

1) One issue I see is the fact that each user with different screen resolution/GUI settings will have to set many of the coordinates anew.
Is it possible to give coordinates not in absolute, but relative values, so it automatically resizes with the screen (assuming the WitE GUI also proportionally resizes)?
2) Some of your Macros (e.g. the 9 airgroup loop) take a while due to the sleep. I assume the sleep is set so high because the WitE GUI needs time to react?
3)Can the program take user interfaces, e.g. open a pop-up window where you enter the air range/TOE etc. you want to set a list of airgroups/units to?
4) These macros could also be useful if you want to make repeated tests to get much data, e.g. to compare combat results of a unit with 0% fatigue to one with 60% fatigue, although you will likely need some other scripts/software to retrieve the data.

Regards
EvK

_____________________________


(in reply to eskuche)
Post #: 6
RE: Keyboard macros for WitE - 5/8/2020 5:09:21 PM   
eskuche

 

Posts: 1094
Joined: 3/27/2018
From: OH, USA
Status: offline
1) I don’t think so...I have a gut feeling the GUI is a static size with only the game map region changing. I did identify an easier way to see coordinates (window spy function when right clicking the icon). Will update post to reflect this.
2) Yes, the game is rather clunky and unresponsive at times. Most of the interface screen toggles have a delay. The only exception I’ve really noticed is toggling refit in commander report, which is instant.
3) Just looked this up and apparently you can! Asks for input and outputs as variables. However because of the clunkiness will likely need to import as three separate digits still unless the variables can be deconcatenated. Will work on this this weekend.
4) Yep! As you alluded to before. It would require text recognition which is beyond my working expertise. My tests (such as attrition rate) had been done mostly manually but automation to take screencaps and load/reload would be a good start.

Thanks for feedback, cheers.

(in reply to EwaldvonKleist)
Post #: 7
RE: Keyboard macros for WitE - 5/11/2020 5:05:49 PM   
Killmaster851

 

Posts: 60
Joined: 1/22/2017
Status: offline
Thanks Bro

(in reply to eskuche)
Post #: 8
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Gary Grigsby's War in the East Series >> The War Room >> Keyboard macros for WitE Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

1.484