Login Scripts Script

Discussions and Tech Support related to automating the iMacros Browser or Internet Explorer from any scripting and programming language, such as VBS (WSH), VBA, VB, Perl, Delphi, C# or C++.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
FIXTHISSHPP
Posts: 8
Joined: Sun Nov 06, 2011 12:48 am

Login Scripts Script

Post by FIXTHISSHPP » Sun Nov 06, 2011 9:24 pm

So I got another computer that I can get a working imacros from, and I now have a working script.

However, with the login am I able to save a list so the script logs into every account in that list, aand if so how do I incorperate it, as putting the login script on the last line woudnt allow it to function.
http://forum.iopus.com/viewtopic.php?f=2&t=13991

Number of days without being fixed: 2
MattBell7
Posts: 627
Joined: Thu Nov 26, 2009 11:07 am
Location: United Kingdom

Re: Login Scripts Script

Post by MattBell7 » Mon Nov 07, 2011 1:01 pm

you need to put more detail about what you're trying to do, how are you logging in, what are you logging in to, how many users are you doing it with, do you want to do anything using iMacros after you've logged in etc.
FIXTHISSHPP
Posts: 8
Joined: Sun Nov 06, 2011 12:48 am

Re: Login Scripts Script

Post by FIXTHISSHPP » Mon Nov 07, 2011 10:41 pm

you need to put more detail about what you're trying to do, how are you logging in, what are you logging in to, how many users are you doing it with, do you want to do anything using iMacros after you've logged in etc.

Trying to login, so the script can fix my repetitive tasks, then logout, login as a different user and do the same thing.

I'm hoping 100 logins, but instead of logging in manually isn't there a script that can store the data and login for me with all 100 of those?

Like I have this script:

VERSION BUILD=7300701 RECORDER=FX
TAB T=1
URL GOTO=http://www.google.com.au/#sclient=psy-a ... 50&bih=587
URL GOTO=www.dovogame.com
TAG POS=1 TYPE=A ATTR=TXT:Log<SP>In
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:form1 ATTR=ID:username CONTENT=*************.com
TAG POS=1 TYPE=BUTTON ATTR=TXT:LOGIN
TAG POS=1 TYPE=A ATTR=TXT:Play<SP>Game
TAG POS=3 TYPE=A ATTR=TXT:play<SP>game
TAG POS=1 TYPE=H4 ATTR=ID:mod2
TAG POS=2 TYPE=DIV ATTR=CLASS:jScrollPaneTrack
TAG POS=2 TYPE=DIV ATTR=CLASS:jScrollPaneTrack
TAG POS=2 TYPE=DIV ATTR=CLASS:jScrollPaneTrack
TAG POS=96 TYPE=SPAN ATTR=TXT:Enter
TAB T=2
FRAME F=0
TAG POS=2 TYPE=A ATTR=TXT:Annabelle's<SP>employment...
TAG POS=1 TYPE=IMG ATTR=SRC:http://img1.bto.dovogame.com/gamebto//i ... lt/sec.gif
TAG POS=1 TYPE=A ATTR=ID:sec3
TAG POS=1 TYPE=A ATTR=HREF:javascript:c.__OnSend('ajax_action.php?action=sec3&doaction=&UserId=0&CompanyId=0&EventSort=0&page=19','',c.__func_comm_list,'sec3')
TAG POS=1 TYPE=BUTTON ATTR=ID:button_sec_Read
TAG POS=1 TYPE=BUTTON ATTR=ID:okKey
TAG POS=1 TYPE=BUTTON ATTR=ID:okKey
TAG POS=1 TYPE=IMG ATTR=SRC:http://img1.bto.dovogame.com/gamebto//i ... t/cofc.gif
TAG POS=1 TYPE=BUTTON ATTR=TXT:Get<SP>Allowance
TAG POS=1 TYPE=BUTTON ATTR=ID:okKey
TAG POS=1 TYPE=IMG ATTR=SRC:http://img1.bto.dovogame.com/gamebto//i ... /thing.gif
TAG POS=1 TYPE=A ATTR=ID:thing2
TAG POS=1 TYPE=A ATTR=ID:thing2
TAG POS=1 TYPE=A ATTR=ID:firstShop109
TAG POS=1 TYPE=BUTTON ATTR=ID:upgrade
TAG POS=1 TYPE=BUTTON ATTR=ID:upgradeCmd
TAG POS=1 TYPE=A ATTR=ID:thing2
TAG POS=1 TYPE=DIV ATTR=ID:selectofAllShopSel
TAG POS=1 TYPE=LI ATTR=ID:4
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=NAME:shopform ATTR=NAME:chkallShopStore CONTENT=YES
TAG POS=1 TYPE=BUTTON ATTR=ID:purchase
TAG POS=1 TYPE=BUTTON ATTR=ID:systemGoods
TAG POS=1 TYPE=BUTTON ATTR=ID:purchaseBtn5
TAG POS=1 TYPE=BUTTON ATTR=ID:transportBtn3
TAG POS=1 TYPE=BUTTON ATTR=ID:okKey
TAG POS=1 TYPE=A ATTR=ID:thing
TAG POS=1 TYPE=BUTTON ATTR=ID:jobName10
TAG POS=3 TYPE=BUTTON ATTR=TXT:Execute

I was hopng to add a login thing where it would do this routine, but with 100 different users.
http://forum.iopus.com/viewtopic.php?f=2&t=13991

Number of days without being fixed: 2
MattBell7
Posts: 627
Joined: Thu Nov 26, 2009 11:07 am
Location: United Kingdom

Re: Login Scripts Script

Post by MattBell7 » Tue Nov 08, 2011 12:43 pm

FIXTHISSHPP
Posts: 8
Joined: Sun Nov 06, 2011 12:48 am

Re: Login Scripts Script

Post by FIXTHISSHPP » Tue Nov 08, 2011 10:22 pm

Dont think thats it, I need one like saves the logins on a notepad. and logs in using the listed logs.
http://forum.iopus.com/viewtopic.php?f=2&t=13991

Number of days without being fixed: 2
FIXTHISSHPP
Posts: 8
Joined: Sun Nov 06, 2011 12:48 am

Re: Login Scripts Script

Post by FIXTHISSHPP » Wed Nov 09, 2011 11:23 pm

Well I see the mods logged in and helped other threads.

Could anyone copy paste the script needed?
http://forum.iopus.com/viewtopic.php?f=2&t=13991

Number of days without being fixed: 2
MattBell7
Posts: 627
Joined: Thu Nov 26, 2009 11:07 am
Location: United Kingdom

Re: Login Scripts Script

Post by MattBell7 » Fri Nov 11, 2011 4:35 pm

so you want to read the user names and password out from a text file?

did you actually read the link i posted? thats has exactly what you need to do. you need to look at uploading from a csv.
FIXTHISSHPP
Posts: 8
Joined: Sun Nov 06, 2011 12:48 am

Re: Login Scripts Script

Post by FIXTHISSHPP » Fri Nov 11, 2011 9:54 pm

I did, Im just confused.

Because if I put this

open database
set rs = CreateObject("ADODB.Connection")
rs.Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" _
& mypath & "IIM-TEST-SUBMIT.MDB")

' use SQL to select information
sql = "select * from table1"
set rs = rs.Execute(sql)

' start iMacros
set iim1= CreateObject ("iMacros")
iret = iim1.iimInit
iret = iim1.iimDisplay("Submitting Data from MS ACCESS")

' loop through result dataset
do until rs.eof
'Set the variable
iret = iim1.iimSet("FNAME", rs.fields(0))
iret = iim1.iimSet("LNAME", rs.fields(1))
iret = iim1.iimSet("ADDRESS", rs.fields(2))
iret = iim1.iimSet("CITY", rs.fields(3))
iret = iim1.iimSet("ZIP", rs.fields(4))
iret = iim1.iimSet("STATE-ID", rs.fields(5))
iret = iim1.iimSet("COUNTRY-ID", rs.fields(6))
iret = iim1.iimSet("EMAIL", rs.fields(7))
'Run the macro
'Note: This is the SAME macro, as in the FILE-2-WEB-METHOD2.VBS example script!!!
iret = iim1.iimPlay("wsh-submit-2-web")
If iret < 0 Then
MsgBox iim1.iimGetLastError()
End If
rs.movenext
loop

iret = iim1.iimDisplay("Done!")
iret = iim1.iimExit
WScript.Quit(0)


Into this,

VERSION BUILD=7300701 RECORDER=FX
TAB T=1
URL GOTO=http://www.google.com.au/#sclient=psy-a ... 50&bih=587
URL GOTO=www.dovogame.com
TAG POS=1 TYPE=A ATTR=TXT:Log<SP>In
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:form1 ATTR=ID:username CONTENT=*************.com
TAG POS=1 TYPE=BUTTON ATTR=TXT:LOGIN
TAG POS=1 TYPE=A ATTR=TXT:Play<SP>Game
TAG POS=3 TYPE=A ATTR=TXT:play<SP>game
TAG POS=1 TYPE=H4 ATTR=ID:mod2
TAG POS=2 TYPE=DIV ATTR=CLASS:jScrollPaneTrack
TAG POS=2 TYPE=DIV ATTR=CLASS:jScrollPaneTrack
TAG POS=2 TYPE=DIV ATTR=CLASS:jScrollPaneTrack
TAG POS=96 TYPE=SPAN ATTR=TXT:Enter
TAB T=2
FRAME F=0
TAG POS=2 TYPE=A ATTR=TXT:Annabelle's<SP>employment...
TAG POS=1 TYPE=IMG ATTR=SRC:http://img1.bto.dovogame.com/gamebto//i ... lt/sec.gif
TAG POS=1 TYPE=A ATTR=ID:sec3
TAG POS=1 TYPE=A ATTR=HREF:javascript:c.__OnSend('ajax_action.php?action=sec3&doaction=&UserId=0&CompanyId=0&EventSort=0&page=19','',c.__func_comm_list,'sec3')
TAG POS=1 TYPE=BUTTON ATTR=ID:button_sec_Read
TAG POS=1 TYPE=BUTTON ATTR=ID:okKey
TAG POS=1 TYPE=BUTTON ATTR=ID:okKey
TAG POS=1 TYPE=IMG ATTR=SRC:http://img1.bto.dovogame.com/gamebto//i ... t/cofc.gif
TAG POS=1 TYPE=BUTTON ATTR=TXT:Get<SP>Allowance
TAG POS=1 TYPE=BUTTON ATTR=ID:okKey
TAG POS=1 TYPE=IMG ATTR=SRC:http://img1.bto.dovogame.com/gamebto//i ... /thing.gif
TAG POS=1 TYPE=A ATTR=ID:thing2
TAG POS=1 TYPE=A ATTR=ID:thing2
TAG POS=1 TYPE=A ATTR=ID:firstShop109
TAG POS=1 TYPE=BUTTON ATTR=ID:upgrade
TAG POS=1 TYPE=BUTTON ATTR=ID:upgradeCmd
TAG POS=1 TYPE=A ATTR=ID:thing2
TAG POS=1 TYPE=DIV ATTR=ID:selectofAllShopSel
TAG POS=1 TYPE=LI ATTR=ID:4
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=NAME:shopform ATTR=NAME:chkallShopStore CONTENT=YES
TAG POS=1 TYPE=BUTTON ATTR=ID:purchase
TAG POS=1 TYPE=BUTTON ATTR=ID:systemGoods
TAG POS=1 TYPE=BUTTON ATTR=ID:purchaseBtn5
TAG POS=1 TYPE=BUTTON ATTR=ID:transportBtn3
TAG POS=1 TYPE=BUTTON ATTR=ID:okKey
TAG POS=1 TYPE=A ATTR=ID:thing
TAG POS=1 TYPE=BUTTON ATTR=ID:jobName10
TAG POS=3 TYPE=BUTTON ATTR=TXT:Execute

It looks like this..

VERSION BUILD=7300701 RECORDER=FX
TAB T=1
URL GOTO=http://www.google.com.au/#sclient=psy-a ... 50&bih=587
URL GOTO=www.dovogame.com
TAG POS=1 TYPE=A ATTR=TXT:Log<SP>In
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:form1 ATTR=ID:username CONTENT=*************.com
TAG POS=1 TYPE=BUTTON ATTR=TXT:LOGIN
TAG POS=1 TYPE=A ATTR=TXT:Play<SP>Game
TAG POS=3 TYPE=A ATTR=TXT:play<SP>game
TAG POS=1 TYPE=H4 ATTR=ID:mod2
TAG POS=2 TYPE=DIV ATTR=CLASS:jScrollPaneTrack
TAG POS=2 TYPE=DIV ATTR=CLASS:jScrollPaneTrack
TAG POS=2 TYPE=DIV ATTR=CLASS:jScrollPaneTrack
TAG POS=96 TYPE=SPAN ATTR=TXT:Enter
TAB T=2
FRAME F=0
TAG POS=2 TYPE=A ATTR=TXT:Annabelle's<SP>employment...
TAG POS=1 TYPE=IMG ATTR=SRC:http://img1.bto.dovogame.com/gamebto//i ... lt/sec.gif
TAG POS=1 TYPE=A ATTR=ID:sec3
TAG POS=1 TYPE=A ATTR=HREF:javascript:c.__OnSend('ajax_action.php?action=sec3&doaction=&UserId=0&CompanyId=0&EventSort=0&page=19','',c.__func_comm_list,'sec3')
TAG POS=1 TYPE=BUTTON ATTR=ID:button_sec_Read
TAG POS=1 TYPE=BUTTON ATTR=ID:okKey
TAG POS=1 TYPE=BUTTON ATTR=ID:okKey
TAG POS=1 TYPE=IMG ATTR=SRC:http://img1.bto.dovogame.com/gamebto//i ... t/cofc.gif
TAG POS=1 TYPE=BUTTON ATTR=TXT:Get<SP>Allowance
TAG POS=1 TYPE=BUTTON ATTR=ID:okKey
TAG POS=1 TYPE=IMG ATTR=SRC:http://img1.bto.dovogame.com/gamebto//i ... /thing.gif
TAG POS=1 TYPE=A ATTR=ID:thing2
TAG POS=1 TYPE=A ATTR=ID:thing2
TAG POS=1 TYPE=A ATTR=ID:firstShop109
TAG POS=1 TYPE=BUTTON ATTR=ID:upgrade
TAG POS=1 TYPE=BUTTON ATTR=ID:upgradeCmd
TAG POS=1 TYPE=A ATTR=ID:thing2
TAG POS=1 TYPE=DIV ATTR=ID:selectofAllShopSel
TAG POS=1 TYPE=LI ATTR=ID:4
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=NAME:shopform ATTR=NAME:chkallShopStore CONTENT=YES
TAG POS=1 TYPE=BUTTON ATTR=ID:purchase
TAG POS=1 TYPE=BUTTON ATTR=ID:systemGoods
TAG POS=1 TYPE=BUTTON ATTR=ID:purchaseBtn5
TAG POS=1 TYPE=BUTTON ATTR=ID:transportBtn3
TAG POS=1 TYPE=BUTTON ATTR=ID:okKey
TAG POS=1 TYPE=A ATTR=ID:thing
TAG POS=1 TYPE=BUTTON ATTR=ID:jobName10
TAG POS=3 TYPE=BUTTON ATTR=TXT:Execute
open database
set rs = CreateObject("ADODB.Connection")
rs.Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" _
& mypath & "IIM-TEST-SUBMIT.MDB")

' use SQL to select information
sql = "select * from table1"
set rs = rs.Execute(sql)

' start iMacros
set iim1= CreateObject ("iMacros")
iret = iim1.iimInit
iret = iim1.iimDisplay("Submitting Data from MS ACCESS")

' loop through result dataset
do until rs.eof
'Set the variable
iret = iim1.iimSet("FNAME", rs.fields(0))
iret = iim1.iimSet("LNAME", rs.fields(1))
iret = iim1.iimSet("ADDRESS", rs.fields(2))
iret = iim1.iimSet("CITY", rs.fields(3))
iret = iim1.iimSet("ZIP", rs.fields(4))
iret = iim1.iimSet("STATE-ID", rs.fields(5))
iret = iim1.iimSet("COUNTRY-ID", rs.fields(6))
iret = iim1.iimSet("EMAIL", rs.fields(7))
'Run the macro
'Note: This is the SAME macro, as in the FILE-2-WEB-METHOD2.VBS example script!!!
iret = iim1.iimPlay("wsh-submit-2-web")
If iret < 0 Then
MsgBox iim1.iimGetLastError()
End If
rs.movenext
loop

iret = iim1.iimDisplay("Done!")
iret = iim1.iimExit
WScript.Quit(0)


Im not sure how exactly im meant to put them together.
Putting it on top of the other is a fail..
http://forum.iopus.com/viewtopic.php?f=2&t=13991

Number of days without being fixed: 2
darkhaseo
Posts: 1
Joined: Mon Nov 14, 2011 2:58 am

Re: Login Scripts Script

Post by darkhaseo » Mon Nov 14, 2011 3:12 am

hmm im reading all of this and i have to wonder why someone isnt helping fixthisshpp more, im surely more help could be done to get him/her what is being requested? i would help if i could, but it is outside my realm of knowledge, so someone please help him/her
Post Reply