header
header Register : : Login header
header
divider
menuleft
menuright
submenu
left

[August 25th, 2008] Check the home page regarding PowerShell related news from a brand new sponsor: Idera

broken web script
Last Post 10 Jun 2008 03:34 AM by marco.shaw. 1 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
jsteinUser is Offline
New Member
New Member
Posts:1
Avatar

--
06 Jun 2008 05:10 PM  

I created a web script so I can login to my bank and email myself when a transaction posts to the account.  The script creates an ie com object and then navigates to the web page.  I then fill the form by locating the different form inputs and assigning the proper values.  My script worked for a couple of months and then stopped working.  I have traced it to what I think is the culprit.  They changed the submit button to type=input.  Previously I had assigned a variable called $btn to that form input and I used $btn.click() to submit it.  When they changed the type, the change allowed them to recieve x and y position of where the image is clicked.  Since the script doesnt put the mouse over the image they must be getting back x=0 and y=0 and then rejecting based on that.  I need to change these to some values.  I looked at the object model for IE and I cant figure out how to do that.  I would appreciate any suggestions. 

marco.shawUser is Offline
Co-Community Director
Basic Member
Basic Member
Posts:195
Avatar

--
10 Jun 2008 03:34 AM  

I'm assuming you're keeping the IE window as hidden?  I don't see a way to do anything with the mouse either.  Now, if you leave the window hidden, you might be out of luck.  If you are showing the window, I'm thinking you might need to call another app like AutoIT to handle the mouse movement.

Marco

*Microsoft MVP - Windows PowerShell: http://www.microsoft.com/mvp
*PowerGadgets MVP: http://www.powergadgets.com/mvp
*Blog: http://marcoshaw.blogspot.com
You are not authorized to post a reply.

Active Forums 4.1
right
   
footer Sponsored by Quest Software • SAPIEN Technologies • ShellTools, LLC • Microsoft Windows Server 2008 footer
footer