AylinCE Grandmaster Cheater Supreme
Reputation: 35 Joined: 16 Feb 2017 Posts: 1486
|
Posted: Tue Feb 20, 2024 8:04 pm Post subject: |
|
|
You can use this logic if it works for you.
It will update all your scripts if you provide the old and new directory.
Code: | if myfrm1 then myfrm1.Destroy() myfrm1=nil end
DP1=getScreenDPI()/96
myfrm1=createForm()
myfrm1.height=100*DP1 myfrm1.width=200*DP1 myfrm1.left=261*DP1 myfrm1.top=98*DP1
myfrm1.PopupMode=0 myfrm1.caption="myfrm1"
myfrm1.Position="poDesktopCenter" myfrm1.BorderStyle="bsSingle" myfrm1.ShowInTaskBar="stAlways"
-------------------------
local mytbl = {}
----------------------- mytbl.edt1 -----
mytbl.edt1=createEdit(myfrm1)
mytbl.edt1.AutoSize=true
mytbl.edt1.height=23*DP1 mytbl.edt1.width=130*DP1 mytbl.edt1.left=35*DP1 mytbl.edt1.top=5*DP1
mytbl.edt1.text=""
mytbl.edt1.alignment="taLeftJustify"
mytbl.edt1.Font.Style="fsBold" mytbl.edt1.Font.Size=0*DP1
-----------------------
----------------------- mytbl.edt1 -----
mytbl.edt2=createEdit(myfrm1)
mytbl.edt2.AutoSize=true
mytbl.edt2.height=23*DP1 mytbl.edt2.width=130*DP1 mytbl.edt2.left=35*DP1 mytbl.edt2.top=35*DP1
mytbl.edt2.text=""
mytbl.edt2.alignment="taLeftJustify"
mytbl.edt2.Font.Style="fsBold" mytbl.edt2.Font.Size=0*DP1
-----------------------
----------------------- mytbl.btn1 -----
mytbl.btn1=createButton(myfrm1)
mytbl.btn1.AutoSize=false
mytbl.btn1.height=25*DP1 mytbl.btn1.width=130*DP1 mytbl.btn1.left=35*DP1 mytbl.btn1.top=70*DP1
mytbl.btn1.caption="Create Script"
mytbl.btn1.Font.Style="fsBold" mytbl.btn1.Font.Size=0*DP1
-----------------------
mytbl.btn1.OnClick=function ()
if mytbl.edt1.Text=="" or mytbl.edt2.Text=="" then
showMessage("GameName.exe not found!")
else
local al=getAddressList()
cnt = addresslist_getCount(al)
local oldName = mytbl.edt1.Text
local newName = mytbl.edt2.Text
for i=0, cnt-1 do
local mr = addresslist_getMemoryRecord(al,i)
scrpt = (mr.Script):gsub(oldName,newName)
mr.Script = scrpt
mr.endEdit()
end
end
end
|
asm script:
Code: | [ENABLE]
{$LUA}
if syntaxcheck then return end
--lua code
{$ASM}
[DISABLE]
{$LUA}
if syntaxcheck then return end
if myfrm1 then myfrm1.Destroy() myfrm1=nil end |
_________________ Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
|
|