PDA

View Full Version : Turn on wifi while charging


sutur
25th September 2009, 12:14 AM
Hello lads,

Probably been asked before, but I wondered if anyone knew a way I might be able to automatically switch on wifi when my device (Raphael, WM6.1) is being charged, and switch it off when the power/usb cable is removed?

There's probably an application somewhere that might do the trick you guys know of, so I'd appreciate a lead :)

Cheers

jeen
10th October 2009, 01:50 PM
VJVolubilis (http://www.vijay555.com/?Releases:VJVolubilis) could be used with Mortscript (http://www.sto-helit.de/index.php?module=page&entry=ms_overview&action=view) to achieve this.
Don't know what exact commands, but this way i start bluetooth when the (car-)charger is connected. Should work for WIFI as well.

sutur
18th October 2009, 03:02 AM
Thank you jeen :-)
Will get cracking on this, but, if you had your own mentioned script handy, I would appreciate a dump of it here for accelerated learning - I'm a horrible programmer.

sutur
18th October 2009, 03:20 AM
Might it look something like this?


if
{
bool = ExternalPowered(TRUE), Run("\Windows\Program Files\vjvolubilis\vjvolubilis.exe -wifitoggle")
}
endIf
end

But it would need to be constantly running, and that would use cpu/battery. Would need to have the application triggered by the event of charing...is that how you did it?

Seems you manage virtually the same thing as I was driving at, please post your solution? :(

The only difference should be

-bluetoggle

to

-wifitoggle