Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/10/2014 in all areas

  1. 2014/04/17 not the current day.
    1 point
  2. Fr33b0w, I take it that my suggestion worked - glad I could help. M23
    1 point
  3. Fr33b0w, You do not appear to be closing the search handle returned from the FileFindFirstFile call (as the Help file says you should). Try doing so and see if that solves the problem. M23
    1 point
  4. TechCoder, Always happy to help get my UDFs working with other code - as long as it does not keep me from the golf course or the open skies. Thanks for pointing out the incorrect example title - it will be changed for the next release. M23
    1 point
  5. Did you try a forum search? This has been asked and answered a number of times. Use the IUIAutomation framework, see this post:
    1 point
  6. $str = fileread("Code_source_html.html") msgbox(0, '' , stringreplace($str , " " , "")) in the string replace instead of space, i typed alt+0160 and with all spaces including those removed: $str = fileread("Code_source_html.html") msgbox(0, '' , stringstripws(stringreplace($str , " " , ""),8))
    1 point
  7. Tioner, Because having been a member here for over 2 years you seem to have missed the fact that using the "G" word here is like a red rag to a bull. So as the question has absolutely nothing to do with the game and is actually about searching arrays, why even mention it? But at least the thread can stay open. And I suggest reading the file into an array with _FileReadToArray and using _ArraySearch. Your current code is horribly inefficient as by using an index with FileReadLine you are re-reading the whole file each time. M23
    1 point
  8. This is how I would code it: Local $sPlaintext = "I'd like to translate a piece of C++ code into AutoIt. Well,the C++ source is a CTRL+C & CTRL+V for me, I don't really know how it works, that's why I can't really translate it. Well, my huge fault, but still, this code would be really important for me!" & @CRLF & _ "So, it's a simple XOR encryption. Another problem is that I can't yet understand, how the hell it work (I mean wtf is this XOR)... Well, I'm trying to learn it, but meanwhile I post this topic. Here's the C++ source:" Global $sPad = "Could anyone confirm me? Just because it's not working too..." Local $sCiphertext = _Vernam($sPlaintext) ConsoleWrite("Ciphertext: " & Binary($sCiphertext) & @LF & @LF) ConsoleWrite("Recovered plaintext: " & _Vernam($sCiphertext) & @LF) Func _Vernam($sIn) Local $aIn = StringToASCIIArray($sIn) Local $aPad = StringToASCIIArray($sPad) Local $sOut For $i = 0 To UBound($aIn) - 1 $sOut &= ChrW(BitXOR($aIn[$i], $aPad[Mod($i, UBound($aPad))])) Next Return $sOut EndFunc Anyway, keep in mind that your key definitely needs to be at least as long as the plaintext, must be used only once and needs to have pretty good randomness. All criterions that this toy example misses. Forget any condition and you're going to be severely bitten.
    1 point
  9. Maybe $aUrl = _WinHttpCrackUrl($url, $ICU_ESCAPE + $ICU_DECODE)
    1 point
  10. This works for me: #include "WinHttp.au3" #include <Array.au3> $url = "http://www.domain.com/dm/r.php?r=m%7C%23%23%7Cgh-oiv_%2Cf8t%2Cxg4%7C%23%23%7CWINbf%7C%23%23%7CCz1ytu9w%200%2F19%20%5C%5CMIDOOOcc%7C%7CccFt22%20Cz1ytu9w%200%2F19%20M5%2Czzzcc%7C%7CccUv9w%200%2F19%20M5%2Czcc%7C%7CccWzw3vu%2Fu5z0%20%2F-u5s9%20z0%20N9uBTbT-y5yb%7BfAjljEgBcFFnhcjAgncAkfCcjAhemfmElBAn%7D%20%28nninihCnnnnf%29cc%7C%7CccN9uBTbT-y5yb%7BmfmnhfhjchjmkcjiBfcBAkCcjBjAlmjnAmei%7D%20%28nninihCnnnnm%29cc%7C%7CccN9uBTbT-y5yb%7BfBEkfhikcBnilcjhmAcAngmcCkFfnkhmlBEA%7D%20%28BfghkFnCglek%29cc%7C%7CccSz8ur%2Fw9%20s9wv5z0%20W50%2Czrv%20f%20E0u9wyw5v9cc%7C%7CccWzw3vu%2Fu5z0%20%2Cz1%2F50%20WORKGROUPcc%7C%7CccLz7z0%20%2Cz1%2F50%20M5%2Czzzcc%7C%7CccCOM%20Oy90%20T519ztu%20%28v9-%29%20ncc%7C%7CccCOM%20S90%2C%20Czt0u%20%28_pu9%29%20mhcc%7C%7CccCOM%20S90%2C%20T519ztu%20%281v9-%29%20lincc%7C%7CccT69%20-z11%2F0%2C%20-z1y29u9%2C%20vt--9vv8t22p.cc%7C%7Ccc" $aUrl = _WinHttpCrackUrl($url, $ICU_DECODE) MsgBox(0, "Error", @error) _ArrayDisplay($aUrl, "_WinHttpCrackUrl()")
    1 point
  11. Trz GUICtrlSetLimit
    1 point
×
×
  • Create New...