Jump to content

Toggle Active Sync/Mass Storage


Guest frmariam

Recommended Posts

Guest frmariam

Does anyone know how to toggle between Active Sync and Mass Storage with one click?

Trying to implement this feature from Today2 into an HS++ skin but so far no luck...

Does anyone know if it's a registry key or a command? Is there a MortScript or an app for this? What's the control panel shortcut for "USB Connection Mode"?

Any help is apreciated. Really...

Link to comment
Share on other sites

Guest joweedeame

+1 to this

looking for an apllication like "torchbutton" for flashlight that will toggle activesync/usb mass storage...

(the omnia i900 favorite settings has this,.. but i dont wanna go to the favorite settings just to this...)

Link to comment
Share on other sites

  • 1 month later...
Guest frmariam

Ouch... So much time has passed and noboby knows of such an app (well I also figure this thread got burried a long while ago...).

Anyway I did this quick and dirty MortScript that does the job (pitty the USB Mode Settings windows shows for a fraction of a second...):

usb = RegRead ( "HKLM", "Drivers\USB\FunctionDrivers", "DefaultClientDriver" )


If ( usb eq "RNDIS" )

Run ( "\Windows\USBSetting.exe" )

Sleep ( 200 )

SendSpecial ( "Down" )

Sleep ( 50 )

SendSpecial ( "CR" )

Sleep ( 50 )

SendOK


ElseIf ( usb eq "Mass_Storage_Class" )

Run ( "\Windows\USBSetting.exe" )

Sleep ( 200 )

SendSpecial ( "Up" )

Sleep ( 50 )

SendSpecial ( "CR" )

Sleep ( 50 )

SendOK


EndIf

If it doesn't work in your device it may be because the "Sleep" time is too low... Try changing it to a higher value. I'm not very experienced at doing this sort of scripts so if someone out there can do a better version please post it here.

I haven't had much luck in my search for an app to toggle USB storage modes... Any coder out there up for a proper solution to this (would be useful to many users...)?

Edited by frmariam
Link to comment
Share on other sites

  • 3 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.