adjust science and luxury sliders with keyboard

opkoad

Chieftain
Joined
Sep 19, 2005
Messages
86
SciLuxAdjuster gives you hotkey access to the science and luxury sliders in Civ3! I got tired of constantly fiddling with those little sliders every 4 turns, with only the mouse, so I created this little script that lets you adjust the sliders using hot-key commands. The commands are:


Ctrl-NumpadMinus........adjusts science slider down
Ctrl-NumpadPlus.........adjusts science slider up
Ctrl-Shift-NumpadMinus..adjusts luxury slider down
Ctrl-Shift-NumpadPlus...adjusts luxury slider up


And no, these cannot be changed at this time. :p (unless you want to modify the script yourself, which is really easy)

So if you've been yearning for better control like I was, and if you think this could be of some use to you, then by all means give a try... SciLuxAdjuster lets you slide in style! Combat the RSI demons! Fuel the keyboarder within! :lol:

Comments, feedback welcome. :D

(also note, this script has been tested on Windows XP, should work on Windows 2000, but because of limitations of AutoHotkey it may not work on Windows 9.x)
 

Attachments

If anyone shows interest in this, I'll tackle a little problem that this version has. The script can't really guarantee that the Domestic Advisor screen (the one with the sliders) is actually displayed, when it fakes a mouse click at the expected locations of the sliders. So it could end up clicking something that you don't want it to, if that something just happens to be at that screen position.

But the script does attempt to open the Domestic Advisor before clicking (by sending F1 keyboard command, just as if you pressed it yourself). So there's no chance that you'd click a unit or something, since anytime during the game that you can click something on the terrain, you can also bring up Domestic Advisor. It's only when a message window is up or something, such as the diplomacy screen -- if you used the hotkeys then (I don't know why you would do this, but let's say you do it accidentally), it wouldn't be able to open the Domestic Advisor (the game would ignore F1) and so you might end up clicking an option on that message window or something, which you most definitely wouldn't want.
It's a pretty minor issue, you're not likely to come across this during a typical gaming session -- but I think there's a way to deal with this using some of AutoHotkey's more advanced features, like pixel color testing.

Anyway, if you have an interest in this little script, and you see anything else amiss, please let me know. It should work at all resolutions.

And it should be possible to add hotkeys for a few other things too. The sliders were just my first priority. I find it annoying that on some screens you can use up or down arrow keys to scroll through lists, but on others, you can't. By making a graphics modpack (with very minor changes to the default graphics), it could be possible to actually tab between different fields and regions on the various advisor screens, to change the input focus.
 
actually haven't tried it yet but I certainly understand that the sliders have a life of their own :rol eyes: :D So your script makes sense!
 
Back
Top Bottom