Hi, what is the error returned?
Maybe the path is wrong or the Key is not created yet...
Shouldn't your root key be "rtLocalMachine" as indicated on the status line of your screenshot?
Try rebooting the device.
PostMessage(65535, 26, 0, 0)
You can try sending the WM_SETTINGCHANGE message.
You should use the PostMessage method of dzt's library: http://www.b4x.com/forum/additional-libraries/384-useful-library-2.html#post2809
Call it with the following parameters:
B4X:PostMessage(65535, 26, 0, 0)
Sub RestartSense
reg.New1
reg.RootKey(reg.rtLocalMachine)
reg.SetDWordValue("Software\Microsoft\Today\Items\HTC Sense", "Enabled", 0)
dzh.New1
dzh.PostMessage(65535,26,0,0)
End Sub
PostMessage(65535, 26, 0, 0)
If dzhw.PostMessage(65535, 26, 0, 0) Then
Msgbox("Ok!")
Else
Msgbox("Error...")
End If
Maybe it's not the same Window Handler on your device...B4X:PostMessage(65535, 26, 0, 0)
Try to write this:
If it return Error so the Window Handler field is not correct...B4X:If dzhw.PostMessage(65535, 26, 0, 0) Then Msgbox("Ok!") Else Msgbox("Error...") End If