Advertisement
Guest User

Untitled

a guest
Sep 8th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. StrCpy $R0 0
  2. StrCpy $R4 ""
  3. StrLen $R5 $YourVar
  4. ${Do}
  5.   ${If} $R0 = $R5
  6.     ${Break}
  7.   ${EndIf}
  8.   ;get char
  9.   StrCpy $R1 $YourVar 1 $R0
  10.   ;get ascii-number of char
  11.   System::Call "*(&t1 r11)i.r12"
  12.   System::Call "*$R2(&i1 .r13)"
  13.   System::Free $R2
  14.   ${If} $R3 < 65
  15.   ${OrIf} $R3 > 90
  16.     ;if non-alpha keep this char
  17.     StrCpy $R4 $R4$R1
  18.   ${EndIf}
  19.   IntOp $R0 $R0 + 1
  20. ${Loop}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement