| Main > Main Forum |
| [SOLVED] Need some guidance with a batch file. Help a dummy? |
| << < (2/2) |
| rockyrocket:
Sweet, get building!. Thinking some more on this if your 3 game launch buttons were for example A,B and Shift then button combo`s can be used to shut down or reboot as well. --- Code: ---+A::Shutdown, 2 ;Reboot +B::Shutdown, 1 ;Shutdown --- End code --- You really would have a bare metal system then. |
| Louis Tully:
. |
| rockyrocket:
No worries, glad to help. Put a shortcut to one of your Bat`s into your start up folder and you should just boot straight into a game and never see the desktop. Now get building ;D . Edit - Glad you have no command window pop up, on my test bed (Win7-64) I do get a visable window so had to use that VBS trick linked to above. It is messy as AHK calls a VBS that stars a Bat, but no window is seen - the VBS looks like this.... --- Code: ---Set WshShell = CreateObject("WScript.Shell") WshShell.Run chr(34) & "C:\Users\Mame seven\Desktop\AAE Bat`s\AsteroidsDelux.bat" & Chr(34), 0 Set WshShell = Nothing --- End code --- And now the AHK is this... --- Code: ---#NoEnv SetWorkingDir %A_ScriptDir% a:: Send {Esc Down}, Send {Esc Up} Sleep, 1000 Run, %A_ScriptDir%\Astdelux.vbs return b:: Send {Esc Down}, Send {Esc Up} Sleep, 1000 Run, %A_ScriptDir%\BattleZonePlus.vbs return +A::Shutdown, 2 ;Reboot +B::Shutdown, 1 ;Shutdown --- End code --- |
| Louis Tully:
. |
| rockyrocket:
Looks good buddy!. You ninja`ed a response in whilst I was editing my last post ;D . A funky select sound may be sweet too? I use the attached photon sound in one of my cabs - just drop it or any other sound into the same dir as the AHK file and then use.. --- Code: ---y:: SoundPlay, launch.mp3 Send {Esc Down}, Send {Esc Up} ;quits aae Sleep, 1000 Run, C:\ADCabBatScripts\aaeAsteroids.bat return u:: SoundPlay, launch.mp3 Send {Esc Down}, Send {Esc Up} ;quits aae Sleep, 1000 Run, C:\ADCabBatScripts\aaeAsteroidsDeluxe.bat return i:: SoundPlay, launch.mp3 Send {Esc Down}, Send {Esc Up} ;quits aae Sleep, 1000 Run, C:\ADCabBatScripts\aaeArmorAttack.bat return --- End code --- You could even use a different sound for each game?. |
| Navigation |
| Message Index |
| Previous page |