gf100 Posted December 22, 2017 Share Posted December 22, 2017 (edited) Newbie. I am writing a script that requires me to reference the TO:, FROM:, BCC, SUBJECT, BODY of a new email that's being composed. I need to go directly to these location and work with them. Is there anyway to detect these in AUTOIT for the present gmail client screen without knowing its resolution and text size? Any help is greatly appreciated. Edited December 26, 2017 by gf100 Link to comment Share on other sites More sharing options...
Danp2 Posted December 22, 2017 Share Posted December 22, 2017 Yes, it should be possible. However, you haven't given us much information to go on. You should let us know which browser you intend the script to support. Also, a description of what the script is trying to accomplish. Are you just looking to blast out a bunch of emails or what? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
gf100 Posted December 23, 2017 Author Share Posted December 23, 2017 I'm using Firefox and gmail as my client side software. I usually email the members of our club twice a month. It's my habit to place the group consisting of the members into the bcc field of the email so as to shield their email address from the BOTs. This works fine except occasionally I make an error and stick them accidentally in the TO or CC fields which exposes their addresses. So wishing to automate this process I wrote a script to accomplish this using mouse co-ords to position the cursor over the appropriate fields I need to reference. This works fine except when the text size on the browser gets set to a different size, then the mouse co-ords do not correspond to the field locations anymore and the script fails. So it'd be real convenient to be able to reference the "fields" by some other means. HTH. The enclosed script file is started using a hotkey and just fills in the senders name in the TO field, the group's name in the bcc field, the subject in the subject field and ends. The send operation is handled manually by the user. HotKeys to Setup BCC for Forum.au3 Link to comment Share on other sites More sharing options...
gf100 Posted December 25, 2017 Author Share Posted December 25, 2017 This worked for me: Start Firefox with the Zoom set to apply only to text (View > Zoom > Zoom text only). Then in the script, issue a Zoom reset CTRL+0: Send ("^0"). Of course, when you're developing and working out the mouse co-ords make sure you started Firefox the same way. 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