PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2

Notices


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #16 (permalink)  
Old 12-25-2009, 11:28 PM
Darkness231's Avatar
mmmm Freebirds
Offline
Pocket PC: HTC EVO (X2)
Carrier: Sprint
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
Reply With Quote
This post has been thanked 1 times.
 

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 03:39 PM.


Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com