S
Snakeoids
Greetings,
I have a small program (Visual Basic) that automatically restarts my
computer and launches various applications so that when I get into the
office, my computer is ready to go. However I have a problem with my
Internet Explorer windows that launch in the program. The size and position
of these windows are not what I want, so when I get to my computer, I have to
manually size and position with my mouse. Can someone advise me code that I
can add to my program to have these windows automatically sized and
positioned to what I want when they launch please? Thank you.
See my current code below. Cheers.
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "Notepad.exe"
Do Until Success = True
Success = objShell.AppActivate("Notepad")
Wscript.Sleep 1000
Loop
objShell.SendKeys "{F5}{ENTER}{ENTER}"
Wscript.Sleep 5000
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "http://165.252.48.3:7070/NTN/ntndol/input"
Wscript.Sleep 5000
objShell.SendKeys
"NBCCMISS{TAB}102182{TAB}RN{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{ENTER}"
Wscript.Sleep 5000
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "IEXPLORE.EXE"
Wscript.Sleep 5000
objShell.SendKeys "RNEVILLE{TAB}{ENTER}"
Wscript.Sleep 5000
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "IEXPLORE.EXE"
Wscript.Sleep 5000
objShell.SendKeys "RNEVILLE{TAB}{ENTER}"
Wscript.Sleep 5000
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "IEXPLORE.EXE"
Wscript.Sleep 5000
objShell.SendKeys "RNEVILLE{TAB}{ENTER}"
Wscript.Sleep 10000
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "IEXPLORE.EXE"
Wscript.Sleep 5000
objShell.SendKeys "RNEVILLE{TAB}{ENTER}"
Wscript.Sleep 10000
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "http://176.16.1.16/ntn/inquiryLogin.action"
Wscript.Sleep 5000
objShell.SendKeys "RNEVILLE{TAB}2009{TAB}{ENTER}"
Wscript.Sleep 10000
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "NOTES.exe"
Wscript.Sleep 20000
objShell.SendKeys "pass{ENTER}"
Wscript.Sleep 5000
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "https://anywhere.telus.com/index.jsp"
Wscript.Sleep 5000
I have a small program (Visual Basic) that automatically restarts my
computer and launches various applications so that when I get into the
office, my computer is ready to go. However I have a problem with my
Internet Explorer windows that launch in the program. The size and position
of these windows are not what I want, so when I get to my computer, I have to
manually size and position with my mouse. Can someone advise me code that I
can add to my program to have these windows automatically sized and
positioned to what I want when they launch please? Thank you.
See my current code below. Cheers.
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "Notepad.exe"
Do Until Success = True
Success = objShell.AppActivate("Notepad")
Wscript.Sleep 1000
Loop
objShell.SendKeys "{F5}{ENTER}{ENTER}"
Wscript.Sleep 5000
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "http://165.252.48.3:7070/NTN/ntndol/input"
Wscript.Sleep 5000
objShell.SendKeys
"NBCCMISS{TAB}102182{TAB}RN{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{ENTER}"
Wscript.Sleep 5000
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "IEXPLORE.EXE"
Wscript.Sleep 5000
objShell.SendKeys "RNEVILLE{TAB}{ENTER}"
Wscript.Sleep 5000
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "IEXPLORE.EXE"
Wscript.Sleep 5000
objShell.SendKeys "RNEVILLE{TAB}{ENTER}"
Wscript.Sleep 5000
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "IEXPLORE.EXE"
Wscript.Sleep 5000
objShell.SendKeys "RNEVILLE{TAB}{ENTER}"
Wscript.Sleep 10000
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "IEXPLORE.EXE"
Wscript.Sleep 5000
objShell.SendKeys "RNEVILLE{TAB}{ENTER}"
Wscript.Sleep 10000
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "http://176.16.1.16/ntn/inquiryLogin.action"
Wscript.Sleep 5000
objShell.SendKeys "RNEVILLE{TAB}2009{TAB}{ENTER}"
Wscript.Sleep 10000
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "NOTES.exe"
Wscript.Sleep 20000
objShell.SendKeys "pass{ENTER}"
Wscript.Sleep 5000
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "https://anywhere.telus.com/index.jsp"
Wscript.Sleep 5000