
prgwkp
Members-
Posts
17 -
Joined
-
Last visited
Everything posted by prgwkp
-
Sorry. I would like to be able to send out a SMS Text message to a Verizon phone.
-
Is it possible to send a text message using AutoIT? I have my application sending out emails via SMTP but it would be nice to send out text messages.
-
I solved it.
-
Im glad he did update even after 2.5 years later, what he posted just solved my very same issue!
-
After looking at the error code 50 again in the Help files, its 5x, where x is the last command issues, so apparently its not opening the SMTP session. I know the SMTP info is correct, any thoughts on why it would not open it?
-
Does anyone see anything wrong with this? The email does not send and I get an error of "Mail failed with error code 50". From the Help guide, this seems to be a problem with the body. I have even tried removing the code for the body, still same error. #include <Inet.au3> Local $s_SmtpServer = "mailrelay.XXX.XXX" Local $s_FromName = "prgwkp" Local $s_FromAddress = "XXX@Server.com" Local $s_ToAddress = "XXXXX@XXX.com" Local $s_Subject = "Subject Test" Local $as_Body[2] $as_Body[0] = "Body Test" $as_Body[1] = "Second Line" Local $Response = _INetSmtpMail($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body) Local $err = @error If $Response = 1 Then MsgBox(0, "Success!", "Mail sent") Else MsgBox(0, "Error!", "Mail failed with error code " & $err) EndIf
-
All compiled examples are giving me the same cannot redeclare a constant error.
-
The How to is not that clear, there are several examples to possibly compile, which is the best to choose. After compile Im getting Error: Can not redeclare a constant.
-
The link that you both posted, I have read over the info but it is not that clear about what needs to be done. Do I need to rewrite my code to work as a a script? Or does the "example" script reach out and grab my app and run it as a service. Do I need the threaded example or non threaded?
-
Is it possible to convert an AutoIT .exe into a service? I have ran in command prompt... sc create "program.exe" start= auto binpath="C:\Program Location\program.exe" This has successfully created the Service, I have given the Service appropriate rights in RegEdit to run under the admin account. In the properties of the service i have tried running it on local account and tried multiple other accounts. Also tried allowing it to interact with Desktop. When I start the service, my app starts, but the progress bar gets 2/3 across and then my app stops and the service stops and I get an error of.... 1053: The Service did not respond to the start or control request in a timely fashion. Has anyone ever attempted this before? I need my application that I wrote to run whether someone is logged in or not. Any thoughts?
-
If..then..else...Do While problem
prgwkp replied to prgwkp's topic in AutoIt General Help and Support
Melba23, I apologize, first time ever posting, I will use the tags you mentioned. BrewManNH, that worked, thank you for your help! -
If..then..else...Do While problem
prgwkp replied to prgwkp's topic in AutoIt General Help and Support
Thanks, I agree BrewManNH, but that will not solve the problem I am having. -
If..then..else...Do While problem
prgwkp replied to prgwkp's topic in AutoIt General Help and Support
After seeing the console out, I now see that once it the arrays are empty it then goes into the IF statement and the first statement is true at that point and it goes and deletes all contents of both folders. This is because the the array is empty to it deletes all in the directory because it does not specify a file. I though by adding the line of code ... If $SecondaryArray[$z] Or $SourceLocationArray[$z] = "" Then MsgBox(0,"","Exit Loop") ExitLoop EndIf would resolve this, but it did not. Here is the full updated code, what can I do to say if there is a blank array variable in either array to exit loop? Global $SourceLocationArray[200] Global $SecondaryArray[200] $SecondaryArray[0] = "1.PDF" $SecondaryArray[1] = "2.PDF" $SecondaryArray[2] = "3.PDF" $SecondaryArray[3] = "4.PDF" $SecondaryArray[4] = "5.PDF" $SourceLocationArray[0] = "1.PDF" $SourceLocationArray[1] = "2.PDF" $SourceLocationArray[2] = "3.PDF" $SourceLocationArray[3] = "4.PDF" $SourceLocationArray[4] = "5.PDF" $SourceLocationArray[5] = "6.PDF" $z = 0 $Loop = 0 Do If $SecondaryArray[$z] Or $SourceLocationArray[$z] = "" Then MsgBox(0,"","Exit Loop") ExitLoop EndIf If $SecondaryArray[$z] = $SourceLocationArray[$z] Then MsgBox(0,"Source and Secondary","Will be deleted from both Source and destination " & $SecondaryArray[$z]) FileDelete("C:Documents and SettingsprgwkpDesktopArrayDestination" & $SecondaryArray[$z]) FileDelete("C:Documents and SettingsprgwkpDesktopArraySource" & $SecondaryArray[$z]) ;$z = $z + 1 Else MsgBox(0,"Secondary Only","Will only be deleted from Secondary") FileDelete("C:Documents and SettingsprgwkpDesktopArrayDestination" & $SecondaryArray[$z]) ;$z = $z + 1 EndIf $z = $z + 1 $Loop = $Loop + 1 Until $Loop = 200 -
If..then..else...Do While problem
prgwkp replied to prgwkp's topic in AutoIt General Help and Support
That should not make a difference. I went ahead and tested that to make sure though, same outcome. -
Can someone please tell me what is wrong with this loop? Once it hits the "Else" section and "EndIf", it loops back thru and it runs every command down the line, ignoring the IF statements. Should it not reset the IF statement once it loops back up to "Do"? If not, what is a better option? I need this to loop thru 200 hundred times and compare the arrays and follow the IF commands. . Global $SourceLocationArray[200] Global $SecondaryArray[200] $SecondaryArray[0] = "1.PDF" $SecondaryArray[1] = "2.PDF" $SecondaryArray[2] = "3.PDF" $SecondaryArray[3] = "4.PDF" $SecondaryArray[4] = "5.PDF" $SourceLocationArray[0] = "1.PDF" $SourceLocationArray[1] = "2.PDF" $SourceLocationArray[2] = "3.PDF" $SourceLocationArray[3] = "4.PDF" $SourceLocationArray[4] = "5.PDF" $SourceLocationArray[5] = "6.PDF" $z = 0 $Loop = 0 Do If $SecondaryArray[$z] = $SourceLocationArray[$z] Then ;MsgBox(0,"Source and Secondary","Will be deleted from both Source and destination " & $SecondaryArray[$z]) FileDelete("C:ArrayDestination" & $SecondaryArray[$z]) FileDelete("C:ArraySource" & $SecondaryArray[$z]) $z = $z + 1 Else ;MsgBox(0,"Secondary Only","Will only be deleted from Secondary") FileDelete("C:DesktopArrayDestination" & $SecondaryArray[$z]) $z = $z + 1 EndIf $Loop = $Loop + 1 Until $Loop = 200
-
Concatenate problem with Array variable
prgwkp replied to prgwkp's topic in AutoIt General Help and Support
Awesome, I changed it to "&" and now it works perfect! Thank you for your quick response and help! -
This may be the easiest question for any of you but for some reason I cannot figure out a way to make this work. I have two arrays grabbing file names from two different folders, once I am finished with the files I want to compare the two arrays and if each item in the array is the same, then I want those two files to be deleted from their respective folders from which the array was based off of. My arrays work fine, they both pull in the file names with no problem, and I can compare them. The problem is, the data is only the file name and not the full path location. So I figured I would just use the FileDelete() function to take care of this and concatenate the array variable string at the end and it would then have the full path to delete the file. Well the concatenation is not working. Is it even possible to do a concatenation here? Here is an example... Global $SourceLocationArray[2] Global $SecondaryArray[2] $SecondaryArray[0] = "11807_1.PDF" $SourceLocationArray[0] = "11807_1.PDF" $c = 0 If $SecondaryArray[$c] = $SourceLocationArray[$c] Then FileDelete("C:\SendTo\" + $SecondaryArray[$c]) ;<====== I want to concatenate this variable sting to the path EndIf If I replace the FileDelete() to this, FileDelete($SecondaryArray[$c]) and have the file in the same location as the script, then it works fine and deletes the file. But the script will not be ran from this location. This test just proved that I can pass a string variable array to the FileDelete() function.