cm35 Posted August 16, 2007 Posted August 16, 2007 I have been pulling what little hair I have left out. I am trying to write a script to fill in the password to MS Outlook 2002. I recently bought a new machine that came loaded with Vista. Well low and behold Vista and Outlook '02 don't get along. So I am asking for anyone's help with this. As I said, I have been trying on my own to no avail. Any and all help will be greatly appreciated. Thank you, cm35
Bert Posted August 16, 2007 Posted August 16, 2007 Post your code, and we will see what we can do. Odds are you are simply not getting the window name right, or the control name. The Vollatran project My blog: http://www.vollysinterestingshit.com/
cm35 Posted August 17, 2007 Author Posted August 17, 2007 Post your code, and we will see what we can do. Odds are you are simply not getting the window name right, or the control name. Here is the code that both my brother and I came up with after doing some searching on the net and our own work. ;Start OutLookRun("C:\Program Files\Microsoft Office\Office10\OUTLOOK.EXE"); check library path of your OutLook ;Wait for Password windowWinWaitActive("Enter Network Password");Insert Password Change "xxxxx" by your passwordSend("293569713");Activate and send Enter keyWinActivate("Enter Network Password")send("{tab 2}")send("{enter}");Finished I get Outlook to open and begin but when the password window is filled in it is the user name not the password that Autoit is filling in. Where did we go wrong???
cm35 Posted August 20, 2007 Author Posted August 20, 2007 Let me ammend that last statement, it was late and I was tired. After running this script Autoit fills out the username box not the password box that it was supposed to fill out. Does anyone have any clue as to where I went wrong, and how can I correct it?Here is the code that both my brother and I came up with after doing some searching on the net and our own work. ;Start OutLookRun("C:\Program Files\Microsoft Office\Office10\OUTLOOK.EXE"); check library path of your OutLook ;Wait for Password windowWinWaitActive("Enter Network Password");Insert Password Change "xxxxx" by your passwordSend("293569713");Activate and send Enter keyWinActivate("Enter Network Password")send("{tab 2}")send("{enter}");Finished I get Outlook to open and begin but when the password window is filled in it is the user name not the password that Autoit is filling in. Where did we go wrong???
blitzkrg Posted August 21, 2007 Posted August 21, 2007 Let me ammend that last statement, it was late and I was tired. After running this script Autoit fills out the username box not the password box that it was supposed to fill out. Does anyone have any clue as to where I went wrong, and how can I correct it?i would get the x & y coords of the password boxdo a mouse move and left mouse click on that coord.then send the pw
autocomplex Posted August 21, 2007 Posted August 21, 2007 I have vista ... the compatability issues suck, but instead of Outlook 02, why not upgrade to 07'? Want Runescape Specific Scripts and Bots?Visit AutoIt Runescape Team (ARST) forum!
cm35 Posted August 22, 2007 Author Posted August 22, 2007 I have vista ... the compatability issues suck, but instead of Outlook 02, why not upgrade to 07'? I am trying to get by without having to put out for a new edition of Outlook if possible. I have to agree with you that the compatibility issues suck!
cm35 Posted August 22, 2007 Author Posted August 22, 2007 i would get the x & y coords of the password boxdo a mouse move and left mouse click on that coord.then send the pw I wil try what you suggested to see if I get better results. I assume that the coordinates have to do with the send("{tab 2}") line of code.
qazwsx Posted August 22, 2007 Posted August 22, 2007 Its best to use the send command twice rather than send("{tab 2}").
Bert Posted August 22, 2007 Posted August 22, 2007 You could use ctrlsend to send directly to the control. Also, what does the AutoIT window info tool report on the controls you are trying to send to? You should be able to ID the controls. Also you could use the macro recorder to get what you are doing, and have it make the script for you. The Vollatran project My blog: http://www.vollysinterestingshit.com/
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