[REQ] Mortscript Turn on 3g before starting Opera

ZaJules

Senior Member
Sep 13, 2005
341
61
0
48
Port Elizabeth
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
 

surur

Senior Member
Nov 29, 2003
622
2
0
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
 

neomagik

Senior Member
Jul 25, 2006
173
0
0
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
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.