Kjodiz Posted March 14, 2012 Share Posted March 14, 2012 I'm currently making a script to make work easier.Sometimes, clients don't have the time to talk there and then, so I have to call them up later.So I save the URL, with some info in word..But every time I open the URL, I have to enter username and password.Every client has his/her own number, (for example http://some/random/client.aspx?order=38292838494)So i want it to enter my username and password when the window pops up.I'm thinking something likeIf URL="http://some/random/client.aspx?order=*" then Send ("username") Send ("{TAB}" Send ("password") Send ("{ENTER}")And yes, I know this code is as far from correct as you can get, but you know what i mean..Help? Link to comment Share on other sites More sharing options...
James Posted March 14, 2012 Share Posted March 14, 2012 I suggest looking at the IE UDF which enables you to fill out and submit forms. This would be ideal for it Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Kjodiz Posted March 14, 2012 Author Share Posted March 14, 2012 But my script would work? (thinking about the * at the end of the url) Is that enough for all the numbers? Link to comment Share on other sites More sharing options...
Kjodiz Posted March 15, 2012 Author Share Posted March 15, 2012 New problem! How can i check the current url? I've tried countless ways of the IE UDF(?), but no luck.. Link to comment Share on other sites More sharing options...
JohnOne Posted March 15, 2012 Share Posted March 15, 2012 Show your latest attempt. Will make it easier for someone to help. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Kjodiz Posted March 15, 2012 Author Share Posted March 15, 2012 I don't have the example here, as I seem to have stored it on my computer instead of the flashdrive. But I'm thinking about just doing it the easy way, and do a WinWaitActive. I noticed that even thou the URL is different, the name of the window is the same. Link to comment Share on other sites More sharing options...
James Posted March 15, 2012 Share Posted March 15, 2012 If you're using the IE UDF to login etc, then look at _IEPropertyGet which allows you to get the "locationurl" property. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Kjodiz Posted March 15, 2012 Author Share Posted March 15, 2012 I'll see what I can find out Problem is, i'm using a version of Autoit I installed on my flash drive, so I can't access the help file for some reason. And I haven't found any good tutorials for it. Link to comment Share on other sites More sharing options...
James Posted March 15, 2012 Share Posted March 15, 2012 Problem is, i'm using a version of Autoit I installed on my flash drive, so I can't access the help file for some reason.Open it directly then? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Kjodiz Posted March 15, 2012 Author Share Posted March 15, 2012 My last comment never happened... -.- Thanks James :-) Link to comment Share on other sites More sharing options...
somdcomputerguy Posted March 15, 2012 Share Posted March 15, 2012 There are links to the online docs (the wiki too) in my sig. This may help sometimes. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. 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