darkmaster071 Posted April 13, 2009 Share Posted April 13, 2009 I automated a website and i used some MouseClick's, for that i need to have IE window opened at all times or have it run in a virtual machine. I would very much like to have all of it in the background and hidden so i tried to convert clicks into _ie functions. However i dont understand how to work with commands like _IEFormGetObjByName and IEFormElementGetObjByName. I dont understand what do i have to put in form or element name place. Almost every website i tried so far does not have form names in html source so i cannot identify them. Any help would be greatly appreciated. Link to comment Share on other sites More sharing options...
MrMitchell Posted April 13, 2009 Share Posted April 13, 2009 (edited) It could be that the site doesn't allow you to view the source you want when you go to View --> Source. I had the same problem with a project I was working on. I had to have AutoIt go get the source for me. Then someone told me about DebugBar...awesome program lol. I will try to find the link for you, but someone will probably post it first.Edit: Hmmm it's www.debugbar.com lol Edited April 13, 2009 by MrMitchell Link to comment Share on other sites More sharing options...
exodius Posted April 13, 2009 Share Posted April 13, 2009 Step 1. Install DebugBar Step 2. See if it can show you names for what you're looking forStep 3. If you can't find form names, just get objects for the page elements directly using _IEGetObjByNameStep 4. If you still can't get it, post what you've tried along with a webpage that you're trying it against so we can see what you're doing and suggest a different way. Link to comment Share on other sites More sharing options...
darkmaster071 Posted April 13, 2009 Author Share Posted April 13, 2009 Ive installed DebugBar and yes it is a nice program, it gave me what first seemed like good results. But when i tryed to locate and write in that form name i got nothing. Then i tried _IEGetObjByName and it worked like a charm It gets the element directly. Saves me alot of trouble unlike the mouseclick. Thanks guys. Link to comment Share on other sites More sharing options...
darkmaster071 Posted April 13, 2009 Author Share Posted April 13, 2009 (edited) Sorry for the doublepost but ive got another problem. Ive came across a flash button. Is it possible to target flash with _IEGetObjByName? Because i again dont see no names or object IDs. Or is there any other way? Edited April 13, 2009 by darkmaster071 Link to comment Share on other sites More sharing options...
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