I'm having trouble with the StringMid function. I'm placing data on the clipboard and then searching that data for a specific string and extracting a part of the data relative to the search string. The problem is StringMid is returning the numeric value of the string, not the string itself. Any ideas?
$data = ClipGet()
; Result "Other data then Patient ID: 12345678"
; Now search for a marker within that data
$instr = StringInStr($data,"Patient ID :",2)
; Grab the data from just after the search string
$data2 = StringMid($data,$instr+12,8)
;Gets 8 characters that just happens to be numbers and so call it a number when it's not
MsgBox(1,"Info",$data2*2)
;Works, multiplies what should be a string by 2