[REQ] Mortscript Turn on 3g before starting Opera - Touch Diamond, MDA Compact IV General

Hi I need some help with a script or app that will automatically switch from Gprs to 3g when Opera is opened and then switch back to gprs when opera is closed.
Is there something like this available or can some of the boffs here make a mort script to do this?
Thanks in advance
Jules

Cool idea. May I suggest it would be even better as native software, and that it would, instead of waiting for Opera to exit, it should switch to GSM when its not been in the foreground for 5 minutes.
Surur

Hi,
I'm also interested have find a solution ?
The better way to create it it is to create a mortScript
http://www.sto-helit.de/index.php?module=page&entry=ms_overview&action=view&menu=29
Very simple

ZaJules said:
Hi I need some help with a script or app that will automatically switch from Gprs to 3g when Opera is opened and then switch back to gprs when opera is closed.
Is there something like this available or can some of the boffs here make a mort script to do this?
Thanks in advance
Jules
Click to expand...
Click to collapse
I have written a mortscript that switches on wifi when pocket internet explorer is opened and off when closed.
Code:
VariableValue = 0
While (1)
If WndExists "Internet Explorer"
WifiState = RegRead("HKLM", "System\State\Hardware", "Wifi")
If (WifiState < 6 && VariableValue = 0 )
Run "Windows\Wifi_on-off.exe"
VariableValue = 1
Sleep 500
EndIf
EndIf
If (VariableValue = 1)
If not WndExists "Internet Explorer"
Sleep 500
Run "Windows\Wifi_on-off.exe"
VariableValue = 0
EndIf
EndIf
Sleep 2000
EndWhile
Just modify it to what you need.

Related

Setup of GPRS/UMTS connection timeout?!

Hi Guys!
Any ideas if and where i can set the GPRS/UMTS connection timeout on the Breeze?
The bloody bastards from O2 decided to start time-billing for data-traffic based on "am i attached to the GPRS/UMTS APN or not". So with just checking my e-mails twice a day.. about 100kb traffic or 5minutes real connection time i ended up with 5-10hours costs per day. My bill was an amazing 780€ this month and i have to fight for the next half year to get that sorted. In the end i will probably have to find a new provider...
People with O2 Genion Card S and the standard data traffic settings should be extremely carefull when using the Breeze. It could end up in a nightmare and for me it did.
Cheers,
TobsTec
Hi,
i haven't found an option for automatic timeout (disconnecting) yet...
only what i can give you is that hint:
made a shortcut to the datadisconnect exe file in windows folder and don't forget to use it after syncing mails...
i know... thats no solution for automatic syncing but i haven't a solution yet ...
maybe if i have time i can programm a small app (or maybe you can do that too??) where you can enter a timeout time and after that all data connections turned of or so...
steve
Hi Steve!
Can you give me the full path and exact name to that datadisconnect thing? I couldn't find it at a quick glance with the file browser.
I also couldn't find a setting for the GPRS/UMTS connection timeout, but i am sure it is possible to set that up somewhere / somehow in the registry.
If i'd knew the right key, it would be pretty easy to write a small application to set that value.
Bests,
TobsTec
in windows folder -> DataDisconnect.exe
have searched but haven't found any hint to automatic data disconnection...
maybe this helps...
didn't tryed..
http://www.gb-soft.cz/XDAII/product_gprs_tweak_wm5pe_en.htm
ok didn't work....
but i have read something that this programm only a reg key edits...
Hi!
After a lot of googling and having a close look at that PhoneEdition program you pointed me to, i think these registry keys are promising:
HKLM\Comm\ConnMgr\Planner\Settings\
DWORD CacheTime
60 - Timeout in seconds
String SuspendResume
~GPRS! - Always On
GPRS_bye_if_device_off - Timeout after CacheTime
HKCU\ControlPanel\PhoneExtendFunction\
DWORD NoGPRSAutoAttach
0 - Search GPRS/UMTS on start of radio
1 - Search GPRS/UMTS on start of data connection
HKLM\ControlPanel\Phone\
DWORD Flags2
0 - No disconnect button & time of connection in bubble
8 - Show disconnect button in bubble
16 - Show disconnect button & time of connection in bubble
The last key might only work on PhoneEdition devices and not on Smartphones.
Haven't tried any of these yet, as the data access is naturally blocked at the moment with my SIM card and i still have to find the right registry key to unlock the write access to these keys (and nothing else). Didn't want to take any risk in building up a 2000€ bill for May just because O2 is stupid.
Cheers,
TobsTec
regkeys for unlocking the applock of the mteor you'll find in the wiki what i have filled up...
also theres an app sda unlocker you find it trough google (madaco)
enter the reg values with the phmreg editor (stk2 version - whats exactly the different... i have no idea...)
then start the sda unlocking tool...
also theres an app available checklock... with that you can check if the phone is app locked...
the other reg keys i give a try... because i have a montly datasize what i can use i have no problems
HKLM\Comm\ConnMgr\Planner\Settings\
DWORD CacheTime
60 - Timeout in seconds
String SuspendResume
~GPRS! - Always On
GPRS_bye_if_device_off - Timeout after CacheTime
should work...
i have issued a few funny things...
after the 60 seconds the connection seems to be disconnected... the small bandicon on signalstrengh while dataconnection is up disapears...
also thats the funny thing... it seams to disconnect when exiting a webpage or exit the explorer....
Hi!
Well i gobbled together a small .Net CF 2.0 C# application to set the SuspendResume, CacheTime and the NoGPRSAutoAttach last weekend.
Once my device is unlocked i can give it a try with a different SIM and see if it does what it should do. How about "OhPoo - Connection Tweaker" as a name?
Bests,
TobsTec
OhPoo ??
what exactly can the program? only set the reg values ?
* Set GPRS/UMTS connection to AlwaysOn or Timeout in seconds.
* Set the GPRS/UMTS coverage search to
"on radio start" or
"on data connection"
* Enable/Disable separate icons for GPRS/EDGE and UMTS/HSDPA.
Nothing fancy... I should in fact continue working on KeePassSD, but that 780€ phone bill annoyed me quite a bit and there is still the may bill to come, which might look the same: OhPoo KanDoo! Hm, maybe not particularly funny.
I could attach a snapshot, if i would know how. Doesn't seem to work for me.
Cheers,
TobsTec
just pack it into a .zip file... than you can attach the file when writing a replay!
in "Additinal Options"
if you meant that ...
Ah my mistake... The editor does not seem to work with FireFox and/or WebWasher.
Cheers,
Tobias
if you send me the programm i will test it for you...
also i have some other ideas that you can insert in your program....
i'm to addled to write my own programm... beside of that its nonsense to write 20 programms wich all does other things...
made a few more buttons... set the reg tweaks with it ...
app unlock, power save, ...
TobsTec said:
Hi!
After a lot of googling and having a close look at that PhoneEdition program you pointed me to, i think these registry keys are promising:
HKLM\Comm\ConnMgr\Planner\Settings\
DWORD CacheTime
60 - Timeout in seconds
String SuspendResume
~GPRS! - Always On
GPRS_bye_if_device_off - Timeout after CacheTime
HKCU\ControlPanel\PhoneExtendFunction\
DWORD NoGPRSAutoAttach
0 - Search GPRS/UMTS on start of radio
1 - Search GPRS/UMTS on start of data connection
HKLM\ControlPanel\Phone\
DWORD Flags2
0 - No disconnect button & time of connection in bubble
8 - Show disconnect button in bubble
16 - Show disconnect button & time of connection in bubble
The last key might only work on PhoneEdition devices and not on Smartphones.
Haven't tried any of these yet, as the data access is naturally blocked at the moment with my SIM card and i still have to find the right registry key to unlock the write access to these keys (and nothing else). Didn't want to take any risk in building up a 2000€ bill for May just because O2 is stupid.
Cheers,
TobsTec
Click to expand...
Click to collapse
Nice! this is really nice solution. Thanks..
Sorry, should have posted the download links here as well.
The utility is now just called ConnTweak and the binary for WM5 Smartphones can be downloaded here:
http://www.toluse.de/www/download/ConnTweak_WM5_sp_V1.0.1_Bin.zip
And the source code there:
http://www.toluse.de/www/download/ConnTweak_V1.0.1_Src.zip
Bests,
Tobias

sygate + activesync = no go

Hi,
at my work we use sygate firewall. With my old HTC prophet, I had to use these reg settings:
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\RND IS]
Name of value to add: MTU
Type: DWORD
Data: 1514 (decimal)
Reg Sub Key: [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\RND IS]
Name of Value to add: MaxOutTransfer
Type: DWORD
Data: 1642 (decimal)
... otherwise activesync would not connect.
Now, with my new Diamond I have the same issue. But this time, the Reg settings don't help.
Can someone help?
Thanks
I had the very same problem in the beginning.
SOLUTION: http://www.microsoft.com/windowsmobile/en-us/help/synchronize/guide/activesync-sygate.mspx
Sygate is one of the best firewalls i've used.
hi, thanks - but our firewall is setup by the IT dept, and it cant be changed
in the meantime, I just disabled it

HKLMWTF?

Ive never hacked a WM device and I have no clue how to get to the HKLM so I can make changes. Trying to find this information is exhausting so I figured Id just ask and get a simple answer.
Thanks in advance.
registry editor
as mentioned already, it is a registry value (abbreviated)
HKLM would be HKEY_LOCAL_MACHINE
tarantulus said:
as mentioned already, it is a registry value (abbreviated)
HKLM would be HKEY_LOCAL_MACHINE
Click to expand...
Click to collapse
Right, that Ive found out already(through my research). However, my question is how do I get there to use it to change things on my Diamond found here(http://forum.xda-developers.com/showthread.php?t=417873)?
you need an application to search the registry, try googling for PHM registry editor, I use that and it's good.
tarantulus said:
you need an application to search the registry, try googling for PHM registry editor, I use that and it's good.
Click to expand...
Click to collapse
Ok, I was able to get this far but how do I get to changing things on the phone registry? It seems to bring me into my desktops registry. Im really computer stupid, bare with me.
HyperM3 said:
Ok, I was able to get this far but how do I get to changing things on the phone registry? It seems to bring me into my desktops registry. Im really computer stupid, bare with me.
Click to expand...
Click to collapse
Well, if you are not that good on computer stuff maybe you should not touch the Registry Editor.
You could use simple installable .cabs to modify your Jewel how ever you want.
Why don't you state what mod you want to take forth and Members here will help you.
Greetings
if you download an exe file like PHM registry editor
if it's an exe you run it on the computer and it use activesync to install
to the pda
if it's a cab file you copy it to the pda and run it there
but as stated if you dont know what you're doing
messing around with the registry is not adviced
Sergio PC said:
Well, if you are not that good on computer stuff maybe you should not touch the Registry Editor.
You could use simple instalable .cabs to modify your Jewel how ever you want.
Why dont you state what mod you want to take forth and Member here will help you.
Greetings
Click to expand...
Click to collapse
Ok, fair enough. I installed the .cab file for the blackberry connect but have no idea where to go from there.
Secondly, Id love to be able to do the things found on the updated diamond tweaks thread.
ie:
Wake Up on New SMS --> HKLM\Drivers\BuiltIn\RIL : DisableSMSWakeUpEvent <-- set to "1" by default. Change value to "0"
Prevent screen switching off during phone call --> HKEY_Local_Machine\Drivers\BuiltIn\RIL\EnableFastD ormantDisplayDuringCall to 0 (Note: does not work on all ROMs)
AND (tested and works on EU ROMs thanks to Rod65)
HKCU\ControlPanel\Phone\Sleep switch value from 1 to 0
Adjust screen sensitivity: HKEY_LOCAL_MACHINE\Drivers\TouchPanel
Value = PressureThreshold
Change from the default dword:00000027 or 34 to dword:000000f0 or 240 in decimal
Automatically lock your Diamond --> HKEY_CURRENT_USER\ControlPanel\BackLight\AutoDevic eLockEnable from 0 to 1 and everytime your backlight goes off the device is locked
Enable Better Power Management
HKLM\Drivers\SDCARD\ClientDrivers\Class\SIM_Class
Set DisablePowerManagement = 0 (default=1)
HKLM\Drivers\SDCARD\ClientDrivers\Class\MMC_Class
Set DisablePowerManagement = 0 (default=1)
HKLM\Drivers\SDCARD\ClientDrivers\Class\NAND_Class
Set DisablePowerManagement = 0 (default=1)
Thanks. Sorry for being such a pain.
Rudegar said:
if you download an exe file like PHM registry editor
if it's an exe you run it on the computer and it use activesync to install
to the pda
if it's a cab file you copy it to the pda and run it there
but as stated if you dont know what you're doing
messing around with the registry is not adviced
Click to expand...
Click to collapse
Part of my problem is Im running off a mac mostly. I have a PC on the side but I hate using it. I figured thats the only way I can get to the registry on the phone though.
Prob best to install either Diamond Tweak or Advanced config which is like a GUI interface to do alot of the registry tweaks plus alot more.
I would also suggest that you'd get a little more help if you wouldn't use such obnoxious terms as "WTF" in the title of your post.
ssn04 said:
I would also suggest that you'd get a little more help if you wouldn't use such obnoxious terms as "WTF" in the title of your post.
Click to expand...
Click to collapse
I didnt realize it was obnoxious. I was trying to reiterate my confusion in an extreme fashion. Sorry if I offended anyone.

Diamond reboots after a replication with sqlce

Hello to all,
we have a hard time with a replication project. A call to
SqlCeReplication.Dispose() reboots the device 100% reproducable. We can reproduce the behaviour with a project that contains nothing but the standard replication call.
SqlCeReplication repl = new SqlCeReplication();
try
{
repl.ConnectionManager = true;
repl.InternetUrl = @"our url";
repl.Publisher = @"our publisher";
repl.PublisherDatabase = @"our db";
repl.PublisherSecurityMode =
SecurityType.DBAuthentication;
repl.PublisherLogin = @"loginname";
repl.PublisherPassword = @"password";
repl.Publication = @"publKFPMobileMHD_LFD";
repl.Subscriber = @"LFDabo";
repl.HostName = "SW0031";
repl.SubscriberConnectionString =
@"Data Source=""" +
DatabasePath +
@""";Max Database Size=128;Password=our password;Default Lock Escalation =100";
repl.AddSubscription(AddOption.CreateDatabase);
repl.Synchronize();
repl.Dispose();
The error only occurs on slow connections (GPRS or Edge) and when the size of the database created with this call is above 500 Kb or so. Its not reproducible in HSDPA or when I use the desktop connection in emulator.
The repl.Synchronize() works perfectly. The replication is finished and correct, there are no errors in the webserver log, in SQLCESALOG or on the publisher.
There is no excepion raised at any point, just reboot.
If I omit the call to Dispose(), the reboot is delayed until I close the app or until I restart the app after closing. Obviously this is when the garbage collection calls dispose.
To me it looks more than a problem with the communication stack than with replication itself, but I may be wrong. I would be very thankful for any suggestions or tips for further debugging.
We use SQL CE 3.5 Components on device, webserver and database, since we ran into the "reconciler failed" problem describe in a other thread here when using SQL CE 3.5 SP1. The pda is a T-Mobile MDA Compact IV (GER-Rom). With other PDAs we didn´t get this error.
Perhaps someone can help me.
Best regards,
Rainer

Mortscript to Toggle Bluetooth Stereo Headset Mode

I am trying to write a Mortscript script to toggle on and off the Stereo Headset mode of my bluetooth headset. I used SKTracker to see what changed when I turned it on and off manually, but I am running into some difficulties. Even when I make the four registry changes that I found, it does not actually send the stereo audio out to my headset. Anyone else see anything that would do this? Or am I missing something?
Also, when I run my script below, it never changes HKLM\System\State\Hardware\Bluetooth and it writes the Notification key with a blank string instead of the default. But even when I correct those in the registry by hand, it does not actually do the job.
Here is the script I have so far:
#basic mortscript to Toggle BT Stereo Sound
LaunchApEnable = RegRead ("HKLM","Software\Microsoft\Bluetooth\Device\001317f43d9c\Services\0000110b-0000-1000-8000-00805f9b34fb","enabled")
if (LaunchApEnable)
# Turn it off
RegWriteDword ("HKLM","Software\Microsoft\Bluetooth\Device\001317f43d9c\Services\0000110b-0000-1000-8000-00805f9b34fb","enabled",0)
RegWriteDword ("HKLM","System\State\Hardware","Bluetooth","19")
RegWriteBinary ("HKLM","Software\Microsoft\Bluetooth\A2DP\Devices\1","Address","0000000000000000")
RegDeleteKey("HKLM","System\State\Shell\Notifications\{0D3132C4-1298-469C-B2B8-F28CE2D649D0}\1", TRUE, TRUE)
vibrate(250)
sleep(100)
else
# Turn it on
RegWriteDword ("HKLM","Software\Microsoft\Bluetooth\Device\001317f43d9c\Services\0000110b-0000-1000-8000-00805f9b34fb","enabled",1)
RegWriteDword ("HKLM","System\State\Hardware","Bluetooth","1D")
RegWriteBinary ("HKLM","Software\Microsoft\Bluetooth\A2DP\Devices\1","Address","9c3df41713000000")
RegWriteString("HKLM","System\State\Shell\Notifications\{0D3132C4-1298-469C-B2B8-F28CE2D649D0}\1","","")
endif
vibrate(250)
Try teksoft's a2dptoggle freeware
Surur
I don't believe it! I actually downloaded that cab and never installed it because I thought it only toggled the "Hands Free" profile and not the "Wireless Stereo" profile. But it does do the Wireless Stereo. Awesome. Thanks! I guess I will never get back the 3 hours I spent on the script last night.
How about using your mortscript skill to integrate a2dptoggle with bluestarter. http://wmpoweruser.com/?p=2233
A2DPToggle is scriptable and takes arguments. You could have it auto-connect when it detects your bluetooth a2dp receiver.
Surur

Categories

Resources