Jump to content

dcat127

Active Members
  • Posts

    36
  • Joined

  • Last visited

Everything posted by dcat127

  1. I am attempting to automate sending faxes in faxtalk. They have an SDK that utilizes COM technology. Can I connect with that on Autoit? Here is what it the description on there sdk. About the FaxTalk SDK The FaxTalk SDK enables software developers to extend the functionality of FaxTalk. The SDK uses the application programming interfaces (APIs), which employ Microsoft’s Component Object Model (COM) technology. The FaxTalk SDK is a set of COM objects, header files, sample code, and documentation designed to help you create programs that provide automated access to FaxTalk functionality. Using the FaxTalk SDK, you can set up automated access to: Submitting faxes to be sent with the FaxTalk send engine Selecting cover pages for faxes sent FaxTalk Inbox, Outbox, Sent, and Transaction Log folders Send and receive status FaxTalk application configuration information Integrate client applications with the FaxTalk folders Conversion to FaxTalk image format file Each area of FaxTalk functionality is accessed through a FaxTalk SDK object. This document describes each FaxTalk SDK object and its functions. The only examples they give are C#....which I have basically no knowledge of.
  2. Both computers are going to be on a separate network
  3. I have a script that I want to run on multiple computers, this script will: Download an email of over pop3, and after processing it (which may take a minute) delete it from the server. The script will poll the pop3 server every 1 minute to check for new messages.I want to have scripts running on at least 2 different computers (at different locations) to provide: Redundancy and load balancing.It is important that each email only gets processed once.My question is, what is the best way for the scripts to check whether the other is currently downloading a message on the mail server? Is using writing information into an Mysql database on the Webserver a good choice?
  4. '?do=embed' frameborder='0' data-embedContent>>
  5. Probably its is waiting on one of the windows that is not appearing, add console writes and see which one. While (True) ConsoleWrite("File Download") WinWaitActive("File Download") Sleep(1000) Send("!{s}") Sleep(500) WinWaitActive("Save As") ConsoleWrite("Save As") Send("{HOME}C:\PRPTemp\FedExRAW\") Send("!{s}") ConsoleWrite(("Download complete") WinWaitActive("Download complete", "Close") Send("{ENTER}") WEnd
  6. Your __Httpget function has some kind of problem. As soon as you call that it locks up. If I comment out those lines it will update the listview. Also the refresh button is not enabled for some reason...sorry don't have time to figure that out right now. Func __refresh() consolewrite ("refresh") _GUICtrlListView_DeleteAllItems(GUICtrlGetHandle($listview)) ;~ $result = __HttpGet($dominio1&"/room.php", "p="&$password&"&u="&$username&"&r="&$room) ;~ $explode = _StringExplode($result, ",") ;~ For $i = 0 to UBound($explode) - 2 ;~ GUICtrlCreateListViewItem($explode[$i],$listview) ;~ Next GUICtrlCreateListViewItem("test|4|test",$listview) Endfunc
  7. Can you post your complete script? Also what does not work? Be more specific.
  8. #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 282, 93, 192, 124) $Edit1 = GUICtrlCreateEdit("", 0, 40, 281, 49) GUICtrlSetData(-1, "") $Button1 = GUICtrlCreateButton("start showing text", 0, 0, 281, 41) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 GUICtrlSetData($Edit1, "Text to show") EndSwitch WEnd
  9. They do not show up as disabled when I run your script.
  10. Yes, but they do not have to be opened in the foreground. Which is what I am assuming the op actually meant by "without the browser open"
  11. you forgot to join the string with the & Run(@ComSpec & ' /c "C:\temp\ACL\ACLAnalytics10_Desktop_NonUnicode_10.0.2\setup.exe /s /v"/qn PIDKEY=' &$Serial, @SystemDir, @SW_HIDE)
  12. Look at '?do=embed' frameborder='0' data-embedContent>> also look at _IEBodyReadText in the help file for another way of doing it.
  13. I think Text (Tab Delimited) is the easiest, since you do not need to worry about parentheses around text like you do with csv.
  14. $var = InetRead("https://twitter.com/followbacklist3",1) $var = BinaryToString($var) $loc1 = StringInStr($var,'follower_stats" data-nav="followers" data-is-compact="false"> Followers<strong title="') $len1 = StringLen('follower_stats" data-nav="followers" data-is-compact="false"> Followers<strong title="') $var = StringTrimLeft($var,$loc1+$len1-1) $loc1 = StringInStr($var,'"') $var = StringLeft($var,$loc1-1) MsgBox(0,"",$var) This seems to work. Someone the understands Regex better than me could shorten the code.
  15. It is hard to guess why it does not work without having the program that you are using it with. Normally you do not need to send the {DOWN} as sending the l should open the menu. I would try adding a sleep before sending the B. Also try both upper and lowercase b Send("!ll") Sleep(500) Send("B") Alternatively you could use. Send("!ll") Sleep(500) Send("{DOWN 9}{ENTER}")
  16. A little more information would be helpful... What website are you getting the information from? I would probably start by getting the info with InetRead() and then extracting it with a StringRegExp.
  17. In the past I have used this. It is quite dirty, but depending what your requirements are it may work. #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Opt("WinDetectHiddenText", 1) Opt("WinTitleMatchMode", 2) Opt("GUIOnEventMode", 1) $wrapper = GUICreate("", 1,1,1,1) $gui = GUICreate("title", 100, 100, -1, -1, $WS_POPUPWINDOW, $WS_EX_TOPMOST, $wrapper) $OK_button = GUICtrlCreateButton("Button", 0, 0,218,28) GUISetState() $state = 1 $count = 0 $found_save = "" GUICtrlSetOnEvent($OK_button, "button") Run("notepad") While 1 If WinActive("Notepad") Then activate() $pos = WinGetPos("Notepad") WinMove($gui, "", $pos[0], $pos[1]+100, 220, 30) Else deactivate() EndIf Sleep(200) WEnd Func button() MsgBox(0,"","Button Clicked") EndFunc ;==>print Func activate() If $state = 0 Then WinSetState($gui, "", @SW_SHOW) WinActivate("Notepad") $state = 1 EndIf EndFunc ;==>activate Func deactivate() If $state = 1 Then If $count > 3 Then WinSetState($gui, "", @SW_HIDE) $state = 0 EndIf $count = $count + 1 Else $count = 0 EndIf EndFunc ;==>deactivate
  18. I created this for a project that I was working on. Hopefully it will be helpful to others. You need to sign-up for a free account at https://www.easypost.com/ in order to generate your own key. It also requires the base64 udf #include "base64.au3" #include "easypost.au3" #include <IE.au3> Global $rate Global $login = ":" ; Enter your own key here $from = _getaddress("Test Person", "1234 John Green RD", "", "North Preston", "NY", "14837", "US","1234567890") $to = _getaddress("Test Person", "1234 Johnson Road", "", "North Preston", "NY", "14837", "US","1234567890") $parcel = _getpackage("Parcel", 24) $shipment = _getshipment($to, $from, $parcel) $label = _getlabel($shipment, $rate) If StringLen($label) > 200 Then MsgBox(0, "", "Some Kind of Problem") Exit EndIf _IECreate($label) easypost.au3
  19. The example in my original post is about what I am looking for, but it fails in to many cases. I basically want a function that returns an array that has: [1] From:email [2] From:name [3] To email [4] To Name [5] Email subject [6] Email body. (if it is a multipart message it would return the html part) [7] Attatchment name [8] Attachment content.
  20. I am working on a project that I need to seperate the different parts of an email. I have been searching the forums and have not found anything that works reliably. I am aware of: However it is too basic, and fails on quite a few emails. I am in the process of rolling up my sleeves and making my own, but I just wanted to see if anybody knows of anything that has already been done...I don't want to reinvent the wheel. Also if anybody knows of any clear document defining the standard for emails...I'd greatly appreciate it.
  21. I had the same problem, and am posting the solution that I found: $hBitmap2 is not being released. I added _WinAPI_DeleteObject ($hBitmap2) down at the bottom where the other things are being released. (around line 1000) of tesseract.au3
  22. I found 2 problems with the sdk...they only show up when you are cropping to a small area one a large screen. Line 968: I changed to: $hBMP = _WinAPI_CreateCompatibleBitmap($hDC, (($pos[2]-$right_indent)* $scale), (($pos[3] -$bottom_indent)* $scale)) Line 973: I changed to: _GDIPlus_GraphicsDrawImageRect($hGraphic, $hImage2, 0 - ($left_indent * $scale), 0 - ($top_indent * $scale), $pos[2]* $scale, $pos[3] * $scale) Not sure if this will cause other problems, but it solves my problem.
  23. I am using the Tesseract UDF : #include <Tesseract.au3> $cord_r = 1800 $cord_t = 1080 $cord_l = 0 $cord_b = 0 _TesseractScreenCapture(0, "", 1, 1, $cord_l, $cord_t, $cord_r, $cord_b, 1) My current desktop screen size is 1920x1080 The attached image shows the output. Even though I have my top indent set at 1080 it is cropping only about 1/2 of the screen. Funny part is the left, right and bottom seem to work like expected. Also the graphic looks like it is stretched. Am I missing something?
  24. How do you compare 2 arrays? the = operator does not work i.e. Dim $array[2][2], $array2[2][2] $array[0][0] = "word1" $array[0][1] = "word2" $array[1][0] = "word1" $array[1][1] = "word2" if $array = $array2 Then ;this line does not work MsgBox(0,"Match","") EndIf $array[1][1] = "different word" if $array = $array2 Then ;this line does not work MsgBox(0,"Match","") EndIf
×
×
  • Create New...