Advertisement
DevTricks

GUI String Replacer

Dec 7th, 2022
1,081
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Random, Key1, 0, 9
  2.  
  3. Gui, +AlwaysOnTop +Caption -Resize +ToolWindow +LastFound
  4. Gui, Color, FFFFFF
  5. Gui, Show, Restore w155 h35
  6. Gui, Font, c000000 s8 bold, Arial
  7. Gui, Add, Text, x70 y-2 w15 h15, ^
  8. Gui, Font, c000000 s11 bold, Arial
  9. Gui, Add, Edit, x-2 y11 w160 h20 vstr, Как *е*л*а?
  10. Return
  11.  
  12. F9::
  13. Random, Key1, 0, 9
  14. GuiControlGet, strtmp,, str
  15. NewStr := RegExReplace(strtmp, "\*", Key1)
  16. GuiControl, Text, str, %NewStr%
  17. return
  18.  
  19. GuiClose:
  20.     ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement