This is what I have right now:
sTest := "This is a test sentence." MsgBox % PtrToStr(&sTest, StrLen(sTest)) ;% ExitApp PtrToStr(ptr, len) { VarSetCapacity(s, len, 0) Loop %len% s .= Chr(*(ptr + A_Index - 1)) Return s }Is there a faster way to do this?
Edit: I forgot to add, I tried messing around with RtlCopyString and RtlCopyBytes, but I get an ErrorLevel of -4 (function not found)