Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login

POZE MRRRR'S FORUM (VIEW ONLY)

Nu sunteti logat.
Nou pe simpatie:
OnutzaGirl pe Simpatie
Femeie
24 ani
Galati
cauta Barbat
24 - 51 ani
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides / [VBS] Open Internet Explorer and Login to Site Moderat de TRaP, TonyTzu
Autor
Mesaj Pagini: 1
TRaP
Moderator

Inregistrat: acum 6 ani
Postari: 739
First of all, go manually to your page in Internet Explorer, click View - Source and locate the ID of the fields for user name and password and the ID for the Login / Sign in button.

Then put the code below in notepad and save as VBS file.

Change the user name and password and login button IDs with the ones you located in the page source.



Set IE = CreateObject("InternetExplorer.Application")

IE.Visible = 1
IE.navigate "LINK TO WEBPAGE" ' put yours here

Do While (IE.Busy)
   WScript.Sleep 500
Loop

IE.Top = -180 ' I have dual monitors and wanted the window maximized on the 2nd monitor
IE.Left = -1920 ' I have dual monitors and wanted the window maximized on the 2nd monitor
IE.width = 1920 ' I have dual monitors and wanted the window maximized on the 2nd monitor
IE.height = 1080 ' I have dual monitors and wanted the window maximized on the 2nd monitor

' another option to maximize:
'Set shl = WScript.CreateObject("WScript.Shell")
'shl.SendKeys "% X"


Set Helem = IE.document.getElementByID("username") ' replace username with your ID
Helem.Value = "USER" ' change this to yours

Set Helem = IE.document.getElementByID("userpwd") ' replace userpwd with your ID
Helem.Value = "PASSWORD" ' change this to yours

Set Helem = IE.document.getElementByID("login_ok_button") ' replace login_ok_button with your ID
Helem.Click


pus acum 3 ani
   
Pagini: 1  

Mergi la