by giovanni81 » Wed Aug 24, 2011 10:08 am
Errorlevel("warn")
If(WndExists("Garmin Mobile XT"))
Show("Garmin Mobile XT")
Exit
EndIf
Run("\windows\explorer.exe")
Sleep(1000)
#Hide Taskbar
Run(SystemPath("ScriptPath")\"TaskbarHide.exe")
#Copy previous stored settings to \Garmin
#XCopy(SystemPath("ScriptPath")\"Settings\*.*", "\Garmin", TRUE)
XCopy("\StorageCard\Garmin\Settings\*.*","\Garmin",True,True)
setcominfo("com2:", 500,9600,"none",8,1,"none")
str = readfile( "com2:", 100 )
#Hide Taskbar
Run(SystemPath("ScriptPath")\"TaskbarHide.exe")
#Run Garmin Mobile XT.
#This script will not go to the next command before que.exe completely shut down
#RunWait(SystemPath("ScriptPath")\"..\Apps\WM\que.exe")
RunWait("\StorageCard\Garmin\Apps\WM\Que.exe")
#Save new settings back to SD Card
#XCopy("\Garmin\*.*", SystemPath("ScriptPath")\"Settings", TRUE)
XCopy("\Garmin\*.*","\StorageCard\Garmin\Settings",True,True)
If( ProcExists( "que.exe" ) )
Kill("que.exe")
EndIf
#Show Taskbar
#Run(SystemPath("ScriptPath")\"TaskbarShow.exe")
Kill("explorer.exe")