
Donace
Active Members-
Posts
27 -
Joined
-
Last visited
Profile Information
-
WWW
http://thenexus.tk
Donace's Achievements

Seeker (1/7)
0
Reputation
-
ah coolio ... My knowledge in that area is limited also...ill go back in hiding
-
i'm an optimisation freak....you mention a memory lag....is that just in the coding ?
-
Very sweet man; I've been away from the forums for a while due to academia; though am glad to see such great work is going on; will reactivate my WoW account to let this bot rip.
-
XProTec.au3 = automated Protect and get *Paid*
Donace replied to Valuater's topic in AutoIt Example Scripts
just a small bump any fix i still cant figure it out. Cheers -
clearing temp files and cache etc
Donace replied to Donace's topic in AutoIt General Help and Support
thanks yea i actually found that UDF; thanks for that; -
XProTec.au3 = automated Protect and get *Paid*
Donace replied to Valuater's topic in AutoIt Example Scripts
odd works fine for me; i just edited out my username/pass and email adds here is the one i used: Thanks again #Include<file.au3> Global $oMyError = ObjEvent("AutoIt.Error", "MyErrFunc") ;################################## ; Include ;################################## #Include<file.au3> ;################################## ; Variables ;################################## $s_SmtpServer = "smtp.gmail.com" ; address for the smtp-server to use - REQUIRED $s_FromName = "Test" ; name from who the email was sent $s_FromAddress = "email@googlemail.com"; address from where the mail should come $s_ToAddress = "email@hotmail.co.uk"; destination address of the email - REQUIRED $s_Subject = "Test" ; subject from the email - can be anything you want it to be $as_Body = "This is a test email" ; the messagebody from the mail - can be left blank but then you get a blank mail $s_AttachFiles = "" ; the file you want to attach- leave blank if not needed $s_CcAddress = "" ; address for cc - leave blank if not needed $s_BccAddress = "" ; address for bcc - leave blank if not needed $s_Username = "username" ; username for the account used from where the mail gets sent - Optional (Needed for eg GMail) $s_Password = "password" ; password for the account used from where the mail gets sent - Optional (Needed for eg GMail) ;$IPPort = 25 ; port used for sending the mail ;$ssl = 0 ; enables/disables secure socket layer sending - put to 1 if using httpS $IPPort=465 ; GMAIL port used for sending the mail $ssl=1 ; GMAILenables/disables secure socket layer sending - put to 1 if using httpS ;################################## ; Script ;################################## Global $oMyRet[2] Global $oMyError = ObjEvent("AutoIt.Error", "MyErrFunc") $rc = _INetSmtpMailCom($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body, $s_AttachFiles, $s_CcAddress, $s_BccAddress, $s_Username, $s_Password, $IPPort, $ssl) If @error Then MsgBox(0, "Error sending message", "Error code:" & @error & " Rc:" & $rc) EndIf ; Func _INetSmtpMailCom($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject = "", $as_Body = "", $s_AttachFiles = "", $s_CcAddress = "", $s_BccAddress = "", $s_Username = "", $s_Password = "",$IPPort=25, $ssl=0) $objEmail = ObjCreate("CDO.Message") $objEmail.From = '"' & $s_FromName & '" <' & $s_FromAddress & '>' $objEmail.To = $s_ToAddress Local $i_Error = 0 Local $i_Error_desciption = "" If $s_CcAddress <> "" Then $objEmail.Cc = $s_CcAddress If $s_BccAddress <> "" Then $objEmail.Bcc = $s_BccAddress $objEmail.Subject = $s_Subject If StringInStr($as_Body,"<") and StringInStr($as_Body,">") Then $objEmail.HTMLBody = $as_Body Else $objEmail.Textbody = $as_Body & @CRLF EndIf If $s_AttachFiles <> "" Then Local $S_Files2Attach = StringSplit($s_AttachFiles, ";") For $x = 1 To $S_Files2Attach[0] $S_Files2Attach[$x] = _PathFull ($S_Files2Attach[$x]) If FileExists($S_Files2Attach[$x]) Then $objEmail.AddAttachment ($S_Files2Attach[$x]) Else $i_Error_desciption = $i_Error_desciption & @lf & 'File not found to attach: ' & $S_Files2Attach[$x] SetError(1) return 0 EndIf Next EndIf $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = $s_SmtpServer $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = $IPPort ;Authenticated SMTP If $s_Username <> "" Then $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = $s_Username $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = $s_Password EndIf If $Ssl Then $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True EndIf ;Update settings $objEmail.Configuration.Fields.Update ; Sent the Message $objEmail.Send if @error then SetError(2) return $oMyRet[1] EndIf EndFunc;==>_INetSmtpMailCom ; ; ; Com Error Handler Func MyErrFunc() $HexNumber = Hex($oMyError.number, 8) $oMyRet[0] = $HexNumber $oMyRet[1] = StringStripWS($oMyError.description,3) ConsoleWrite("### COM Error ! Number: " & $HexNumber & " ScriptLine: " & $oMyError.scriptline & " Description:" & $oMyRet[1] & @LF) SetError(1); something to check for when this function returns Return EndFunc;==>MyErrFunc -
woops double post; yes i get a terminal error message if it can not find the colour specified; regarding second point; Firefox is a requirement; mainly now because I have based alot of the functions around it; and i can not use winwait function because the pages are dynamic and therefore the pages names are also dynamic; so unless there is a way to find out the title I cannot think of another way. re: winwait for 404 / page not found; i only want them to come into play if that page title appears
-
basically I am mucking about with the pixel search method and have written the following: $coord = PixelSearch ( $left, $top, $right, $bottom, 0x000000)) If Not @error Then MsgBox(0, "X and Y are:", $coord[0] & "," & $coord[1]) Else Sleep(1000) Send ("{ENTER}") EndIf the problem is if an error does occur it does not seem to pressing 'enter'; so is there anyway to supress it or something? thanks. and a second question ill tag on is how can you see if a page is laoded without winwait ive tried the code below and but it does not seem to loop; ideally i want it to send a site; run it through here to see if its loaded and then carry on. ;$loaded = 15460567 ;$loading1 = 11074943 ;$loading2 = 16382457 ;$var = PixelGetColor( 945 , 725 );checks the loading bar ;$load=0 ;Func _PageLoadcheck() ;If WinActive("404 Not Found - Mozilla Firefox","") Then ;Send("{F5}") ;Sleep(Random($SiteWait, $MaxSiteWait, 1)) ;ElseIf WinWaitActive("Page Load Error - Mozilla Firefox","") Then ;Send("{F5}") ;Sleep(Random($MinSiteWait, $MaxSiteWait, 1)) ;ElseIf $var = $loaded Then ;$load=1 ;;EndIf ;EndFunc
-
XProTec.au3 = automated Protect and get *Paid*
Donace replied to Valuater's topic in AutoIt Example Scripts
so a simple copy and paste will solve it?... what about the validation code etc required for the program? Cheers [EDIT]I tired tweaking it and replacing parts from the working mailer into xprotect, but it just kept on throwing errors at me; any help solving the matter appreciated as always. Donace -
XProTec.au3 = automated Protect and get *Paid*
Donace replied to Valuater's topic in AutoIt Example Scripts
@ Valuater the standalone script for emailing works fine; for gmail i tried changing the port but it still would not work; it would hang; your insight is appreciated. Donace -
Smtp Mailer That Supports Html And Attachments.
Donace replied to Jos's topic in AutoIt Example Scripts
what your not that good yet well i entered the following and it worked fine; i then tried changing the port in valuators script from 25 to 465 but it just 'hung' and then gave the error; so im assuming its to do with valuators script; so i'll move this to his thread...thanks again #Include<file.au3> Global $oMyError = ObjEvent("AutoIt.Error", "MyErrFunc") ;################################## ; Include ;################################## #Include<file.au3> ;################################## ; Variables ;################################## $s_SmtpServer = "smtp.gmail.com" ; address for the smtp-server to use - REQUIRED $s_FromName = "Test" ; name from who the email was sent $s_FromAddress = "email@googlemail.com"; address from where the mail should come $s_ToAddress = "email@hotmail.co.uk" ; destination address of the email - REQUIRED $s_Subject = "Test" ; subject from the email - can be anything you want it to be $as_Body = "This is a test email" ; the messagebody from the mail - can be left blank but then you get a blank mail $s_AttachFiles = "" ; the file you want to attach- leave blank if not needed $s_CcAddress = "" ; address for cc - leave blank if not needed $s_BccAddress = "" ; address for bcc - leave blank if not needed $s_Username = "username" ; username for the account used from where the mail gets sent - Optional (Needed for eg GMail) $s_Password = "password" ; password for the account used from where the mail gets sent - Optional (Needed for eg GMail) ;$IPPort = 25 ; port used for sending the mail ;$ssl = 0 ; enables/disables secure socket layer sending - put to 1 if using httpS $IPPort=465 ; GMAIL port used for sending the mail $ssl=1 ; GMAILenables/disables secure socket layer sending - put to 1 if using httpS ;################################## ; Script ;################################## Global $oMyRet[2] Global $oMyError = ObjEvent("AutoIt.Error", "MyErrFunc") $rc = _INetSmtpMailCom($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body, $s_AttachFiles, $s_CcAddress, $s_BccAddress, $s_Username, $s_Password, $IPPort, $ssl) If @error Then MsgBox(0, "Error sending message", "Error code:" & @error & " Rc:" & $rc) EndIf ; Func _INetSmtpMailCom($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject = "", $as_Body = "", $s_AttachFiles = "", $s_CcAddress = "", $s_BccAddress = "", $s_Username = "", $s_Password = "",$IPPort=25, $ssl=0) $objEmail = ObjCreate("CDO.Message") $objEmail.From = '"' & $s_FromName & '" <' & $s_FromAddress & '>' $objEmail.To = $s_ToAddress Local $i_Error = 0 Local $i_Error_desciption = "" If $s_CcAddress <> "" Then $objEmail.Cc = $s_CcAddress If $s_BccAddress <> "" Then $objEmail.Bcc = $s_BccAddress $objEmail.Subject = $s_Subject If StringInStr($as_Body,"<") and StringInStr($as_Body,">") Then $objEmail.HTMLBody = $as_Body Else $objEmail.Textbody = $as_Body & @CRLF EndIf If $s_AttachFiles <> "" Then Local $S_Files2Attach = StringSplit($s_AttachFiles, ";") For $x = 1 To $S_Files2Attach[0] $S_Files2Attach[$x] = _PathFull ($S_Files2Attach[$x]) If FileExists($S_Files2Attach[$x]) Then $objEmail.AddAttachment ($S_Files2Attach[$x]) Else $i_Error_desciption = $i_Error_desciption & @lf & 'File not found to attach: ' & $S_Files2Attach[$x] SetError(1) return 0 EndIf Next EndIf $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = $s_SmtpServer $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = $IPPort ;Authenticated SMTP If $s_Username <> "" Then $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = $s_Username $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = $s_Password EndIf If $Ssl Then $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True EndIf ;Update settings $objEmail.Configuration.Fields.Update ; Sent the Message $objEmail.Send if @error then SetError(2) return $oMyRet[1] EndIf EndFunc;==>_INetSmtpMailCom ; ; ; Com Error Handler Func MyErrFunc() $HexNumber = Hex($oMyError.number, 8) $oMyRet[0] = $HexNumber $oMyRet[1] = StringStripWS($oMyError.description,3) ConsoleWrite("### COM Error ! Number: " & $HexNumber & " ScriptLine: " & $oMyError.scriptline & " Description:" & $oMyRet[1] & @LF) SetError(1); something to check for when this function returns Return EndFunc;==>MyErrFunc -
Smtp Mailer That Supports Html And Attachments.
Donace replied to Jos's topic in AutoIt Example Scripts
After adding the portion mentioned above after email submission i get Line-1: Error Variable must be of type object -
Smtp Mailer That Supports Html And Attachments.
Donace replied to Jos's topic in AutoIt Example Scripts
i posted here because valuator said to I dug into the udf; but I have...3 days experience with autoit was was confused; ill look into it a bit more -
Smtp Mailer That Supports Html And Attachments.
Donace replied to Jos's topic in AutoIt Example Scripts
hey JOS was using xprotec; and was getting this error: 'This Program has been interupted by a Fatal COM Error" in the .au3 this is what i have changed Global $smtpserver = "smtp.googlemail.com" Global $sendusername = "username" Global $sendpassword = "mypass" Any help appreciated -
XProTec.au3 = automated Protect and get *Paid*
Donace replied to Valuater's topic in AutoIt Example Scripts
read through that; cant see the problem; Cheers