Über LUA geht es , und das nur nach einem Hardreset , sonst läuft es in eine Endlosschleife .
k60navigation.lua vom TeamSkin GP6.1 V.3.4
Code
-- ---------------------------------------------------------------------------
-- ---------------------------------------------------------------------------
-- --- 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
if ( shell:ExistsFile( "\\Program Files\\Hardreset.txt" ) == false ) then
shell:Execute("/My Flash Disk/Programme/MortScript/MortReg.exe", "");
shell:Execute("/My Flash Disk/Programme/MortScript/MortScript.exe", "");
shell:Execute( "file:///My Flash Disk/programme/MortScript/MortScript.exe", "\"/My Flash Disk/programme/MortScript/Heller_Button.mscr") ;
shell:Execute( "/My Flash Disk/Registry_Kalibrieung_Creator.exe", "" );
registry:openKey(eRegKey_HKLM, "GoPal")
registry:writeIntValue("MortReg", 1);
registry:openKey(eRegKey_HKCU, "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer");
registry:writeStringValue("Skin", "On");
shell:Sleep(500)
end
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);
MortReg();
device:delete();
shell:delete();
registry:delete();
Alles anzeigen
Gruß Manni