x187 wrote:
Strange, after my last post I did one more thing and guess what, it worked !
I used TomTom 7.450.9030 for WinCE4.2 on my WinCE6.0 NOWADA 2450
Maybe the previous will work also, but for me it is ok now.
This is my code. Solved some errors in it because i noticed that my file didn't copied and deleted the files.
Also the script auto exits the "console panel" (look to image X187 = Launch.exe) which is using a lot of memory.
You have to make sure you don't have unnecessary items running in the background.
Also i use 2 maps, works like a charm.
Code: Select all
Errorlevel ("off")
RegWriteDWord( "HKLM", "System\CurrentControlSet\Control\Power\Timeouts", "ACUserIdle", 0 )
RegWriteDWord( "HKLM", "System\CurrentControlSet\Control\Power\Timeouts", "ACSystemIdle", 0 )
RegWriteDWord( "HKLM", "System\CurrentControlSet\Control\Power\Timeouts", "ACSuspend", 0 )
RegWriteDWord( "HKLM", "System\CurrentControlSet\Control\Power\Timeouts", "BattUserIdle", 0 )
RegWriteDWord( "HKLM", "System\CurrentControlSet\Control\Power\Timeouts", "BattSystemIdle", 0 )
RegWriteDWord( "HKLM", "System\CurrentControlSet\Control\Power\Timeouts", "BattSuspend", 0 )
RegWriteDWord( "HKLM", "Drivers\Console", "OutputTo", 1 )
RegWriteDWord( "HKCU", "ControlPanel\Backlight", "ACTimeout", 0 )
RegWriteDWord( "HKCU", "ControlPanel\Backlight", "BatteryTimeout", 0 )
RegWriteDWord( "HKLM", "System\CurrentControlSet\Control\power\state\on", "Flags",0)
RegDeleteKey ("HKLM", "System\CurrentControlSet\Control\Power\ActivityTimers", True, True)
RegDeleteKey ("HKLM", "System\CurrentControlSet\Control\Power\State\SystemIdle", True, True)
RegDeleteKey ("HKLM", "System\CurrentControlSet\Control\Power\State\UserIdle", True, True)
RegDeleteKey ("HKLM", "System\CurrentControlSet\Control\Power\Timeouts", True, True)
Kill ("Launch.exe")
sleep 100
Delete ("\StorageCard\Europe_2GB_870_3391\MapSettings.cfg")
Delete ("\StorageCard\Benelux\MapSettings.cfg")
Delete ("\StorageCard\Europe_2GB_870_3391\*.cfg")
Delete ("\StorageCard\Benelux\*.cfg")
sleep 100
Delete ("\StorageCard\Navigator\CurrentMap.dat")
Delete ("\StorageCard\Navigator\UserPatch.dat")
Delete ("\StorageCard\Navigator\*.dat")
sleep 100
XCopy ("\StorageCard\Navigator\MapSettingsBE\*.*", "\StorageCard\Benelux\", TRUE, FALSE)
XCopy ("\StorageCard\Navigator\MapSettingsEU\*.*", "\StorageCard\Europe_2GB_870_3391\", TRUE, FALSE)
sleep 100
SET SETMEM, "\StorageCard\Navigator\Setmem.exe"
Run (%SETMEM%, "85000")
sleep 100
#Start Navigator
#Run(SystemPath("ScriptPath")\"TomTom Navigator.exe")
Run("\StorageCard\Navigator\TomTom Navigator.exe")
Waitfor("TomTom Navigator", 1000)
Kill ("Launch.exe") /// Closes the console panel to have more memory ///
Delete ("\StorageCard\Europe_2GB_870_3391\*.cfg") ///extra add's to make sure it delete///
Delete ("\StorageCard\Benelux\*.cfg") ///extra add's to make sure it delete///
XCopy ("\StorageCard\Navigator\MapSettingsBE\*.*", "\StorageCard\Benelux\", TRUE, FALSE)
XCopy ("\StorageCard\Navigator\MapSettingsEU\*.*", "\StorageCard\Europe_2GB_870_3391\", TRUE, FALSE)
/// Xcopy: corrected the errors in syntax like ' ","() which were not allways correct.
/// The TRUE means overwrite when file still exist (when not deleted)
/// FALSE means, don't copy subdirectories
SET SETMEM, "\StorageCard\Navigator\Setmem.exe" //// Setmem.exe in stead of SetMem.exe
Run (%SETMEM%, "85000") //// 85000 is the setting that works for my device!
***
after all, not three weeks waste of time
If i have some time, i will make youtube movie and file download
***
Good luck!