Forged Alliance Forever Forged Alliance Forever Forums 2014-02-07T10:07:32+02:00 /feed.php?f=41&t=6188 2014-02-07T10:07:32+02:00 2014-02-07T10:07:32+02:00 /viewtopic.php?t=6188&p=64408#p64408 <![CDATA[Re: Galactic War Notification Script]]>

Statistics: Posted by Ze_PilOt — 07 Feb 2014, 10:07


]]>
2014-02-07T09:32:16+02:00 2014-02-07T09:32:16+02:00 /viewtopic.php?t=6188&p=64406#p64406 <![CDATA[Re: Galactic War Notification Script]]> Statistics: Posted by Kulu — 07 Feb 2014, 09:32


]]>
2014-02-07T01:19:17+02:00 2014-02-07T01:19:17+02:00 /viewtopic.php?t=6188&p=64375#p64375 <![CDATA[Re: Galactic War Notification Script]]>
Theoretically, you could have it run a program to send an e-mail/text to your phone. Not sure about actually calling your phone though. :-D

Statistics: Posted by Duck_42 — 07 Feb 2014, 01:19


]]>
2014-02-06T19:35:25+02:00 2014-02-06T19:35:25+02:00 /viewtopic.php?t=6188&p=64336#p64336 <![CDATA[Re: Galactic War Notification Script]]> ?

Statistics: Posted by Kulu — 06 Feb 2014, 19:35


]]>
2014-02-05T18:33:35+02:00 2014-02-05T18:33:35+02:00 /viewtopic.php?t=6188&p=64227#p64227 <![CDATA[Re: Galactic War Notification Script]]> Statistics: Posted by rockoe10 — 05 Feb 2014, 18:33


]]>
2014-01-07T00:52:46+02:00 2014-01-07T00:52:46+02:00 /viewtopic.php?t=6188&p=61211#p61211 <![CDATA[Galactic War Notification Script]]>
Instructions

  1. Copy and paste the code below into a new text file.
  2. Change C:\Users\ProfileName\Music\PathToSomeMediaFile.mp3 to a valid sound/video file that you want to play when FA starts.
  3. Save the text file as GalacticWarNotification.bat
  4. Run (double click) on the batch file that you just saved.
  5. Attack a planet
  6. Wait...

NOTE: You must restart the script after each time it notifies you.

Code:
@ECHO OFF
ECHO FAF Galactic War Notification Script v1.0
ECHO by Duck_42
ECHO -----------------------------------------
ECHO Waiting for Forged Aliance to start...
ECHO Press Ctrl-C to quit

:mainloop

tasklist /FI "IMAGENAME eq ForgedAlliance.exe" 2>NUL | find /I /N "ForgedAlliance.exe">NUL
if "%ERRORLEVEL%"=="0" GOTO PlayAlert

timeout /T 1 /NOBREAK > NUL
goto mainloop

:PlayAlert
ECHO Forged Aliance has started!
ECHO Triggering notification...
ECHO -----------------------------------------
start "C:\Program Files\Windows Media Player\wmplayer.exe" "C:\Users\ProfileName\Music\PathToSomeMediaFile.mp3"

ECHO Script finished!
pause


As always, please post any questions or comments on this thread so I'll be sure to see them.

Statistics: Posted by Duck_42 — 07 Jan 2014, 00:52


]]>