Skip to content

Instantly share code, notes, and snippets.

@201580ag
Last active August 11, 2024 04:45
Show Gist options
  • Save 201580ag/5fca6ef4f6f14a8f2becaf6de9dff39c to your computer and use it in GitHub Desktop.
Save 201580ag/5fca6ef4f6f14a8f2becaf6de9dff39c to your computer and use it in GitHub Desktop.

Revisions

  1. 201580ag revised this gist Jul 30, 2024. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Cheat Engine string bypass.lua
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ function renameComponents(c)
    end

    if c.Caption then
    c.Caption='xxx'
    c.Caption='ROST'
    end
    end

    @@ -18,7 +18,7 @@ for i=0,getFormCount()-1 do
    renameComponents(form)
    end

    form.Caption='yyy'
    form.Caption='ROST'
    end

    registerFormAddNotification(function(f)
  2. 201580ag created this gist Jul 30, 2024.
    28 changes: 28 additions & 0 deletions Cheat Engine string bypass.lua
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    function renameComponents(c)
    local i
    if c.Component then
    for i=0,c.ComponentCount-1 do
    renameComponents(c.Component[i])
    end
    end

    if c.Caption then
    c.Caption='xxx'
    end
    end


    for i=0,getFormCount()-1 do
    local form = getForm(i)
    for j=0,form.ControlCount-1 do
    renameComponents(form)
    end

    form.Caption='yyy'
    end

    registerFormAddNotification(function(f)
    f.registerCreateCallback(function(frm)
    renameComponents(f)
    end)
    end)