Notices

Tips and Tricks Share tips that can save others time and frustration here !

Reply
 
LinkBack Thread Tools
Old 03-21-08, 12:27 PM   #1 (permalink)
Aximsite Minor League
 
Unit ZER0's Avatar
 
Join Date: Aug 2007
Location: A top-secret bunker in an undisclosed location...
Posts: 298
Device: Samung SGH T809
Carrier: T-Mobile
Thanked 33 Times in 13 Posts
Icon3 Scripting Fun!

If you use MortScript you know you can do a great many things with scripts. I am just starting out in this field, so my projects are amaturish at best. Please feel free to submit your own projects as well! These first three scripts I have written are designed to go into your "StartUp" folder in the "Windows" directory, to run when your device boots up. "ActiveKill" is designed to kill ActiveSync if it starts itself whenever you soft reset your device, it's based off the work of another scripter on this site. "WiFiPowerOnOff" switches your WiFi radio on and then off again in order to stop the connectivity icon in the upper right corner of the screen from cycling and, then kill ActiveSync, if it's there. "SysStartup" is for users who have Wisbar Advance 2 installed as well, you will need to disable WisBar's "Start on Soft Reset" option first, as this script will run the WiFi fix, then start Wisbar, and then kill ActiveSync, if it's there. Keep in mind you should only use ONE of these scripts at a time, please choose the one that best meets your needs. DO NOT place all three in the "StartUp" folder at the same time, you will screw up your device. The scripts are contained in the ZIP below:

Enjoy! :approve:

Startup Scripts: Startup Scripts.zip
__________________
ZER0:hide:
Unit ZER0 is offline   Reply With Quote
Sponsor Ads
Old 03-24-08, 12:02 PM   #2 (permalink)
Aximsite Minor League
 
Unit ZER0's Avatar
 
Join Date: Aug 2007
Location: A top-secret bunker in an undisclosed location...
Posts: 298
Device: Samung SGH T809
Carrier: T-Mobile
Thanked 33 Times in 13 Posts
Script Code:
I have decide to make the code contained in each of these scripts readily available, feel free to copy and edit these as you see fit. The code is the portion located between the dotted lines:

ActiveKill:
--------------------------------------------------------------------------
If( WndExists( "ActiveSync" ) )

Close( "ActiveSync" )

EndIf

KillScript( "ActiveKill" )
--------------------------------------------------------------------------

WiFiPowerOnOff:
--------------------------------------------------------------------------
RunWait( "\Windows\WirelessOnOff.exe" ,[7000])

Run( "\Windows\WirelessOnOff.exe" )

If( WndExists( "ActiveSync" ) )

Close( "ActiveSync" )

EndIf

KillScript( "WiFiPowerOnOff" )
--------------------------------------------------------------------------

SysStartup:
--------------------------------------------------------------------------
RunWait( "\Windows\WirelessOnOff.exe" ,[8000])

RunWait( "\Windows\WirelessOnOff.exe" ,[5000])

Run( "\Program Files\Lakeridge\WisBar Advance\WisBarAdv2.exe" )

If( WndExists( "ActiveSync" ) )

Close( "ActiveSync" )

EndIf

KillScript( "SysStartup" )
--------------------------------------------------------------------------

Enjoy! :approve:
__________________
ZER0:hide:
Unit ZER0 is offline   Reply With Quote
Old 03-24-08, 12:05 PM   #3 (permalink)
Aximsite Minor League
 
Unit ZER0's Avatar
 
Join Date: Aug 2007
Location: A top-secret bunker in an undisclosed location...
Posts: 298
Device: Samung SGH T809
Carrier: T-Mobile
Thanked 33 Times in 13 Posts
Please Note: These codes were tested successfully on a Dell Axim X51v, running Windows Mobile 5.0 with MortScript 4.1 installed.
__________________
ZER0:hide:
Unit ZER0 is offline   Reply With Quote
Reply

Tags
fun, scripting

Sponsor Ads

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:27 PM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2003-10 LeckMedia, LLC