Advertisement
Gussak

auto load last save for Fallout New Vegas with Wine at Linux

Dec 24th, 2012
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.79 KB | None | 0 0
  1. #this is the name of the window when you use virtual desktop emulation
  2. windowId=`xdotool search --name "Default - Wine desktop"`
  3. #to find the correct window name, run Fallout New Vegas and use this commented command below to browse the list for it!
  4. #list=(`xdotool search --name ".*"`);for id in ${list[@]}; do xdotool getwindowname $id; done |sort -u
  5.  
  6. #time enough to main menu be accessible after game is started, your system may require more time, adjust it properly
  7. sleep 30
  8.  
  9. echo '(SayText "auto-load")' |festival --pipe #audio feedback
  10.  
  11. # this will select the top menu item "continue", hit enter, select "yes" and hit enter!
  12. for((i=0;i<10;i++));do
  13.     xdotool key --delay 250 --window $windowId Up Up Up Return
  14. done
  15.  
  16. echo '(SayText "END auto-load")' |festival --pipe #audio feedback
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement