Cap0 Posted May 2, 2007 Posted May 2, 2007 (edited) how would i do this in autoit: Dim s s = Format("&H" & "AB") msgbox s output: 171 or, how to convert this function: Public Function port(ByVal Porte As String) As Long Dim tmpMP As Long tmpMP = CLng(Format("&H" & ReverseHex(ChrtoHex(Porte)))) If Len(Port) = 2 And tmpMP > 65536 Then tmpMP = tmpMP - 65536 Porte = tmpMP Porte = 0 End Function reverseHex = _StringReverse() chrtohex = chr(hex())? my guess is vb's format function is autoit's stringformat?, still i don't know how to do it with stringfunction. Edited May 2, 2007 by Cap0
Zedna Posted May 2, 2007 Posted May 2, 2007 Dim s s = "0x" & "AB" msgbox(0,'result',$s) Dim $s $s = "0x" & "AB" msgbox(0,'result',Int($s)) Resources UDF ResourcesEx UDF AutoIt Forum Search
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now