Jump to content

Search the Community

Showing results for tags 'hex operations'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. Try: local $hexA = hex(1,2) local $hexB = hex(140,2) ConsoleWrite( $hexA& @CRLF) ConsoleWrite( $hexB& @CRLF) $hexC = $hexB - $hexA ConsoleWrite( $hexC& @CRLF) Output: 01 8C 7 I'm not crazy right? Autoit v3.3.12.0 x86 Edit: This is the only way I found it works: local $hexA = hex(1,2) local $hexB = hex(140,2) ConsoleWrite( $hexA& @CRLF) ConsoleWrite( $hexB& @CRLF) $hexC = Hex(Execute('0x'&$hexB&' - 0x'&$hexA),2) ConsoleWrite( $hexC& @CRLF) Output: 01 8C 8B Well this is not a bug but this IS very inconvenient. I mean hex should be fast and easy... Workaround: ALWAYS do operations with as - + * / with a hex variable (string) that already is in a form of "0xAF". You can NOT: $hexC = '0x'&$hexB - '0x'&$hexA but you CAN: $hexC = ('0x'&$hexB) - ('0x'&$hexA)
×
×
  • Create New...