AutoIt (or similar) scripting for key combos?

Distant Worlds is a vast, pausable real-time, 4X space strategy game which models a "living galaxy" with incredible options for replayability and customizability. Experience the full depth and detail of large turn-based strategy games, but with the simplicity and ease of real-time, and on the scale of a massively-multiplayer online game. Now greatly enhanced with the new Universe release, which includes all four previous releases as well as the new Universe expansion!

Moderators: Icemania, elliotg

Post Reply
User avatar
joeyeti
Posts: 329
Joined: Tue Feb 28, 2012 8:45 am

AutoIt (or similar) scripting for key combos?

Post by joeyeti »

Has anyone tried a scripting engine for semi-automation in DW? I mean assigning more complex shortcuts beyond the game capability for more complex "macros", like "open Ships dialog, sort by name and filter military ships" to say "Ctrl+Shift+F1"?
Joe
invaderzim
Posts: 211
Joined: Mon Jun 03, 2013 10:48 am

RE: AutoIt (or similar) scripting for key combos?

Post by invaderzim »

No, but that's a really good idea. It seems like it would have be a somewhat complex macro if you have to move your mouse to the right spot on the screen and select the correct dropdown item.
User avatar
joeyeti
Posts: 329
Joined: Tue Feb 28, 2012 8:45 am

RE: AutoIt (or similar) scripting for key combos?

Post by joeyeti »

Not at all. I have "recorded" and then tweaked many AutoIt macros alreday for my work (opening projects in various systems, starting and logging into various multi-step applications, even the backup macro for the DW wiki), so can safely say this would not be hard at all.

There is of course the question of individual screen size per each user, but I could check into determining the DW window size upon macro execution and adjust the required coordinates for mouse-clicking I guess...

So the main question is - what are the most commonly used "features" - e.g. reports or windows or actions, that could have a key combination assigned externally?


EDIT: The AutoIt macros can indeed be recorded (what you type, into which window, where you move the mouse, where you click etc.), plus there are many low-level system commands available, so you can literally create an application in AutoIt, if you know enough. The recording makes it especially easy to get something done quickly.
Joe
invaderzim
Posts: 211
Joined: Mon Jun 03, 2013 10:48 am

RE: AutoIt (or similar) scripting for key combos?

Post by invaderzim »

Have you tried AutoHotKey? I've dabbled with it a bit and it's quite powerful in terms of features: http://www.autohotkey.com/
dostillevi
Posts: 323
Joined: Fri Aug 31, 2012 11:31 am

RE: AutoIt (or similar) scripting for key combos?

Post by dostillevi »

I'm also a big fan of autohotkey, but I haven't tried it with DW yet; haven't felt the need. Generally I'm impatient and I think I could time the macro you suggested faster than an AH script could, especially since the time to open that particular screen gets longer as the game progresses.
User avatar
joeyeti
Posts: 329
Joined: Tue Feb 28, 2012 8:45 am

RE: AutoIt (or similar) scripting for key combos?

Post by joeyeti »

ORIGINAL: invaderzim
Have you tried AutoHotKey? I've dabbled with it a bit and it's quite powerful in terms of features: http://www.autohotkey.com/
AutoIt is basically the same, they are essentially competing for the same goal.
Joe
User avatar
Shark7
Posts: 7936
Joined: Tue Jul 24, 2007 4:11 pm
Location: The Big Nowhere

RE: AutoIt (or similar) scripting for key combos?

Post by Shark7 »

I just want one that tells the pirates no automatically every time they pull the extortion thing. [8|]
Distant Worlds Fan

'When in doubt...attack!'
User avatar
joeyeti
Posts: 329
Joined: Tue Feb 28, 2012 8:45 am

RE: AutoIt (or similar) scripting for key combos?

Post by joeyeti »

ORIGINAL: Shark7

I just want one that tells the pirates no automatically every time they pull the extortion thing. [8|]
Well, that unfortunately is not possible [:)]
Joe
Post Reply

Return to “Distant Worlds 1 Series”