Notices

Windows Mobile 5 No more Magneto!

Reply
 
LinkBack Thread Tools
Old 09-10-07, 09:49 PM   #1 (permalink)
phenzor
Guest
 
Posts: n/a
Disabling today items using mortscript.

Hi!

One/several of my todayitems interfere with DoomGLES. When they are active DoomGLES hangs when trying to create a new game. I would prefer to not have to disable the items manually each time I am running the game. Is there a way to disable them in the registry?
  Reply With Quote
Sponsor Ads
Old 09-10-07, 09:57 PM   #2 (permalink)
phenzor
Guest
 
Posts: n/a
I found it myself \HKLM\SOFTWARE\Microsoft\Today\Items\ ;)
  Reply With Quote
Old 09-10-07, 10:51 PM   #3 (permalink)
phenzor
Guest
 
Posts: n/a
Here is the code if anybody's interested. It reads the value value for the DWORD Enabled for the first key. If that is enabled (1) then all the TodayItems are disabled otherwise they are enabled. You would of course need to replace the names of the items to the names of the todayitems you want to enable/disable.

Code:
RegOn=RegRead("HKLM","SOFTWARE\Microsoft\Today\Items\rlToday","Enabled")
if (RegOn=1) 
	RegWriteDWord("HKLM","SOFTWARE\Microsoft\Today\Items\rlToday","Enabled",0)
	RegWriteDWord("HKLM","SOFTWARE\Microsoft\Today\Items\PocketBreeze","Enabled",0)
	RegWriteDWord("HKLM","SOFTWARE\Microsoft\Today\Items\PocketWeather","Enabled",0)
	RegWriteDWord("HKLM","SOFTWARE\Microsoft\Today\Items\cLaunch","Enabled",0)
	RedrawToday
Else
	RegWriteDWord("HKLM","SOFTWARE\Microsoft\Today\Items\rlToday","Enabled",1)
	RegWriteDWord("HKLM","SOFTWARE\Microsoft\Today\Items\PocketBreeze","Enabled",1)
	RegWriteDWord("HKLM","SOFTWARE\Microsoft\Today\Items\PocketWeather","Enabled",1)
	RegWriteDWord("HKLM","SOFTWARE\Microsoft\Today\Items\cLaunch","Enabled",1)
	RedrawToday
Endif
  Reply With Quote
Reply

Tags
disabling, items, mortscript, today

Sponsor Ads

Thread Tools

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 -5. The time now is 08:58 PM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2003-09 LeckMedia, LLC