Jump to content

danielcovington

Members
  • Posts

    15
  • Joined

  • Last visited

  • Days Won

    1

danielcovington last won the day on January 26 2013

danielcovington had the most liked content!

danielcovington's Achievements

Seeker

Seeker (1/7)

4

Reputation

  1. Which dimension of the array do you want to dedupe?
  2. does the blue tooth remote have a windows driver??
  3. You can save the rdp connection as a file then call it with autoit run('mstsc "Path to rdp file"') mstsc has a few switches, you can see what they are by typing mstsc -? at a command prompt.
  4. look up MSCOMMLib.MSComm you can use this as an object in your script. It is for serial ports but I think The Arduino uses the usb port like a serial port
  5. I think you must also end the message retrival by $objMailer.close_messageX_POP3() to have it delete the mail.
  6. try a different message index an see what happens.
  7. Hmm.. what are trying to accomplish? You may not need to invoke remote desktop in order to run a program on a remote system. Can you elaborate on the whole process you are thinking about.
  8. $pop_mail.get_message(1,1)) the second parameter is the delete switch. If it is 0 = dont delete if it is 1 then it will delete the email. I would be careful with this since if you delete it will be gone no recycle bin. I would only do this after you know everything works the way you want and maybe have the original email put in a backup folder until you get the unexpected bugs that pop up fleshed out.
  9. The email is base64 encoded.. this is what it would be after decodeing the snippet you posted. I think there is an autoit udf for base64 decoding and encoding. Id look around <p><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = "urn:schemas-microsoft-com:vml" xmlns:o = "urn:schemas-microsoft-com:office:office" xmlns:w = "urn:schemas-microsoft-com:office:word" xmlns:m = "
  10. Bug report submitted.. Its not a big priority. Just would like it to work for future things Im working on. Thanks Again..
  11. I know Im a little late to the party but you could always connect to the spreadsheet as a database if it is excel. That way you change the data if needed and not the script.
  12. You must register the dll first. Fill in the server,port,username,password in the functions. Also make sure if you are using a 64 bit OS that you run the script in 32bit mode or it will not work #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Outfile=pop_test.exe #AutoIt3Wrapper_UseX64=n #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** dim $stat $pop_mail = ObjCreate("EmiaLITE.SendRetrieve") $pop_mail.set_POP3(server,port,username,password) $stat = $pop_mail.get_stat() ;this will get how many emails you have and the size of the mail box ConsoleWrite($stat.MessageCount&@CRLF&$stat.BoxSize&@CRLF) $pop_mail = "" $pop_mail = ObjCreate("EmiaLITE.SendRetrieve") $pop_mail.set_POP3(server,port,username,password) $pop_mail.connect_messageX_POP3() ;this will retrieve the 1st email from the server but not delete it off the server and display it in the console ;you can assign this to a variable and save it to a text file ;you will need to manipulate the string to get what you want from the string ConsoleWrite($pop_mail.get_message(1,0))
  13. It does. Look around the site a little it has VBscript examples to look at. I downloaded it and used it. Seems to be what you are asking for. It will download the messages to a string which you can then save to a file.
  14. Here is a link to a free COM object that can retrive email with POP, that you can automate with Auto-it. Download it, register it with regsvr32. Follow the documentation to create your script. http://www.system-engine.com/EmiaCtrlLite/
  15. I have Created an Event Handler for ADO.CONNECTION the functions do fire but the strings contain gibberish. The Long and Int return okay. I have looked up the interface and they should be returning Wstrings.. First ANybody know what a Wstring is ?? Im assuming that it is a Wide String, and how could that be converted in Auto-It to a human readable string. Thanks for any help you can give. I am connecting to a SQL Server 2008 server but you can connect to anything to test I believe Below is the Function prototype givin by PowerBasic COM browser. WillConnect <6> (ByRef InOut ConnectionString As WString, ByRef InOut UserID As WString, ByRef InOut Password As _ WString, ByRef InOut Options As Long, ByRef InOut adStatus As Long, Byval pConnection As Int__Connection) #AutoIt3Wrapper_UseX64=n #include const $ConnInterface = "ConnectionEvents" $conn = ObjCreate("ADODB.Connection") $connEvent = ObjEvent($conn,"EVENTS_",$ConnInterface) if @error then Msgbox(0,"AutoIt COM Test", _ "ObjEvent: Can't use event interface '"& $ConnInterface &"'. Error code: " & hex(@error,8)) exit endif $conn.open ("Provider=SQLNCLI10;Server=ServerName;Database=Database;Uid=UID;pwd=pwd") $conn.close() Func EVENTS_ConnectComplete($ugh3,$ugh,$ugh1) MsgBox(0,"ADO EVENT","Connected to DataBase") EndFunc Func EVENTS_Disconnect($ugh4,$ugh5) MsgBox(0,"ADO EVENT","Disconnected from DataBase") endFunc Func EVENTS_WillConnect($ConnectionString,$val2,$val3,$val4,$val5,$val6) ConsoleWrite($ConnectionString&@CRLF&$val2&@CRLF&$val3&@CRLF&$val4&@CRLF&$val5&@CRLF&$val6&@CRLF) Msgbox(0,"Connection String",string($ConnectionString)) endFunc
×
×
  • Create New...