-
Posts
46 -
Joined
-
Last visited
DOTCOMmunications's Achievements

Seeker (1/7)
0
Reputation
-
OutlookEX UDF - Help & Support (III)
DOTCOMmunications replied to water's topic in AutoIt General Help and Support
Hi We have an exchange 2010 server configured as our only accounts in Outlook but have access to a shared mailbox and have send permission from that mailbox as well, how would we go about creating an e-mail from that address? e.g. adam@dot-communications is my main address but want to send from shared mailbox info@dot-communications instead Thanks in advance Adam- 817 replies
-
Hi Hopefully these have retained the formatting since i had to edit them to remove user/confidential details since they are e-mails from customers. Hope they help TestSingle.txt is single newline spaced file TestTripple.txt is triple newline spaced file Obvious Outlook usually does a relatively good job at removing these but because the e-mails are being accessed through MAPI it doesn't do that process. TestTriple.txt TestSingle.txt
-
Hi both, Thanks for your quick replies. Unfortunately none of them achieved what i was looking for so perhaps i didnt explain myself that well. With the first one (from mLipok) this removes all the newlines from the single line file but does correctly process the multiline file. With the one from mikell, when i run this against both strings it actually adds extra line spaces to the single line sample and doesn't appear to change the multi-line sample. When i removed one of the 2 @CRLF's it then produced the same result as the one from mLipok. Basically i am wanting those with only single newline spacing to remain untouched and keep that single newline spacing. Those with multiple new line spacing i am wanting to convert to single newline spacing. The only other way i can think of is a button on the GUI to have the user specify the type but i was hoping to automate it somehow but i dont know that much about regular expressions. Thanks for your help so far
-
Hi all I am looking for a way to process strings with single and/or multiple new lines in them, some of the strings have only single line spacing e.g. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas gravida nisi augue, vitae aliquet augue suscipit nec. Vivamus placerat lacinia tellus, ac laoreet ante vehicula nec. Praesent eleifend dapibus accumsan. Aenean dictum felis a tristique pretium. Morbi eget placerat ex. Phasellus purus ligula, malesuada a sapien vitae, mattis bibendum eros. Nullam elementum vehicula tellus, nec egestas magna tempus nec. Aenean ultricies lacinia mollis. Integer euismod felis nec nisl vestibulum, nec tincidunt lorem pellentesque. Vivamus auctor mauris bibendum mattis euismod. Quisque maximus tristique nulla, in tempor nunc euismod vestibulum. Mauris accumsan id ligula quis consectetur. Donec aliquet, nunc a fermentum convallis, ipsum elit semper libero, at cursus turpis quam ut velit. Nam in nibh sed erat sodales gravida. Praesent fermentum nulla ut viverra tristique. Suspendisse in mauris mollis, suscipit enim sit amet, faucibus lorem. Vivamus erat ante, accumsan sed leo et, viverra fringilla sem. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nunc ac ullamcorper orci. Nam accumsan orci quis lacus tempor, at gravida neque consequat. Morbi nulla ex, eleifend sit amet dictum ut, ultricies at massa. Pellentesque in posuere sapien. Phasellus nec consectetur ligula, eu sagittis odio. Suspendisse bibendum, metus et sollicitudin aliquet, neque libero efficitur ante, non condimentum nulla ipsum vitae metus. Proin at viverra massa, id porta augue. Ut maximus viverra metus eu accumsan. Phasellus et rutrum tortor. Etiam facilisis dui at leo porta, elementum accumsan nibh fermentum. Maecenas ultricies eget neque ac scelerisque. Donec ac mauris et ex suscipit cursus. In a eros in nisl consequat placerat quis eu tortor. Vestibulum justo justo, sollicitudin id ligula sed, euismod cursus quam. Integer varius sapien a nulla faucibus ornare. Morbi bibendum, nisl in placerat dapibus, est massa vehicula mi, nec ultrices mauris odio eu augue. Proin a finibus nibh. Ut pharetra velit at ligula sodales, sagittis accumsan sapien molestie. Whereas some have double or more line spacing e.g. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas gravida nisi augue, vitae aliquet augue suscipit nec. Vivamus placerat lacinia tellus, ac laoreet ante vehicula nec. Praesent eleifend dapibus accumsan. Aenean dictum felis a tristique pretium. Morbi eget placerat ex. Phasellus purus ligula, malesuada a sapien vitae, mattis bibendum eros. Nullam elementum vehicula tellus, nec egestas magna tempus nec. Aenean ultricies lacinia mollis. Integer euismod felis nec nisl vestibulum, nec tincidunt lorem pellentesque. Vivamus auctor mauris bibendum mattis euismod. Quisque maximus tristique nulla, in tempor nunc euismod vestibulum. Mauris accumsan id ligula quis consectetur. Donec aliquet, nunc a fermentum convallis, ipsum elit semper libero, at cursus turpis quam ut velit. Nam in nibh sed erat sodales gravida. Praesent fermentum nulla ut viverra tristique. Suspendisse in mauris mollis, suscipit enim sit amet, faucibus lorem. Vivamus erat ante, accumsan sed leo et, viverra fringilla sem. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nunc ac ullamcorper orci. Nam accumsan orci quis lacus tempor, at gravida neque consequat. Morbi nulla ex, eleifend sit amet dictum ut, ultricies at massa. Pellentesque in posuere sapien. Phasellus nec consectetur ligula, eu sagittis odio. Suspendisse bibendum, metus et sollicitudin aliquet, neque libero efficitur ante, non condimentum nulla ipsum vitae metus. Proin at viverra massa, id porta augue. Ut maximus viverra metus eu accumsan. Phasellus et rutrum tortor. Etiam facilisis dui at leo porta, elementum accumsan nibh fermentum. Maecenas ultricies eget neque ac scelerisque. Donec ac mauris et ex suscipit cursus. In a eros in nisl consequat placerat quis eu tortor. Vestibulum justo justo, sollicitudin id ligula sed, euismod cursus quam. Integer varius sapien a nulla faucibus ornare. Morbi bibendum, nisl in placerat dapibus, est massa vehicula mi, nec ultrices mauris odio eu augue. Proin a finibus nibh. Ut pharetra velit at ligula sodales, sagittis accumsan sapien molestie. Unfortunately the lines that are blank appear to have spaces or other characters on them so the regular expressions i have been trying so far dont appear to be working all that well. #include <Array.au3> $string = FileRead("TestSingle.txt") ; Top example text $string2 = FileRead("TestTriple.txt") ; Bottom example text MsgBox(0, "", $string) MsgBox(0, "", $string2) $var = StringRegExp($string, "(?s)\r\n(.+?)\r\n(.+?)\r\n(.+?)", $STR_REGEXPARRAYGLOBALFULLMATCH) If @error Then ConsoleWrite("Error: " & @error) EndIf $var2 = StringRegExp($string2, "(?s)\r\n(.+?)\r\n(.+?)\r\n(.+?)", $STR_REGEXPARRAYGLOBALFULLMATCH) If @error Then ConsoleWrite("Error: " & @error) EndIf _ArrayDisplay($var, "VAR 1") _ArrayDisplay($var2, "VAR 2") Both of the arrays are returning multiple matches on my text strings whereas i am trying to get to a point where i can either replace all the multiple new lines with a single new line whilst leaving the existing single new lines in tact or to differentiate between the 2 somehow and use the StringStripWS(flag of 7) function to remove them which works fine on the multiple new lines but squashes everything together on the single new lines Any help is much appreciated P.S. The strings originate from the plain text body of e-mails if that makes any difference but i have that part working okay
-
Hi all Not sure if this any help to anyone but i modified the _AutoItErrorTrap.au3 file to support sending reports through Zapier to my e-mail address. To do this though i removed the memory, IO and OS details from the report so it was just Module, Environment and the Error details. The code probably isnt perfect but it seems to work to send them: $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") $oHTTP.Open("POST", "WEB HOOK URL FROM ZAPIER HERE", False) $oHTTPSub = _GUICtrlEdit_GetText($hAET_SND_EDIT1) $oHTTPBod = _GUICtrlEdit_GetText($hAET_SND_EDIT2) $oHTTP.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded") $oHTTP.Send('Sub=' & $oHTTPSub & Chr(38) & 'Bod=' & $oHTTPBod) $oReceived = $oHTTP.ResponseText $oStatusCode = $oHTTP.Status If $oStatusCode == 200 Then ; Message sent just output the response Sleep(1000) MsgBox(262208, "Report Sent", "Your bug report has been sent to the developer") Else ; Error MsgBox(0, "", "Error sending message") EndIf However i am having some trouble with compiling my program with this error trapping added to it. When i tell the program to compile from Scite it starts to go through the UDF includes i have and gets to resources.au3 (in my case) and then just hangs for a very long time there before i eventually cancel it. Should i be running the ShowOriginalLine.exe (from the download) on the obfuscated source or the original source? If it can be either then what effect would that have to line numbers etc? Also is there any way to see what is causing it to slow/hang on that file? Thanks Adam ** Update ** Managed to get this working again, think the problem was caused by the resources.au3 file in combination with the AutoItErrorTrap.au3 file as resources.au3 has some constants set manually in its file whereas errortrap.au3 calls the APIConstants.au3 file so i was getting multiple declare call problems. I commented out the ones in resources.au3 and it compiles if i turn off warnings in AU3Check (getting possibly used before declaration calls now, guessing i just need to call the errortrap.au3 before the resources.au3 file to solve that?) It is having problems reading a couple of my own function files in though, getting "Error reading file to Array! - Error number 2" for 2 of the files out of 6 ** Update 2 ** Actually i think the error is because those files are both empty place holder files at the moment so there is nothing to read for them. Also commenting out the constants in resources.au3 and moving the errortrap.au3 before it seems to have solved the problem with the used before declaration calls
-
I tend to use the AutoIT Window Info tool that comes with AutoIT to do this, it is on the control tab once you drag the target over the required control, not sure if there is any other way though
-
Hi You should be able to call the following command but not sure how well it will work in AutoIT: rundll32.exe user32.dll,LockWorkStation Hope that helps Adam
-
Hi Jos, Thanks for the quick reply and your suggestions, maybe it would help if i explain the reason for not running EXE files. I recently purchased a Surface RT tablet and i have found that someone was able to re-compile Scite to run under ARM instruction set (yes i know that AutoIT tools wont) so i was interested in using this to work on AutoIT code when away from the office with a view to editing code so that i could incorporate the changes once back in the office. I will give it a go using the config files from the zip unless you can suggest a better solution now you know the reason for the request? Thanks again Adam
-
Can't import REG file - Windows 7
DOTCOMmunications replied to supraspecies's topic in AutoIt General Help and Support
I had a quick look at the key in question on my Windows 7 Ultimate machine and the permissions are set that "Administrators" group can query and set the value but not delete or a few other things, im not sure exactly how regedit works when importing/modifying existing data and whether it would go about removing the old key in order to create a new key (if it does then the permissions on that key section would explain the block there). It also looks as though there are no permissions to create a subkey in that area if that is relevant? To check permissions i suppose you would have to take ownership of the key and add the Administrator permissions as Full Control (or tick the permissions previously not granted) unless there is anyway to run the program under the TrustedInstaller user since it seems to be the only one with permissions to fully control that area -
Help on password-protecting a script
DOTCOMmunications replied to allSystemsGo's topic in AutoIt General Help and Support
Glad you got it working now, it might of been the CRLF at the end of the password in the encrypted file that was preventing it from verifying, you could of stripped that and whitespace out of both strings to make sure (just guessing that was the cause as i have had this happen to me when comparing strings before) -
Hi I have a copy of Scite that i use for coding in a few other languages and would like to add AutoIT to it, but it looks from the download section on this site that the only way to do so would be to run the provided executable file? Is there anyway to configure Scite to do the syntax highlighting and auto-completion without running that executable file? Thanks in advance Adam
-
Help on password-protecting a script
DOTCOMmunications replied to allSystemsGo's topic in AutoIt General Help and Support
Maybe it is just me but it looks like you are just returning true or false for the password and then not acting on that information to either end the script or continue its execution. You might want to have it return something that you can then check with an If..Else.. statement to then either close the script with a message box or continue it (the code below is untested and based simply on your code) #include ; Set to false so even if box is cancelled will return as password incorrect Global $sReturn = "False" $sInput = InputBox(@ScriptName, "Enter your password...") _AutoMD5_Data_Decrypt($sInput) If $sReturn = "False" Then MsgBox(0, "", "Password incorrect") Exit Else ;;;from here the rest of the script works on getting the downloads EndIf Func _AutoMD5_Data_Decrypt($sInput) ; Returns true if passwords match, or false if they don't. Global $sPass = FileReadLine("\\server\folder\password.txt", 1) ; Retrieve the password via whatever method you choose to store it...actual directory changed for posting _Crypt_Startup() $sEncryptedInput = _Crypt_HashData($sInput, $CALG_MD5) _Crypt_Shutdown() If String($sEncryptedInput) = String($sPass) Then $sReturn = "True" Else $sReturn = "False" EndIf EndFunc ;==>_AutoMD5_Data_Decrypt -
Can't import REG file - Windows 7
DOTCOMmunications replied to supraspecies's topic in AutoIt General Help and Support
This worked for me when doing scripts, hope it works for you too: RunWait(@ComSpec & " /c " & "%windir%\Regedit.exe /s SUPAPPS\WSUS.reg", "", @SW_HIDE) -
StringTrim to Special Character
DOTCOMmunications replied to Elephant007's topic in AutoIt General Help and Support
Might be easiest to use string split and then grab whatever is the last item in the array that is produced? -
You could also look into using Windows Deployment Services either alone or in combination with the Microsoft Deployment Toolkit which would allow you to do virtually all of this automatically with maybe a few short autoit scripts to do anything that MDT doesn't have built in scripts for. We recycle old computers on a regular basis so get a wide variety of different machines that obviously first need their drivers adding to MDT but after we can setup a machine, PXE boot to our network and then just enter the product key and our domain login details and off the machine goes. There a couple of small AutoIT scripts in the actual task sequence that we use for storing the machine ID and moving reports etc but after those (which are the first step in windows) the rest of the build and deployment is automated including application installation, windows updates and domain configuration.