Jump to content

DJKMan

Active Members
  • Posts

    55
  • Joined

  • Last visited

Everything posted by DJKMan

  1. Since this thread shows up first on Google I thought I'd share this bit of info here. Func _SAP_ReadStatus() ConsoleWrite("[SAP Automation] - Reading Status" & @CRLF) $SAP_Status = $sap_session.findById("wnd[0]/sbar").text ConsoleWrite("[SAP Automation] - Status: " & $SAP_Status & @CRLF) Return $SAP_Status EndFunc ;==>_SAP_ReadStatus Tweak as necessary. Regarding the script failing to attach to the SAP Easy Access screen, I've also been having intermittent issues with connecting to SAP now. The same exact script works just fine on one computer but fails completely on another computer with an identical environment. I've even had one computer that used to be able to run SAP scripts then suddenly stops working. Same SAP client and all. Can anyone guess what's going on here?
  2. I'd like to have another set of eyes on this before calling this a bug. In Array.au3 -> _ArrayUnique() Local $vFirstElem = ( ($iDims = 1) ? ($aArray[$iBase]) : ($aArray[$iColumn][$iBase]) ) should be: (Note the second $iBase) Local $vFirstElem = ( ($iDims = 1) ? ($aArray[$iBase]) : ($aArray[$iBase][$iColumn]) )
  3. This script is pretty nice! However, in my case I find that using AutoIt's _FileReadToArray() is a bit faster for me. I was inspired by your script so I wrote my own function that converts 1D arrays to 2D arrays. '?do=embed' frameborder='0' data-embedContent>> My script combined with your _FileFromArray2D() works wonders on large data (and obviously small data too). I was able to cut down the time from 18 minutes or more (using AutoIt's built-in UDFs) down to mere seconds or less (using the above combo). Kudos!
  4. I'm glad you like it! I have an idea to improve on it. It involves timing itself and automatically adjusting the chunk size for the best performance. This should allow for the algorithm to attempt to achieve the best performance possible, thereby, even faster parsing! Plus, it will become much easier to implement as we will no longer have to manually figure out the optimum chunk size on different platforms!
  5. This script is fairly straightforward. If you ever worked with large files before then this may be of help. By large I mean files of 2 MB or so. Granted this doesn't sound so big but going through the file and parsing it to a 2D array all at once took an astronomical amount of time so I wrote my own function to handle this. I discovered that chunking a large array can boost the performance of iterating through the elements and theoretically this should maintain the performance no matter how large the array size is. I know there is room for improvement so please feel free to contribute! Note: I wasn't able to fully test this on larger files such as 200 MB in size due to AutoIt complaining about an error allocating memory while executing _FileReadToArray(). Any help is appreciated. Features: Chunking (Performance will never degrade over time; I.E. Capable of parsing 200 lines or 20,000 and no performance hit will occur) Automatically re-sizes to dynamic columns Preserves Columns while parsing FAST!!!!!! (I can parse a file that contains 24,000 lines with variable columns up to 8 columns and it will finish under a second.) Script: _ArrayTo2DArray.au3 Example usage: Local $aExport ;Initialize array _FileReadToArray("LARGE TEXT.txt", $aExport) ;Returns 1D array of file Local $aSheet = _ArrayTo2DArray($aExport) ;Converts it to 2D Example Text File: LARGE TEXT.txt This script was inspired by >this post. *Updated attachment: Minor bug fixes* *UPDATE June 6, 2013: I apologize! I just realized I made a complete mess of the algorithm. I'm working on a fix now.* *UPDATE June 6, 2013: Bug fixed! It's attached in the post now.
  6. Exactly what I was thinking. It doesn't seem to have any purpose at all. It made me curious though!
  7. I accidently stumbled upon this when I made a typo but there were no errors. Is this by design? $var = MsgBox(64, "Hello World!", "Test.") $var = $var()
  8. Nice script! Might I suggest using Tidy to make your code easier to read? Press CTRL+T. in scite. One thing I've always pondered on is how to prevent SQL injection. Any suggestions? Stripping is generally the most common technique, although it is generally frowned upon if you rely on this.
  9. It seems that there are many people out there who could benefit from this. When will you upload the script?
  10. Sorry for the late response. I took a look at the topics you posted. These are all posts that make use of the SMTP protocol and ATOM Feeds. None of them involve the use of IMAP and SSL which is intended for receiving (not sending) mail. IMAP is a protocol much like POP3 is a protocol. It has a standard set of commands. It will rarely change behind the scenes which means it's more reliable in terms of scripting. I think you have my question confused with web scrapping. In this case, yes, Google, like many other major sites, constantly update their main HTML source code. The question still remains. (Although I seem to remember seeing a topic about it being achieved recently.)
  11. I'm glad I kept an archive of most of the things I found interesting! _LinkGrammar_au3.zip
  12. I've been searching around for the real reason as to why it's not so simple to support SSL connections in AutoIt. There is no official way of retrieving messages from GMail using AutoIt and IMAP which is what a lot of people have been trying to do. Care to point it out?
  13. This worked quite well! Are you kidding? You did great! Did the job perfectly. How did you discover that page?
  14. Simply enter what movie you want and the highest quality link will be returned. Skips Cam qualities, screeners, and iPod versions My only issue here now is how to get it to download the torrent properly and load it into uTorrent automatically. Any suggestions would be helpful
  15. Thank you! This is indeed a much better solution.
  16. I'm not sure if someone posted an example like mine already but feel free to let me know. I did search around and only found people using hacks to make it work. This is very simple and can be incorporated into any projects without an include. This is AutoIt with batch. As simple as I can get. Compile this into a Example.exe: #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Outfile=Example.exe #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** ;Consolewrite for GUI-Based Apps Example by DJKMan Local $sleep=3000 ConsoleWrite("echo Hello World!" & @LF) ;Echo first line. While 1 $randomnumber = Random(1, 5, 1) ConsoleWrite("echo Random Number: " & $randomnumber &@LF);Echo random number to console ConsoleWrite("echo ---Sleeping: "&$sleep&"---"&@LF) Sleep($sleep) WEnd Then save this as DevConsole.cmd and place it in the same directory as Example.exe: @echo off title Example System - Developer Console Prompt $G color 03 "Example.exe"|cmd.exe /Q Run DevConsole.cmd and that's all there is to it. Hope this helps you on your projects.
  17. You got me interested lol Where is yours?
  18. I have. Unfortunately, they could never load any of the AIML files. What separates Alice from the rest is the fact that she uses several different online databases. She's not just a chat bot but also a research bot.
  19. Ever since August of 2009 I've been working on something called Project A.L.I.C.E. I'll cut to the chase. To begin using Alice there is no AutoIt compiling necessary. To begin, go to http://facebook.com/ProjectAliceAI Just go there and say hi! What about it, you say? Well, Alice is entirely coded in AutoIt! (She's not aware of that though so keep that in mind.) Why am I telling you this if there's no source code? Simple. I'm wondering if you'd like to add something to her to make her better. Just for the record Alice will never be for profit (unlike other software out there that charge for the same thing that Alice can do for free.) How can you help? Easy! Post a function with a return and a keyword that shall trigger the said function. Here's an example: This triggers the word of the day when you request Alice "What is today's word of the day?" ;Dictionary.com Word of the Day by DJKMan #include-once #include <string.au3> #include <Inet.au3> Global $quote="""" $ret=_WordOfTheDay() ConsoleWrite($ret&@CRlf) Func _WordOfTheDay() $source=_INetGetSource("http://dictionary.reference.com/wordoftheday/wotd.rss") $source=StringReplace($source,"<description>Free online dictionary, thesaurus and reference guide, crossword puzzles and other word games, online translator and Word of the Day.</description>","") $source=StringReplace($source,"<description>A new word is presented every day with its definition and example sentences from actual published works.</description>","") $string=_StringBetween($source,"<description>","</description") If IsArray($String) Then $word=$String[0] Else $word="I'm sorry. I could not find the word of the day."&@CRLF&@CRLF&"-Technical Error: Not an Array-" EndIf Return $word EndFunc The above is nothing complicated (and obviously could be coded to be better and cleaner) but adding more code snippets like that to improve Alice little by little will make her better and smarter over the long run. Care to share any of your ideas?
  20. I still can't get it to run. I have 3.3.4.0 It looks really nice from the screenshot though. EDIT: You mind uploading a compiled version?
  21. Interesting work! Just for clarification, which version do you download? I prefer to download the bare minimum to get it working (unless the extra files will improve it somehow)? EDIT: Is it possible to determine what SAPI version is installed?
  22. Bryhall, what if $textb is actually an array? Try that. Clearly I have no clue about this script but I'll try to help anyway. Does anyone have a working example of Tesseract? The one on the first page denies access when I try the IE example.
  23. Wow! Thanks for sharing. Unfortunately, I couldn't get the script to recognize me or fail to recognize me. I tried setting my logon face and then covering the camera to make it deny access but it still says welcome back. What am I doing wrong? EDIT: I've also noticed that the settings still refers to the TSMC settings. I put all your script in one folder. Is it supposed to do that or is it a different settings file?
  24. Wow! This is a good job! I'm just having a bit of slight performance problems but I don't blame you. AutoIt isn't really optimized for performance lol I see this as a first step in computer vision for autoit. Are you interested in making a face recognition or object recognition script? This would be incredible! EDIT: By the way, what does the update.exe and after.exe contain? I commented them out from the script since I do not know what they do exactly. I'm paranoid like that so bear with me.
  25. This is a nice UDF. Is there such a way to mark them as read after loading them?
×
×
  • Create New...