[8525, TyTN, MDA Vario II, JasJam General] Chalky:
Phone Automation Thread - Tutorial 2

Ok heres tutorial 2 another simple one, I was going to post this yesterday but I got distracted by Skype Mobile.

Tutorial 2 - Open a Webpage at a specific time

This Tutorial uses SKschema - Its best to install to your devices main memory and not a memory card. See s-k-tools.com for the Skschema program (trial available).

Applications - You can use the script to periodically open a specific Webpage at a specific time of the day. You may want to do this if you want to say - check the weather (rain radar), check the latest news or sports news, check your stocks or shares etc and so on.

Variations on a theme - Select a different url to open a different Webpage.

Conflicts - The script has been tested on a HERMES (T-Mob MDA Vario II) without any problems. IF you are using PUSH Messaging that constantly maintains a connection to your (data)connection for emails, then activesync will simply reconnect to your (data)connection after you have disconnected, so you might want to ignore and leave out the second line of the script regarding disconnection.

Final Note - This tutorial is for advice only, Skschema is a powerful program, remember to back-up important data and files on your device etc as you would before using any software.

How the script works...

The device launches the desired url of the Webpage set, in doing so it automatically opens Pocket/Mobile Internet Explorer (if set as default bowser) and initiates a Gprs (data) connection to access the Webpage only if there is no current active internet connection. After 60 seconds (can be changed to a longer or shorter time) the (data) connection is disconnected (the code for disconnection can be left out if you want the (data) connection left on).

#r(\Automation\Your desired webpage.url) #waitfor(1)
#r(#disconnect) #p(Your data connection)
#sleep(60000)

The Science Bit...

#r(\Automation\Your desired webpage.url) #waitfor(1) - This command simply opens up the url file containing your desired Webpage, using your default browser.

#r(#disconnect) - This command simply disconnects the connection.

#p(#your data connection) - This command specifies which connection to disconnect.

#sleep(60000) - This command pauses the disconnection command for 60 seconds.

The Tutorial

​

Creating the Script...

[01] Open a Webpage at a specific time

[02] In PIE/MIE navigate to the Webpage you wish to open up.

[03] And bookmark it as a favourite.

[04] In your File Explorer go to your devices "Windows" folder.

[05] Then to "Favourites" folder.

[06] Select the Webpage you just saved as a favourite.

[07] Tap and hold to bring up the context menu and select "copy".

[08] Then navigate to the Automation folder (see tutorial #1) and paste the file.

[09] From programs, launch Skschema by clicking on the skschema icon.

Click on [Tools - Right Softkey] and select "script". Then [New- Left Softkey]

[10] Tap on "Command" and then tap on the icon in the far right top corner with 3 dots (...). From the context popup, select "File".

[11] Browse to the Automation folder and select your url file. Then click ok and again ok.

[12] Click on [New - Left Softkey]

[13] Tap on Command, the 3 dot icon, select "Device" followed by "Disconnect".

[14] Tap Parameters, the 3 dot icon, select "conections" followed by "Your GPRS connection, in this example it was "T-Mobile Internet".

[15] Click on the "Special" tab.

[16] Tap on Wait X milliseconds... and enter "60000" in the text box. Click on [OK - Left Softkey].

[17] The completed script.

[18] To test the script Tap an hold on the script and select "execute".

[19] Opening the desired Webpage.

[20] The disconnection after 60 seconds.

[21] From Skschema click on the [Tools - Right Softkey] and select the "Context Menu" option, followed by "Save to File".

[22] Browse to your "Automation" folder and name the file eg. "RainCheck".You can skip the setting the icon for the shortcut [Skip - Right Softkey].

Automation of the Script...

[23] Click on [Tools - Right Softkey] and select "Queue".

[24] The Queue screen will appear. Click on [New - Left Softkey]. Tap on Command, the 3 dot icon, select "script".

[25] Tap on Parameters, the 3 dot icon, select "Script file".

[26] Browse to the Automation folder and select the script you previously saved "Raincheck.sksc".

[27] Tap on Description and enter a description (so you know what the script does) "Open met office homepage".

[28] Tap on Run at time and use the 2 arrow buttons to select a start time that you wish to run the script eg. 08:00

[29] Tap on days(of week) and select the days you wish the script to run eg Monday,Tuesday,Wednesday etc..

[30] Tap on Wait X milliseconds... and enter "1 second". This feature may come in handy when your device wakes up.

[31] Click on [OK - Left Softkey]. On the main Queue screen you should see the newly schedule item.

[32] Click on [Tools - Left Softkey] and select "Exit" to exit Skschema. The Scheduled Script will be placed in the Devices Notification Queue.

Removing/Disabling the script...

[] Simply start Skschema and Tap and hold on the scheduled item and select "Delete" or "DeActivate".

Well thats the second tutorial - chalky

Attached is a copy of the Skschema script file used in this tutorial and a copy of the gif annimation.