|
Post by gp1628 on Mar 7, 2012 16:46:12 GMT -5
Sorry but this is about Windows only altho Im sure there are programs for other OS's to do the sameFor many things that CoE-3 does NOT do (or any other program) you can create your own macro. A macro is like a mini program that is tied to a keypress. AutoHotKey will record your actions. Every mouse move, mouse click, keypress, typing, etc. Then you save it. It creates a text file with an .ahk extension. You can double click it to run it. Or set it up to autoload when you start CoE-3 and have it tied to a keypress for it to act. In my CoE3 directory I made a link to AutoScriptWriter. If I start that program I can tell it to start recording. Then I can do a hundred actions if I want, and save it to a single keypress. Such as.. if I have a particular game setting I want to do over and over such as one of the Trials, I can start the recorder then start CoE3, choose Start New Game, the Map choice, Society, Options, OK, then all the Classes, AI difficulty, Team, type the name of my leader and hit OK. Then I can stop the recorder and save it to MakeGame.ahk so that every time I click that file I end up in a new game with all those settings. Or for ingame use I can record n, Shft-H, n, Shft-H, n, Shft-H, n, Shft-H, n, Shft-H, n, Shft-H, n, Shft-H, over and over and over. Then save it to Alt-h. Now I have a macro so that when I press alt-h it will make ALL of my high Priest commanders do a slave hunt if they are in a town that they can do it in. It takes a little practice to use. But you will find it useful in many programs and online worlds for automating repetitive tasks. www.AutoHotKey.com
|
|
|
Post by gp1628 on Mar 17, 2012 14:20:21 GMT -5
Here is the key I used to create a CoE3 game for the Anti-Progress Trial campaign elsewhere on this board....
WinWait, Program Manager, IfWinNotActive, Program Manager, , WinActivate, Program Manager, WinWaitActive, Program Manager, MouseClick, left, 933, 22 MouseClick, left, 933, 22 Sleep, 100 WinWait, CoE 3, IfWinNotActive, CoE 3, , WinActivate, CoE 3, WinWaitActive, CoE 3, MouseClick, left, 798, 346 Sleep, 100 MouseClick, left, 832, 419 Sleep, 100 MouseClick, left, 715, 233 Sleep, 100 MouseClick, left, 707, 539 Sleep, 100 MouseClick, left, 694, 621 Sleep, 100 MouseClick, left, 685, 652 Sleep, 100 MouseClick, left, 688, 713 Sleep, 100 MouseClick, left, 794, 719 Sleep, 100 MouseClick, left, 831, 746 Sleep, 100 MouseClick, left, 595, 414 Sleep, 100 MouseClick, left, 766, 641 Sleep, 100 MouseClick, left, 970, 413 Sleep, 100 MouseClick, left, 970, 440 Sleep, 100 MouseClick, left, 970, 440 Sleep, 100 MouseClick, left, 970, 469 Sleep, 100 MouseClick, left, 970, 469 Sleep, 100 MouseClick, left, 887, 441 Sleep, 100 MouseClick, left, 798, 395 Sleep, 100 MouseClick, left, 842, 468 Sleep, 100 MouseClick, left, 795, 401 Sleep, 100 MouseClick, left, 573, 440 Sleep, 100 MouseClick, left, 756, 209 Sleep, 100 MouseClick, left, 574, 466 Sleep, 100 MouseClick, left, 759, 417 Sleep, 100 MouseClick, left, 835, 525 Sleep, 100 Send, {CTRLDOWN}{TAB}{CTRLUP}
Not very helpful? Well if I manually programmed it then I could have added some helpful remarks. And the manual commands are pretty cool. But this file was just recorded from my actions.
I use a special desktop icon for these to start CoE3 that I never move so that it is always in the same place. And even though I prefer playing in windowed mode, that icon is set to come up in full window mode no matter what my preferences are set to at the time (-u is added as a switch to the icon). The purpose of that is so that everything is always at the same place. That makes things run smooth.
Then I started the AutoScriptWriter program that comes with AutoHotkey. Actually I have an shortcut to it in each of my game directories because its so useful. Then I hit the Record button. That puts it a little box in the upper left corner with a STOP button.
Now I opened CoE3, Selected Start New Game, and then went thru the other game settings.
The last line there is where I pressed Ctrl-Tab to make the game go from Full Screen to a partial Window so that I could see the STOP button and press it. There is probably a better way but that works for me. You can edit the hotkey file which is only text to delete that last line if you want. OK so now that I have hit STOP I save the file to a name like Anti-Progress which gives me a file called Anti-Progress.ahk in my directory.
I can double click that file and it will open CoE3 and rush thru all of the game settings. I could also manually add some lines such as another Sleep command for abit then type in the leaders name. I could also move directly to open the leaders to see what spells I got. I could even make my standard first moves. ALTHO I dont do that because if I jumped all the way to spells it could be too easy to shut it down and run it again over and over and over until I got the starting spells I wanted. Too easy and unfair on a challenge like this altho not bad for my just-for-fun solo games.
|
|
|
Post by gp1628 on Mar 17, 2012 14:25:08 GMT -5
ALTERNATIVE START: AutoScriptWriter has a window I didnt play with before. It has a 'Run' line window where I can put the call to CoE3.exe with all of the command-line switches I want it to run with. That would have saved me the trouble of making sure my mouse movements always hit the coe3 icon correctly.
|
|
|
Post by gp1628 on Mar 17, 2012 16:17:18 GMT -5
Here is a short example of making your own HOTKEY to work inside CoE3. This one is to Hunt for Slaves on all of your commanders. $^h:: IfWinActive CoE 3 { Send, n{SHIFTDOWN}h{SHIFTUP} Sleep, 999 Send, n{SHIFTDOWN}h{SHIFTUP} Sleep, 999 Send, n{SHIFTDOWN}h{SHIFTUP} Sleep, 999 Send, n{SHIFTDOWN}h{SHIFTUP} Sleep, 999 Send, n{SHIFTDOWN}h{SHIFTUP} Sleep, 999 Send, n{SHIFTDOWN}h{SHIFTUP} }
This was NOT done with AutoScripwriter. It was done by looking at the many examples online, and editing it manually in NotePad. I saved this as SlaveHunt.ahk When I double click it, AutoHotKey loads it into memory and stays loaded. (a green H in the tray). This says to set the Ctrl-h keypress IF the active Window is CoE3. Then pressing Ctrl-H in the game will cause this to send n H six times. That means that if you are playing High Priest then you will move thru the commanders (n key) and have each one try to Hunt for Slaves (H key). It does it pretty fast. If you have more than 6 commanders you can hit the key again, or extend this file. If you have leaders other than ones that can hunt slaves then the n key will still touch on them but no hunt occurs And if you have one that can hunt but isnt in a town, then no hunt occurs also which means you dont waste any movement points. If you are playing something other than High Priest, then the key will still work but again only the n key will do anything so you will end up just jumping thru 6 commanders without having them do anything in case you accidentally hit the key. If that irritates you, or you get really loaded down with special keys, or start wanting to use the same keys, then you can create a special file for each nation you might play. You can even create a desktop icon to load the key files, change the background colors, set the game parameters, and start CoE3 with all of the settings for each nation. However, before you decide you are running out of keys realize that you have h, shft-h, ctrl-h, alt-h, ctrl-alt-h. Also left can be treated different than right so left-shft-h can be different than right-shft-h. Also the Win and Menu keys can be used such as alt-win-h. So what other hotkeys did we wish was in the game?
|
|
|
Post by gp1628 on Mar 17, 2012 16:36:48 GMT -5
The Hunt for Slaves hotkey file can also be used to create a MAKE TERRACOTTA SOLDIERS file. Simply change the H to a T
|
|
|
Post by gp1628 on Mar 17, 2012 19:34:11 GMT -5
Here is the script I made for the second trial A Small Disagreement
Run, C:\Program Files\coe3\coe3.exe -df --rename --battlereports --graphs --gamelog=Trial.txt -u WinWait, CoE 3, IfWinNotActive, CoE 3, , WinActivate, CoE 3, WinWaitActive, CoE 3, MouseClick, left, 892, 349 Sleep, 100 MouseClick, left, 861, 418 Sleep, 100 MouseClick, left, 792, 202 Sleep, 100 MouseClick, left, 711, 625 Sleep, 100 MouseClick, left, 696, 652 Sleep, 100 MouseClick, left, 832, 754 Sleep, 100 MouseClick, left, 1075, 479 Sleep, 100 MouseClick, left, 983, 425 Sleep, 100 MouseClick, left, 973, 455 Sleep, 100 MouseClick, left, 973, 455 Sleep, 100 MouseClick, left, 972, 456 Sleep, 100 MouseClick, left, 872, 457 Sleep, 100 MouseClick, left, 790, 456 Sleep, 100 Send, {CTRLDOWN}{TAB}{CTRLUP}
This one might work for most of you as it is.
|
|
|
Post by gp1628 on Mar 17, 2012 20:41:05 GMT -5
for setting up an EYE for an EYE Trials game
Run, C:\Program Files\coe3\coe3.exe -df --rename --battlereports --graphs --gamelog=Trial.txt -u WinWait, CoE 3, IfWinNotActive, CoE 3, , WinActivate, CoE 3, WinWaitActive, CoE 3, MouseClick, left, 887, 340 Sleep, 100 MouseClick, left, 864, 417 Sleep, 100 MouseClick, left, 775, 204 Sleep, 100 MouseClick, left, 832, 752 Sleep, 100 MouseClick, left, 1067, 468 Sleep, 100 MouseClick, left, 870, 457 Sleep, 100 MouseClick, left, 793, 457 Sleep, 100 MouseClick, left, 580, 426 Sleep, 100 MouseClick, left, 763, 436 Sleep, 100 MouseClick, left, 592, 454 Sleep, 100 MouseClick, left, 760, 443 Sleep, 100 MouseClick, left, 837, 517 Sleep, 100 Send, {CTRLDOWN}{TAB}{CTRLUP}
Again, this may work fine for people who have CoE3 loaded on C: drive. But you might have to edit the path to match your setup
|
|