monte Posted February 20, 2008 Posted February 20, 2008 hello, I'm trying to create a single sign-on like script to automatically login to web pages, however, using info tool, I cannot get the username and passsword box info in order to "send" the login information to them. Any ideas?
Moderators SmOke_N Posted February 20, 2008 Moderators Posted February 20, 2008 hello, I'm trying to create a single sign-on like script to automatically login to web pages, however, using info tool, I cannot get the username and passsword box info in order to "send" the login information to them. Any ideas?Familiarize yourself with the IE* functions in the help file, and you'll find the task much easier. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
James Posted February 20, 2008 Posted February 20, 2008 _IE functions. The AU3Info tool only looks at Windows. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
monte Posted February 20, 2008 Author Posted February 20, 2008 actually I have, and in this particular web site's source there's no username or password _IEGetObjByName option. Any other ideas?
James Posted February 20, 2008 Posted February 20, 2008 Can we see the website please? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
monte Posted February 20, 2008 Author Posted February 20, 2008 sure: https://accounts.key.com/?sqkl=acctopsource:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Key Bank - Online Banking</title> <link rel="stylesheet" href="/ib2/css/kco2obi.css" type="text/css" media="all" /> </head> <body style="margin: 0;"> <iframe src="/ib2/Controller?requester=signon" width="100%" height="545" scrolling="no" frameborder="0"> </iframe> </body></html>
Moderators SmOke_N Posted February 20, 2008 Moderators Posted February 20, 2008 (edited) Edit: Had an issue with downloading htm extension and uploading it as a txt file, so you can just copy and paste this and save as .htm file:<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><title></title><link type="text/css" rel="stylesheet" id="webdeveloper-generated-content-stylesheet" href="Form.Information_files/generated_content.css"><style type="text/css">body, td, th { font-size: 12px !important; }</style><script type="text/javascript" src="Form.Information_files/dom.js" defer="defer"></script><script type="text/javascript" src="Form.Information_files/xpath.js" defer="defer"></script><script type="text/javascript" src="Form.Information_files/output_pivot.js" defer="defer"></script><script type="text/javascript" src="Form.Information_files/table_sort.js" defer="defer"></script></head><body><h1>Form Information - https://accounts.key.com/?sqkl=acctop</h1><ul id="tools"><li><a id="webdeveloper-generated-tool-collapse-all" href="#">Collapse All</a></li><li><a id="webdeveloper-generated-tool-expand-all" href="#">Expand All</a></li></ul><h2><a href="https://accounts.key.com/?sqkl=acctop">https://accounts.key.com/?sqkl=acctop</a></h2><h3><span class="expanded pivot"></span>0 forms</h3><h2><a href="https://accounts.key.com/ib2/Controller?requester=signon">https://accounts.key.com/ib2/Controller?requester=signon</a></h2><h3><span class="expanded pivot"></span>2 forms</h3><div class="output"><h3>Form</h3><table><tr><th>Id</th><th>Name</th><th>Method</th><th>Action</th></tr><tr><td>seek1</td><td>seek1</td><td>get</td><td>https://www.key.com/to/search+submit</td></tr></table><p></p><h3>Elements</h3><table class="sortable"><tr><th>Index</th><th>Id</th><th>Name</th><th>Type</th><th>Value</th><th>Label</th><th>Size</th><th>Maximum Length</th><th>State</th></tr><tr><td>0</td><td>gsrchinput</td><td>qt</td><td>text</td><td>Enter Keyword</td><td></td><td></td><td></td><td></td></tr><tr class="shaded"><td>1</td><td>gsrchbtn</td><td>submit</td><td>submit</td><td>Go</td><td></td><td></td><td></td><td></td></tr><tr><td>2</td><td></td><td>rq</td><td>text</td><td>0</td><td></td><td></td><td></td><td></td></tr><tr class="shaded"><td>3</td><td>col</td><td>col</td><td>text</td><td>prod</td><td></td><td></td><td></td><td></td></tr><tr><td>4</td><td></td><td>qp</td><td>text</td><td></td><td></td><td></td><td></td><td></td></tr><tr class="shaded"><td>5</td><td></td><td>qs</td><td>text</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>6</td><td></td><td>qc</td><td>text</td><td></td><td></td><td></td><td></td><td></td></tr><tr class="shaded"><td>7</td><td></td><td>ws</td><td>text</td><td>0</td><td></td><td></td><td></td><td></td></tr><tr><td>8</td><td></td><td>la</td><td>text</td><td></td><td></td><td></td><td></td><td></td></tr><tr class="shaded"><td>9</td><td></td><td>qm</td><td>text</td><td>0</td><td></td><td></td><td></td><td></td></tr><tr><td>10</td><td></td><td>st</td><td>text</td><td>1</td><td></td><td></td><td></td><td></td></tr><tr class="shaded"><td>11</td><td></td><td>nh</td><td>text</td><td>10</td><td></td><td></td><td></td><td></td></tr><tr><td>12</td><td></td><td>lk</td><td>text</td><td>1</td><td></td><td></td><td></td><td></td></tr><tr class="shaded"><td>13</td><td></td><td>rf</td><td>text</td><td>0</td><td></td><td></td><td></td><td></td></tr><tr><td>14</td><td></td><td>oq</td><td>text</td><td></td><td></td><td></td><td></td><td></td></tr><tr class="shaded"><td>15</td><td></td><td>rq</td><td>text</td><td>0</td><td></td><td></td><td></td><td></td></tr></table><hr><h3>Form</h3><table><tr><th>Id</th><th>Name</th><th>Method</th><th>Action</th></tr><tr><td></td><td>pageSignon</td><td>post</td><td>Controller</td></tr></table><p></p><h3>Elements</h3><table class="sortable"><tr><th>Index</th><th>Id</th><th>Name</th><th>Type</th><th>Value</th><th>Label</th><th>Size</th><th>Maximum Length</th><th>State</th></tr><tr><td>0</td><td></td><td>requester</td><td>text</td><td>login</td><td></td><td></td><td></td><td></td></tr><tr class="shaded"><td>1</td><td></td><td>0plm1qaz</td><td>text</td><td>1203535771591-2980304029779349960</td><td></td><td></td><td></td><td></td></tr><tr><td>2</td><td></td><td>jsenabled</td><td>text</td><td>Y</td><td></td><td></td><td></td><td></td></tr><tr class="shaded"><td>3</td><td></td><td>devices</td><td>text</td><td>null</td><td></td><td></td><td></td><td></td></tr><tr><td>4</td><td></td><td>flashstatus</td><td>text</td><td>true</td><td></td><td></td><td></td><td></td></tr><tr class="shaded"><td>5</td><td></td><td>sUserId</td><td>text</td><td></td><td></td><td>30</td><td></td><td></td></tr><tr><td>6</td><td></td><td>password</td><td>password</td><td></td><td></td><td>6</td><td>6</td><td></td></tr><tr class="shaded"><td>7</td><td>obibtn</td><td>btnSubmit</td><td>submit</td><td>Sign On</td><td></td><td></td><td></td><td></td></tr></table><hr></div></body></html> Edited February 20, 2008 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Moderators SmOke_N Posted February 20, 2008 Moderators Posted February 20, 2008 smok_n, what's this? Read my edit, I removed the attachment. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
ReFran Posted February 20, 2008 Posted February 20, 2008 Can you state the ID and password, so I can test it for you. br, reinhard
ReFran Posted February 20, 2008 Posted February 20, 2008 Ok,for the case you want to work it out by yourself:Username fieldname = sUserIdPassword fieldname = passwordSubmit btn name = btnSubmitPay attentention to the point that the fields are in a IFrame. So frame IE object you have to get first access to the IFrame object (Dale my correct me).Have a look at this discussion: http://www.autoitscript.com/forum/index.ph...amp;hl=ReinhardLoad down DebugBar (the address you will find the stated link).Best regards, ReinhardPS: Should I include a CashFlow calculation in my homebanking tool or would that be overdressed?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now