AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need help with hexadecimal converter

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
SpiderGames



Joined: 09 Jun 2008
Posts: 284
Location: Canada

PostPosted: Sun Jul 06, 2008 2:41 am    Post subject: Need help with hexadecimal converter Reply with quote

Hey,

Im just making myself a calculator for practice.

I'm having problem with my hexadecimal converter because Hexadecimal is written in letters and numbers...

ex. A8 is 168, 2A is 42
(base 16 binary is base 2)

I just dont know how to make something like it.

If any one knows how plz post.

[ Moderator!: typos corrected ]
_________________
http://www.spider-games77.piczo.com
Join the Elite few...
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
vahju



Joined: 17 Feb 2008
Posts: 58

PostPosted: Sun Jul 06, 2008 3:46 am    Post subject: Reply with quote

Try this web page hex to decimal calculator.

http://www.mrcalculator.com/hexdec.html
Back to top
View user's profile Send private message
SpiderGames



Joined: 09 Jun 2008
Posts: 284
Location: Canada

PostPosted: Sun Jul 06, 2008 4:58 pm    Post subject: Reply with quote

i want my script to under stand hexidecimal...

i know how ot calculat it i just need to put that into my script
_________________
http://www.spider-games77.piczo.com
Join the Elite few...
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
SKAN



Joined: 26 Dec 2005
Posts: 5887

PostPosted: Sun Jul 06, 2008 7:25 pm    Post subject: Reply with quote

The simplest way is to use SetFormat command:

Code:
Number := 1024
SetFormat, Integer, Hex
Number += 0
SetFormat, Integer, Decimal

MsgBox, % Number ; 0x400

Number += 0
MsgBox, % Number ; 1024


Smile
_________________
SKAN - Suresh Kumar A N
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group