Home » Stars! 2.6/7 » The Academy » Stars automated micromanagement
Re: Stars automated micromanagement |
Tue, 25 January 2011 14:31 |
|
BlueTurbit | | Lt. Commander
RIP BlueTurbit died Oct. 20, 2011 | Messages: 835
Registered: October 2002 Location: Heart of Texas | |
|
begin recording your first script: also added link to my first post.
Video 1 - step 1 begin recording your script
Video 2 - step 2 test-run your script
Video 3 - step 3 game-compatibility
Video 4 - step 4 input-boxes
this is the code for the input boxes:
Quote: | InputBox, shipno, ship type number, Enter number of ship type on list., , 300, 150
Sleep, 100
shipverify = %shipno%
; on my screen the first item on production list is at
; cursor position 25+16, the next item is 16 down, etc.
; item(ship) 3 would be 25 + (16*3) in making selection
shipno := 25 + (16 * shipno)
InputBox, planets, Number of Planets, Enter number of planets to queue., , 300, 150
Sleep, 100
InputBox, ships, number of shps to build, Enter number of ships to queue., , 300, 150
Sleep, 100
; on my screen 70 is the cursor row location for first planet on planet summary window
planetrow := 70
;MsgBox [, Options, Title, Text, Timeout]
MsgBox, 4, , .You entered ship type %shipverify%`n Build on %planets% planets`n %ships% ships on each planet`n Do you want to continue?`n (Press YES or NO)
IfMsgBox No
return
|
more videos on the way
Remember, that my computer screen is different than yours, so likely the mouse coordinates will be different on yours. Therefore, recording your own and then following my video instructions might be better.
Best to set your game window to full screen when recording and playing scripts. This will insure that your mouse coordinates will always be correct on playback of scripts. Unless you are positive you will never change screen size in game.
And also, if you can use keys instead of mouse clicks, like enter key instead of clicking on OK, this will make it easier to read the scripts and edit them, as instead of mouse coordinates you will see key names on the script.
This script will only run on the same game you recorded it for now. When we make some changes it will run on all of your games.
[Updated on: Tue, 25 January 2011 21:02]
BlueTurbit Country/RockReport message to a moderator
|
|
|
Goto Forum:
Current Time: Thu Jun 06 21:49:31 EDT 2024
|