View Single Post
  #52 (permalink)  
Old 12-25-2009, 11:28 PM
Darkness231's Avatar
Darkness231
mmmm Freebirds
Offline
Location: Cedar Park, TX
 
Join Date: Mar 2007
Posts: 1,218
Reputation: 2543
Darkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Program to disable TF3D?

Quote:
Originally Posted by rmcsilva View Post
Hi, and thank you for your quick reply. I'm running the latest official Rom from HTC, but the language is set to portuguese. Does this affect the registry and file locations? If so, can your program be "translated"? Thanks again.

Best regards,
Rui

Here is the script. To make it work with other languages, we would need:

What is the path for the today values
For English it is
HKLM\SOFTWARE\Microsoft\Today\Items\TouchFLO 3D\Enabled
HKLM\SOFTWARE\Microsoft\Today\Items\HTC Sense\Enabled

The exact locations of the SPB mobile shell executable
For english it is
\Program Files\Spb Mobile Shell\MobileShell.exe

The location of the program folder in the start menu
For english it is
\Windows\Start Menu\Programs\


If anyone that is familiar mortscript has any suggestions, feel free to comment.


Code:
TouchFLO3DEXIST =RegValueExists("HKLM", "SOFTWARE\Microsoft\Today\Items\TouchFLO 3D", "Enabled")
HTCSENSEEXIST = RegValueExists("HKLM", "SOFTWARE\Microsoft\Today\Items\HTC Sense", "Enabled")
ShellStorage = FileExists( "\Storage Card\Program Files\Spb Mobile Shell\MobileShell.exe")
ShellDevice = FileExists( "\Program Files\Spb Mobile Shell\MobileShell.exe")
ShellInternalStorage = FileExists( "\Internal Storage\Program Files\Spb Mobile Shell\MobileShell.exe")    
shellrunning = ProcExists("MobileShell.exe")

If (shellrunning)
    If (ShellStorage)
        run("Storage Card\Program Files\Spb Mobile Shell\MenuLauncher.exe","-stop")
    EndIf
    If (ShellDevice)
        run("\Program Files\Spb Mobile Shell\MenuLauncher.exe","-stop")
    EndIf
    If (ShellInternalStorage)
        run("\Internal storage\Program Files\Spb Mobile Shell\MenuLauncher.exe","-stop")
    EndIf
    If (TouchFLO3DEXIST)
        RegWriteDWord("HKLM", "SOFTWARE\Microsoft\Today\Items\TouchFLO 3D", "Enabled","1")
    Endif
    If (HTCSENSEEXIST)
        RegWriteDWord("HKLM", "SOFTWARE\Microsoft\Today\Items\HTC Sense", "Enabled","1")
    EndIf
    RedrawToday
    Show ( "Desktop" )

Else
    If (TouchFLO3DEXIST)
        RegWriteDWord("HKLM", "SOFTWARE\Microsoft\Today\Items\TouchFLO 3D", "Enabled","0")
    Endif
    If (HTCSENSEEXIST)
        RegWriteDWord("HKLM", "SOFTWARE\Microsoft\Today\Items\HTC Sense", "Enabled","0")
    EndIf
    If (ShellStorage)
        run("Storage Card\Program Files\Spb Mobile Shell\MenuLauncher.exe")
    EndIf
    If (ShellDevice)
        run("\Program Files\Spb Mobile Shell\MenuLauncher.exe")
    EndIf
    If (ShellInternalStorage)
        run("\Internal storage\Program Files\Spb Mobile Shell\MenuLauncher.exe")
    EndIf
    RedrawToday
    Show ( "Desktop" )
Endif
__________________

Good things don't end in 'eum,' they end in 'mania'...or 'teria'
Easily switch between TouchFlo and Mobile Shell
If you like my work feel free to
Reply With Quote
This post has been thanked 1 times.