Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/25/2018 in all areas

  1. You're welcome. I added comments to the original snippet. Hopefully it helps you better understand what the code is doing.
    1 point
  2. If I understand you correctly, I come up with a value of 560 not 561. $xLittleEndianValue = Binary("0x308C") ;Split the 2 binary bytes into separate bytes (LSByte & MSByte) $xLSByte = BinaryMid($xLittleEndianValue, 1, 1) $xMSByte = BinaryMid($xLittleEndianValue, 2, 1) ;Shift the most significant byte's bits 6 bits to the right ;i.e. 10001100 (0x8C) -> 00000010 (0x02) $xShiftedMSByte = Binary("0x" & Hex(BitShift($xMSByte, 6), 2)) ;Concatenate the MSByte and LSByte back into its binary representation $xLittleEndianResult = Binary("0x" & Hex($xLSByte) & Hex($xShiftedMSByte)) ConsoleWrite(StringFormat("$xLittleEndianValue = %s", $xLittleEndianValue) & @CRLF) ConsoleWrite(StringFormat("$xLSByte = %s", $xLSByte) & @CRLF) ConsoleWrite(StringFormat("$xMSByte = %s", $xMSByte) & @CRLF) ConsoleWrite(StringFormat("$xShiftedMSByte = %s", $xShiftedMSByte) & @CRLF) ConsoleWrite(StringFormat("$xLittleEndianResult = %s / BigEndian = 0x%04X / Decimal = %i", $xLittleEndianResult, $xLittleEndianResult, $xLittleEndianResult) & @CRLF) Output: $xLittleEndianValue = 0x308C $xLSByte = 0x30 $xMSByte = 0x8C $xShiftedMSByte = 0x02 $xLittleEndianResult = 0x3002 / BigEndian = 0x0230 / Decimal = 560
    1 point
  3. Never used FileMove() to rename a file ?
    1 point
  4. This works for me #include <Array.au3> $output = "Wi-Fi" & @crlf & _ " Tipo: Dedicado" & @crlf & _ " Estado administrativo: Habilitado" & @crlf & _ " Estado de conexión: Conectado" $status = StringRegExp($output, "Estado de conexión:\h+(\w+)", 3) _ArrayDisplay($status) $all = StringRegExp($output, ":\h+(\w+)", 3) _ArrayDisplay($all)
    1 point
  5. http://lmgtfy.com/?q=webdriver+user+agent
    1 point
  6. That's nice. What have you tried on your own?
    1 point
  7. MattHiggs, I have just been looking at the code and I agree with careca - GUICtrlCreateContextMenu requires the parent control to have been created by one of Autoit's internal GUICtrlCreate* functions as it takes a ControlId as a parameter. I do not see how it would work with a control created via one of the UDF functions, which all return a Windows handle. So the lack of the context menu has nothing to do with my UDF - which pleases me, even if not you. M23
    1 point
  8. AndyG

    Looking for a code

    Not sure? Hmmm, then I will probably have to work on it ... "humorous" is not at all what I intended ...there is hardly a sadder startpost than this one @Gimme20Dollaz, if you really want answers to your questions, read this first....yes, it takes some minutes, but believe me, it helps you "...how to fish..."
    1 point
  9. @AWC the question was directed at another member @ibrahem who, showing his normal penchant for stupidity, went and decompiled your code - this is a banning offense on this forum. That member is gone now, so please ignore the detour and continue with your thread.
    1 point
  10. nend

    Regex toolkit

    A small update for the ones that use this program V1.4.1.See the first post in this topic!
    1 point
  11. If each profile includes "@" then this other way could work #Include <Array.au3> $aResults = StringRegExp(FileRead(@ScriptDir & "\wlan.txt"), '\S+@\S+', 3) _ArrayDisplay($aResults)
    1 point
×
×
  • Create New...