PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   HTC Touch Pro 2 (http://forum.ppcgeeks.com/forumdisplay.php?f=97)
-   -   Program to disable TF3D? (http://forum.ppcgeeks.com/showthread.php?t=101345)

rmcsilva 12-25-2009 09:43 PM

Re: Program to disable TF3D?
 
Quote:

Originally Posted by Darkness231 (Post 1437429)
Are you running an english ROM?

Since the program uses mortscript to read certain registry and file locations. If it cant find them (because they are named different) then it wont work.


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

Darkness231 12-25-2009 11:28 PM

Re: Program to disable TF3D?
 
Quote:

Originally Posted by rmcsilva (Post 1437446)
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


rmcsilva 12-26-2009 10:29 AM

Re: Program to disable TF3D?
 
Thank you again for your help. I have been looking at the registry, and it is exactly the same for today values.

The location of the SPB mobile shell executable, however, is different:
instead of: \Program Files\Spb Mobile Shell\MobileShell.exe
it is: \Programas\Spb Mobile Shell\MobileShell.exe

The location of the program folder in the start menu was also different, but I already corrected it.

I would very much appreciate if you could change the location of the SPB MS executable for the one above, and post the new file (I can't do it myself, don't know how to).

Thank you.

Best regards,
Rui

Darkness231 12-26-2009 11:18 AM

Re: Program to disable TF3D?
 
1 Attachment(s)
Quote:

Originally Posted by rmcsilva (Post 1438012)
Thank you again for your help. I have been looking at the registry, and it is exactly the same for today values.

The location of the SPB mobile shell executable, however, is different:
instead of: \Program Files\Spb Mobile Shell\MobileShell.exe
it is: \Programas\Spb Mobile Shell\MobileShell.exe

The location of the program folder in the start menu was also different, but I already corrected it.

I would very much appreciate if you could change the location of the SPB MS executable for the one above, and post the new file (I can't do it myself, don't know how to).

Thank you.

Best regards,
Rui


Try this and let me know if it works

rmcsilva 12-26-2009 12:02 PM

Re: Program to disable TF3D?
 
It works just fine!

Thank you. You are a genius and a gentleman!

Best regards,
Rui

scabbard 12-27-2009 08:22 PM

Re: Program to disable TF3D?
 
Was wondering if you might consider making one for TF3D, Iphone Today and Titanium? Thanks.

Darkness231 12-27-2009 08:44 PM

Re: Program to disable TF3D?
 
Quote:

Originally Posted by scabbard (Post 1440676)
Was wondering if you might consider making one for TF3D, Iphone Today and Titanium? Thanks.

sure, just point me towards the iphone today plug in that you have installed

scabbard 12-27-2009 08:52 PM

Re: Program to disable TF3D?
 
Wow, thanks for the quick reply. Here is the link.

http://forum.xda-developers.com/showthread.php?t=508429

Darkness231 12-27-2009 10:54 PM

Re: Program to disable TF3D?
 
1 Attachment(s)
Quote:

Originally Posted by scabbard (Post 1440720)
Wow, thanks for the quick reply. Here is the link.

http://forum.xda-developers.com/showthread.php?t=508429


Try this

EDIT: I made the choice font larger, and added the Androkkid option

scabbard 12-27-2009 11:14 PM

Re: Program to disable TF3D?
 
Works like a charm. Will do a little more testing. Thanks. Two minor suggestions, though I kinda feel guilty for any suggestions because it works so well.

#1- Make Text larger so it's more finger friendly

#2- Make the program so that people may add or delete all available options as they need. For example, I am hoping that Androkkid will make a Today plugin for that program. If so, I would like that option included as well and I hate to ask you to do this again.

Again, truly one of the coolest programs. Thanks.


All times are GMT -4. The time now is 05:38 AM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0