5rfpbtfsc

cheat engine title randomizer lua 2script

Jun 20th, 2026
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.09 KB | Source Code | 0 0
  1. local custom_map = {
  2.     ['a']='a', ['b']='b', ['c']='c', ['d']='d', ['e']='e', ['f']='f', ['g']='g',
  3.     ['h']='h', ['i']='i', ['j']='j', ['k']='k', ['l']='l', ['m']='m', ['n']='n',
  4.     ['o']='o', ['p']='p', ['q']='q', ['r']='r', ['s']='s', ['t']='t', ['u']='u',
  5.     ['v']='v', ['w']='w', ['x']='x', ['y']='y', ['z']='z',
  6.     ['A']='A', ['B']='B', ['C']='C', ['D']='D', ['E']='E', ['F']='F', ['G']='G',
  7.     ['H']='H', ['I']='I', ['J']='J', ['K']='K', ['L']='L', ['M']='M', ['N']='N',
  8.     ['O']='O', ['P']='P', ['Q']='Q', ['R']='R', ['S']='S', ['T']='T', ['U']='U',
  9.     ['V']='V', ['W']='W', ['X']='X', ['Y']='Y', ['Z']='Z'
  10. }
  11. local function obfuscateText(str)
  12.     local result = ""
  13.     for i = 1, #str do
  14.         local char = str:sub(i, i)
  15.         result = result .. (custom_map[char] or char)
  16.     end
  17.     return result
  18. end
  19. local function processControls(comp)
  20.     if not comp then return end
  21.     local success, count = pcall(function() return comp.ComponentCount end)
  22.     if not success then return end
  23.     for i = 0, count - 1 do
  24.         local child = comp.Component
  25.         if child then
  26.             local cls = child.ClassName
  27.             if cls ~= "TEdit" and cls ~= "TMemo" and cls ~= "TRichEdit" then
  28.                 pcall(function()
  29.                     if child.Caption and child.Caption ~= "" then
  30.                         child.Caption = obfuscateText(child.Caption)
  31.                     end
  32.                     if cls == "TComboBox" or cls == "TListBox" then
  33.                         for j = 0, child.Items.Count - 1 do
  34.                             child.Items[j] = obfuscateText(child.Items[j])
  35.                         end
  36.                     end
  37.                 end)
  38.             end
  39.             processControls(child)
  40.         end
  41.     end
  42. end
  43. local fCount = getFormCount()
  44. for i = 0, fCount - 1 do
  45.     local form = getForm(i)
  46.     if form then
  47.         pcall(function() form.Caption = obfuscateText(form.Caption) end)
  48.         processControls(form)
  49.     end
  50. end
  51. collectgarbage("collect")
Advertisement
Add Comment
Please, Sign In to add comment