2008年1月4日金曜日

4-1.Auto Login - UWSC sample scripts


In this chapter, I’ll show you the use ways of UWSC with sample scripts. But because the explanation of UWSC hasn’t come yet, the detail of the scripts are omitted.

Auto login

Account management is one of the trouble some operation. Visit the site and enter your information every time.
If you have a couple of IDs and Passwords to login to some sites, how do you manage it? With UWSC script, many sites are signed in by one click.
http://sky.geocities.jp/uwsc_uwsc_uwsc/01.html requires ID and password.

----------

IE = CREATEOLEOBJ("InternetExplorer.Application")
IE.visible = True
IE.navigate("
http://sky.geocities.jp/uwsc_uwsc_uwsc/01.html")

REPEAT
SLEEP(0.1)
UNTIL !IE.busy AND IE.readystate = 4

IE.document.forms[0].elements[0].value = "guest"
IE.document.forms[0].elements[1].value = 1234
IE.document.forms[0].elements[2].click

----------


Sample script No.001
Get script :<http://sky.geocities.jp/uwsc_uwsc_uwsc/01.txt>


When using password and account like this script, scrambling and encoding to be unreadable are recommended. UWSC initially has a scramble function.
Installing a software that manages account and password isn’t needed no more, and because of scrambling, higher security is assured than VBscript that doesn’t have encode system
.

----------

PASS = INPUT("password is 1234")
IF PASS <> 1234 THEN EXITEXIT
IE = CREATEOLEOBJ("InternetExplorer.Application")
IE.visible = True
IE.navigate("
http://sky.geocities.jp/uwsc_uwsc_uwsc/01.html")

REPEAT
SLEEP(0.1)
UNTIL !IE.busy AND IE.readystate = 4

IE.document.forms[0].elements[0].value = "guest"
IE.document.forms[0].elements[1].value = 1234
IE.document.forms[0].elements[2].click

----------

Sample script No.002
Get script :http://sky.geocities.jp/uwsc_uwsc_uwsc/02.txt


This script requires password before starting, so only the person who knows the password can execute it.
The combination with password requires and scrambling will strongly protect your script.

----------


Y_ID = INPUT("your ID[<#DBL>guest<#DBL> is correct]")
Y_PS = INPUT("your password[<#DBL>1234<#DBL> is correct]")
IE = CREATEOLEOBJ("InternetExplorer.Application")
IE.visible = True
IE.navigate("http://sky.geocities.jp/uwsc_uwsc_uwsc/01.html")

REPEAT
SLEEP(0.1)
UNTIL !IE.busy AND IE.readystate = 4

IE.document.forms[0].elements[0].value = Y_ID
IE.document.forms[0].elements[1].value = Y_PS
IE.document.forms[0].elements[2].click

----------


Sample script No.003
Get script :http://sky.geocities.jp/uwsc_uwsc_uwsc/03.txt

This script requires ID and password after starting so you can choose the account to login.

0 件のコメント: