Making all troop screenshots is easy.

正在查看此主题的用户

Cjkjvfnby

Regular
Example for "The Last Day" mod: https://plus.google.com/photos/100043024913691955753/albums?banner=pwa

Pre requirements:
Mount and Blade (any)

Greenshot (screen shot capture) http://sourceforge.net/projects/greenshot/files/Greenshot/Greenshot%200.8%20beta/Greenshot-INSTALLER-0.8.0-0627.exe/download free

AutoIt 3 (scripting tools) http://www.autoitscript.com/cgi-bin/getfile.pl?../autoit3/scite/download/SciTE4AutoIt3.exe free

optional:
FastStone Image Viewer (picture manager) http://download.cnet.com/FastStone-Image-Viewer/3000-2192-10324485.html?part=dl-FastStone&subj=dl&tag=button free

Configure Greenshot:
General:
Effects: off (to work faster)
Output:
check: Save directly
Storage location, screen shot name as you wish
Image format:  png
test: press screenshot, pres and drag frame, release. Check if screenshot saved to folder.

1. Run mount and blade  with edit mode. (Max quality, desktop resolution optional)
2. Switch to windowed mode (alt+enter)
3. hit 'c' (character menu) (player should be selected)

4. Click edit on screens.au3 (show script in editor)
    fill settings section:
    $TROOPS_NUM = 10 (see troops.txt)

    Run AutoIt Window Info:
        options\freeze off
        switch for mouse tab
        switch focus to mab
        move mouse to 'Next" button, see coords in AutoIt Window Info.
        find left and right corners of place where screen shot will be taken. (make it large when need you can crop it later)
        close window info

5. open notepad, place it to the corner (see script explanation)
6. run script (set TROOPS_NUM to 2 to check, dont forget to press prev before main run.) It takes about 2,5 seconds per troop. Don't touch mouse and keyboard during work.

script explanation:
switch focus to notepad (game blocks screenshots when focused)
press print screen
select area
switch focus to the game
click next
Repeat it $TROOPS_NUM-1 times.


optional:
renaming and editing:
Open pictures in fast stone viewer
Select  mass renaming/changing (service third menu)

change name: #### (index from 1) (if you do all right it will be troop id in troops.txt)
change settings:
you can crop image, change size, add border,  add text and many others.

I can't find attach button (copy paste script to file screens.au3)
; Fill it
$TROOPS_NUM = 3

$Next_button_x = 426
$Next_button_y = 91
$Top_left_x = 49
$Top_left_y = 144
$Bottom_right_x = 557
$Bottom_right_y = 670


Func MakeScreenshot()
  WinActivate('[CLASS:Notepad]', '')
  Send('{PRINTSCREEN}')
  MouseClickDrag('left', $Top_left_x, $Top_left_y, $Bottom_right_x, $Bottom_right_y)
  Sleep(200) ;change it if you computer is slow
  WinActivate('[CLASS:MB Window]', '')
  MouseClick('', $Next_button_x, $Next_button_y)
EndFunc

func Main()
  WinActivate('[CLASS:MB Window]', '')
  For $i = 0 To $TROOPS_NUM  Step 1
  MakeScreenshot()
Next
MsgBox(0,0,'Done')
EndFunc

Main()
 
后退
顶部 底部