Jump to content

Recommended Posts

Guest alvaro357
Posted

I've made a script with mortscript based on the other one that allows to launch first GPSPlex and later TomTom. This scripts is running in background and when it detects that a GPS is opened it launches GPSPlex.

At the beginning it works good but I don't know why GPSPlex closes unexpectedly.

Anyone can help me?

Here is the script:

#------------------------------------------

#

# GPSPlex Launcher

#

#------------------------------------------

GPSPlexEnabled = 0

While (1)

GPSPlexEnabled = ProcExists("GpsPlex.exe")

if (ProcExists("TomTom Navigator.exe") or ProcExists("iGO.exe") or ProcExists("CompeTwoNav.exe") \

or ProcExists("GoogleMaps.exe") or ProcExists("WMMiniGPS.exe") )

GPSAplication = 1

else

GPSAplication = 0

endif

If (GPSPlexEnabled = 0 && GPSAplication = 1)

Run("\mi memoria\Archivos de Programa\GpsPlex\GpsPlex.EXE")

Vibrate (300)

GPSPlexEnabled = 1

endif

If (GPSPlexEnabled = 1 && GPSAplication = 0)

CLose ("GpsPlex")

Message( "GPSPlex cerrado" )

Vibrate (300)

sleep(1000)

GPSPlexEnabled = 0

endif

Sleep (5000)

EndWhile

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.