Balmukundam Posted July 18, 2016 Share Posted July 18, 2016 Hello all, I'm Enjoying working in AutoIt ! Recently I get Done with one Assignment and moving towards to make another ! I'm Really Thankful to the team members of the AutoIT for there good suggestions time to time . Now I'm Just Start doing working in another Assignment and that is to " get notification Pop Up " when I get somebody mail in my inbox ! Please let me suggest something so I can Start with this . Thanks , Balmukundam Link to comment Share on other sites More sharing options...
Balmukundam Posted July 18, 2016 Author Share Posted July 18, 2016 As I went through with this code , It's showing one error that is Error getting Url Source .. Example.txt Link to comment Share on other sites More sharing options...
AutoBert Posted July 18, 2016 Share Posted July 18, 2016 (edited) You should use a pop3 udf for this, so test: https://www.autoitscript.com/wiki/User_Defined_Functions#Automation: Quote POP3 (by Apzo) - POP3 library for retrieving email messages. Not compatible with Gmail because it uses SSL.POP3 (by mLipok) - POP3 UDF According to the 1939 RFC, modified version with Quoted Printable decoder.POP3 SSL (by Fox2) - A POP3 library that's compatible with Gmail. It uses an external executable that must be supplied with your script. Edited July 18, 2016 by AutoBert Link to comment Share on other sites More sharing options...
water Posted July 18, 2016 Share Posted July 18, 2016 Which mail client do you run? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Balmukundam Posted July 18, 2016 Author Share Posted July 18, 2016 @Water ! SMTP ... Link to comment Share on other sites More sharing options...
water Posted July 18, 2016 Share Posted July 18, 2016 IIRC this issue has been discussed a few times on the forum. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Balmukundam Posted July 18, 2016 Author Share Posted July 18, 2016 Yes you're right I had looked up that discussion ! and got some solution ! Look in below-attached code I get one error in this function . can you please just have a look and let me know where i am wrong ... Thanks Func StringBetween($Str, $S, $E) MsgBox (0,"Krishna","Hii") Local $B = _StringBetween($Str, $S, $E) If @error Then Return SetError(1,0,0) Return SetError(0,0,$B[0]) EndFunc ;==>StringBetween aaaa Link to comment Share on other sites More sharing options...
water Posted July 18, 2016 Share Posted July 18, 2016 That simply means that delimiters $S and $E could not be found in $Str. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Balmukundam Posted July 18, 2016 Author Share Posted July 18, 2016 Hii, @water I had seen this code in depth and found the error ! but still I am having one confusion like i want this code to be display pop up when new mail comes in inbox But not getting exact idea how it would be possible ! can you please suggest me something . Note :- one more thing ! StringBetween function not working in this code don't know why ? Thanks MailNotification(Main) Link to comment Share on other sites More sharing options...
water Posted July 18, 2016 Share Posted July 18, 2016 I've never automated GMail. In Outlook an event is raised when a new mail arrives. Don't know how this works with POP3. Hopefully some more experienced users chime in My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Balmukundam Posted July 19, 2016 Author Share Posted July 19, 2016 Hello all, Guys Do you all have any idea how makes this to work ! as i tried a lot but can't let this happen Please help me out this problem . thanks in advance Link to comment Share on other sites More sharing options...
Balmukundam Posted July 19, 2016 Author Share Posted July 19, 2016 Hi , I am writing code for Displaying POP message when i get new mail in my box ! in coding in for loop i am getting one error "$Email[$i]" Saying Subscript used on non-accessible variable . Please just have a look on attached file Thanks MailNotification(Main) (2).au3 Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted July 19, 2016 Moderators Share Posted July 19, 2016 Your for loop states $i = 0 to $EmailCount - 1. Your script is telling you that $Email[$i] does not exist. So what have you done to troubleshoot this? You know the loop where the error is generated, put in some error checking to catch it. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted July 19, 2016 Moderators Share Posted July 19, 2016 And stick to one post! "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Balmukundam Posted July 22, 2016 Author Share Posted July 22, 2016 Finally I get this Done ! Thanks to you all ... 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