Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/27/2018 in all areas

  1. use the x,y you set in mousemove as your next starting point, something like (or maybe $x +1 , $y + 1) idk seems logical: $x = 0 $y = 0 Func PixelFind() While $State = 0 If _IsPressed("31") Then $State = 1 ;1 If _IsPressed("32") Then $State = 2 ; 2 If _IsPressed("1b") Then Exit ; ESC While $State = 1 Local $aCoord = PixelSearch($x, $y, 1920, 1080, 0x191919) If @error then MsgBox($MB_SYSTEMMODAL, "Error", "An Error has occurred", 10) Else $x = $aCoord[0] $y = $aCoord[1] mousemove ( $x , $y ) $State = 0 EndIf WEnd .....
    1 point
  2. Define crashing? What exactly are you trying here? Jos
    1 point
  3. jchd

    rihjndael algorithm

    There are plenty sources of documentation on AES plus a large number of open-source implementations in many languages. Did you try googling for "AES standard"? BTW coding it in AutoIt is a promise for extreme slowness. Why do you think Intel, AMD, IBM, Atmel and many others have specially introduced extra instruction-set for AES?
    1 point
  4. Appreciate the efficient example - this was magic for me too
    1 point
  5. Why don't you use _Excel_RangeFind? When the number of rows returned in the array = 0 then nothing was found.
    1 point
  6. Fixed in version 1.3.3.1 of the UDF I uploaded today
    1 point
  7. Another approach is to use the WebDriver UDF which is currently under development. Search the forum and you will find the relevant thread
    1 point
  8. mikell

    IE - StringBetween Array

    Strange. This works well for me #include <IE.au3> #include <Array.au3> #include <String.au3> Local $oIE = _IECreate("http://www.harryhomers.org/et/forum/viewtopic.php?f=89&t=7858", 0, 0, 1, 0) Local $oDiv = _IEGetObjById($oIE, "post_content63721") Local $ListArray[0] , $sHTML = $oDiv.innerhtml ; MsgBox(0, "sHTML", $sHTML) For $i = 1 To 20 $aNames = _StringBetween($sHTML, ">" & $i & ". ", "<") If IsArray($aNames) Then _ArrayAdd($ListArray, $aNames[0]) Next _ArrayDisplay($ListArray) This one could be faster though #include <Array.au3> $sHTML = BinaryToString(InetRead("http://www.harryhomers.org/et/forum/viewtopic.php?f=89&t=7858", 1)) $ListArray = StringRegExp($sHTML, '(?m)^\d+\. ([^<]+)', 3) _ArrayDisplay($ListArray)
    1 point
  9. Your UDF is more fluent. I like it very much. congratulate on!!!
    1 point
  10. @antonioj84 please stop quoting the previous text every...single...response. Just hit reply; we know what we said, and it pads the thread needlessly.
    1 point
  11. Hmmm it's different from the previous requirement again ... $new = "127.2.2.2" $txt = StringRegExpReplace(FileRead("test.xml"), '(?m)^.*PortName.*value="\K[^"]*', $new) Msgbox(0,"test", $txt)
    1 point
  12. if it's only for you and only to click two links, save yourself a lot of effort and just use MouseClick on some coords... then spend the time you would have spent writing code to sip coffee and dunk biscuits.... rapidly starting to slacken off for Straya Day wooohooO!!!!
    1 point
  13. I think that is a great idea. I started this project back in 2014 when I was still learning the basics and it grew bigger every year with all the new features. The time for a complete rewrite is overdue. At least 1/4 of the code can probably be removed easily. I am sure that you will also be able to easily implement many of the requested features given your previous projects I wish I had the time now to rewrite it with the DllStructs we talked about, to save you the time of trying to understand it, but I guess that will take some time and might take a few weeks or months depending on my motivation and freetime. I have attached the latest unfinished version with multiple bug fixes and some new features that I added while working on another project. Let me know if you need anything. MetroGUI-UDF.zip
    1 point
  14. BBs19, Do you mind if I'm copying all your code, reuse as much as I find useful, and continues the project as a new example. You'll of course get full credit for your part of the code. I see no reason why such a project cannot be implemented in AutoIt.
    1 point
  15. Maybe you can read it, there are other "spy" applications that may be able to read text on that. https://www.autoitscript.com/wiki/FAQ#How_can_I_control_.28click.2C_edit_etc.29_an_external_.28html.29_application.3F https://www.autoitscript.com/forum/applications/core/interface/file/attachment.php?id=55274
    1 point
  16. That shows us that it is always quite helpful to add the used AutoIt version to a new thread
    1 point
  17. HOLY CRAP IT WORKED! Thank you so much, this is exactly what I need! For those interested, here's how I did it: ; Set up the source and destination structures $src = DllStructCreate("byte;byte;byte;byte") $psrc = DllStructGetPtr($src) $dest = DllStructCreate("float") $pdest = DllStructGetPtr($dest) ; Put the raw byte data into the source DllStructSetData($src, 1, $byte1) DllStructSetData($src, 2, $byte2) DllStructSetData($src, 3, $byte3) DllStructSetData($src, 4, $byte4) ; Perform the "conversion" _MemMoveMemory($psrc, $pdest, 4) ConsoleWrite(DllStructGetData($dest, 1) & @CRLF) Where $byte1 through $byte4 are the byte values IN LITTLE ENDIAN ORDER.
    1 point
×
×
  • Create New...