-- --------------------------------------------------------------------------- -- --------------------------------------------------------------------------- -- --- Starting navigation application -- --- local registry = RegistryAccess:new(); local shell = Shell:new(); local device = Device:new(); --- Set AutoHide if registry:openKey(eRegKey_HKLM, "SOFTWARE\\Microsoft\\Shell\\AutoHide") == true then local Wert = registry:readIntValue( "" ); if ( 1 == Wert ) then registry:writeIntValue( "", 0 ); shell:Sleep(500) device:Reboot(); end end -- Autoregistrierung von MortScript function MortReg() if registry:openKey(eRegKey_HKLM, "GoPal") == false then return; end shell:Execute("/My Flash Disk/Programme/MortScript/MortReg.exe", ""); shell:Execute("/My Flash Disk/Programme/MortScript/MortScript.exe", ""); registry:openKey(eRegKey_HKLM, "GoPal") registry:writeIntValue("MortReg", 1); shell:Sleep(500) end -- Exit-Button if registry:openKey(eRegKey_HKLM, "GoPal\\Shell") == false then registry:createKey(eRegKey_HKLM, "GoPal\\Shell"); end registry:openKey(eRegKey_HKLM, "GoPal\\Shell"); if registry:existsValue("ShellInBackgroundFlag") == true then local nExit = registry:readIntValue("ShellInBackgroundFlag"); if(0 == nExit) then registry:writeIntValue("ShellInBackgroundFlag", 1); end else registry:writeIntValue("ShellInBackgroundFlag", 1); end shell:LoadLibrary( "/My Flash Disk/navigation/sdstring.dll" ); shell:LoadLibrary( "/My Flash Disk/navigation/graphicslib.dll" ); shell:LoadLibrary( "/My Flash Disk/navigation/hmimoduleloader.dll" ); shell:Execute( "/My Flash Disk/navigation/extra/extrashell.exe", "" ); shell:Execute( "file:///My Flash Disk/programme/koord465.exe", "window=0 taskbar=0"); shell:Sleep(3000); --- DLL copy if ( shell:ExistsFile( "\\My Flash Disk\\navigation\\multimedia\\mp3player\\graphicslib.dll" ) == false ) then shell:Execute( "file:///My Flash Disk/programme/MortScript/MortScript.exe", "\"/My Flash Disk/programme/MortScript/NR_DLL_copy.mscr"); end MortReg(); device:delete(); shell:delete(); registry:delete();