Hey guys,
Just found your forum. I'm still a beginner when it comes to .js or .vbs and need some help.
I need to create a scrip which when clicked will help me do the following:
- Upon being clicked from desktop, wait predetermined amount of time (ex, 30 min)
- The script would need to open site - Populate LOGIN + PASSWORD fields, click login button.
- when page loads, find a specific form button, then click update form button.
- send logoff command (logoff link)
This is what I have so far:
With this I can set the delay, then open the site. But I need help with the sendkeys part to send the login/pass info to populate the fields, I then need to send "enter" after a wait (page load) I need to click a form button & finally click the logoff link.
I need some help b/c this is a bit above what I know. Thank you in advance
Just found your forum. I'm still a beginner when it comes to .js or .vbs and need some help.
I need to create a scrip which when clicked will help me do the following:
- Upon being clicked from desktop, wait predetermined amount of time (ex, 30 min)
- The script would need to open site - Populate LOGIN + PASSWORD fields, click login button.
- when page loads, find a specific form button, then click update form button.
- send logoff command (logoff link)
This is what I have so far:
Code:
Set objIE=WScript.createobject("internetexplorer.application","objIE")
objIE.visible = True
objIE.TheaterMode = False
objIE.AddressBar = True
objIE.StatusBar = False
objIE.MenuBar = True
objIE.FullScreen = False
objIE.Navigate "about:blank"
Do Until objIE.ReadyState = 4
WScript.Sleep 100
Loop
Set shl = WScript.CreateObject("WScript.Shell")
shl.SendKeys "% X"
URL = "[URL unfurl="true"]www.sitehere.com"[/URL]
objIE.Navigate(URL)
With this I can set the delay, then open the site. But I need help with the sendkeys part to send the login/pass info to populate the fields, I then need to send "enter" after a wait (page load) I need to click a form button & finally click the logoff link.
I need some help b/c this is a bit above what I know. Thank you in advance