Jump to content

Recommended Posts

Posted

ok so maybe im having a dumb day, but why when i execute this script it returns 03A5FF18 instead of 3A60000, why?

$div = 0x3A60000 / 0xDF8
$a1 = "0x" & Hex($div)
$a2 = $a1 * 0xDF8
MsgBox(0,"",Hex($a2))
Posted

What I do with something like this is just walk thrhough the code.

$div = 0x3A60000 / 0xDF8

You're dividing hex. try this on a calculator, and see if it's what you expect.

$a1 = "0x" & Hex($div)

don't think you need the 0x there.

$a2 = $a1 * 0xDF8

You multiply it by what you divided.

MsgBox(0,"",Hex($a2))

$a2 is already hex. your converting what you have, to hex again

~~TheCreator~~Visit http://tysdomain.com for personal software and website solutions.

Posted (edited)

autoit returns hex equations in decimal format, and yes i do need the "0x"

thx for reply though :)

Edited by UPSman2
Posted

sorry for double post, but i think its just hex doesnt carry decimals and just rounds... thus my equation is wrong *cry*... o well

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...