View previous topic :: View next topic |
Author |
Message |
dreamfancys Newbie cheater
Reputation: 0
Joined: 09 May 2020 Posts: 13
|
Posted: Wed May 13, 2020 4:05 am Post subject: lua script yes / No question automatically? |
|
|
I have such a code. I want it to say yes automatically when a question window like the one below shows.
So when I turn on the cheat engine with a lua, I want it not to say yes no and automatically pass it with yes. Is this possible?
So I don't want him to ask yes or no when opening lua scripts.
I want to choose yes directly and run the lua script. Is this possible?
Please look at the photo. You will understand me better.
https://i.imgur.com/jkxov0I.png
My code
Code: | <?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="18">
<CheatEntries/>
<UserdefinedSymbols/>
<LuaScript>
x = getMainForm()
x.WindowState = 'wsMinimized'
t=createTimer(nil);
timer_setInterval(t,10)
timer_onTimer(t,myattach)
function WriteSignatures(targetSignature, overrideSignature, codePage)
local byteLine = overrideSignature:gsub("%w+", "0x%0,"):sub(1,-2)
local results = AOBScan(targetSignature, codePage)
if (results == nil) then return end
for i = 0, results.Count-1 do
local address = getAddress(results.getString(i))
local lineCode = 'writeBytes('..address..','.. byteLine..')'
loadstring(lineCode)()
end
results.destroy()
end
local status = 0
function pointer_on()
status = 1
local targetSignature = '54 73 6C 52 65 63 6F 69 6C 43 6F 6D 70 6F 6E 65 6E 74'
local overrideSignature = '91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91'
local codePage = '-X*C*W'
WriteSignatures(targetSignature, overrideSignature, codePage)
end
function pointer_off()
status = 0
local targetSignature = '91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91'
local overrideSignature = '54 73 6C 52 65 63 6F 69 6C 43 6F 6D 70 6F 6E 65 6E 74'
local codePage = '-X*C*W'
WriteSignatures(targetSignature, overrideSignature, codePage)
end
function pointer_on_off()
if status ==0 then
pointer_on()
else
pointer_off()
end
end
createHotkey(pointer_on_off, VK_F1)
</LuaScript>
</CheatTable>
|
|
|
Back to top |
|
 |
blankTM Cheater
Reputation: 1
Joined: 03 May 2020 Posts: 49
|
Posted: Wed May 13, 2020 4:59 am Post subject: Re: lua script yes / No question automatically? |
|
|
settings>>General Settings>>Always
|
|
Back to top |
|
 |
dreamfancys Newbie cheater
Reputation: 0
Joined: 09 May 2020 Posts: 13
|
Posted: Wed May 13, 2020 5:15 am Post subject: Re: lua script yes / No question automatically? |
|
|
blankTM wrote: | settings>>General Settings>>Always |
I want to do it with lua. Or I want this setting to be automatically assumed. So I don't want another user to ask questions when they run this lua script.
|
|
Back to top |
|
 |
blankTM Cheater
Reputation: 1
Joined: 03 May 2020 Posts: 49
|
Posted: Wed May 13, 2020 5:37 am Post subject: Re: lua script yes / No question automatically? |
|
|
dreamfancys wrote: | blankTM wrote: | settings>>General Settings>>Always |
I want to do it with lua. Or I want this setting to be automatically assumed. So I don't want another user to ask questions when they run this lua script. |
Maybe you should generate a modifier separately
Cheat Engine does not allow this for user safety
|
|
Back to top |
|
 |
exohaxor Expert Cheater
Reputation: 1
Joined: 02 Sep 2018 Posts: 101
|
Posted: Wed May 13, 2020 6:02 am Post subject: |
|
|
it can be used for malicious intends cheat engine wont allow this also you are saying i want to do it in lua, if lua didnt get executed the code you wrote to automaticly press yes wont work aswell
_________________
hi |
|
Back to top |
|
 |
Corroder Grandmaster Cheater Supreme
Reputation: 75
Joined: 10 Apr 2015 Posts: 1668
|
Posted: Wed May 13, 2020 6:56 am Post subject: |
|
|
Try to save your table as CETRAINER
_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL |
|
Back to top |
|
 |
AylinCE Grandmaster Cheater Supreme
Reputation: 37
Joined: 16 Feb 2017 Posts: 1516
|
Posted: Wed May 13, 2020 12:33 pm Post subject: |
|
|
Skip the details.
If you wish, assign "OnClick" to the buttons; Or don't leave a chance to choose.
Code: | function Open()
local form=createForm(true) form.Width=395 form.Height=120 form.BorderStyle="bsNone"
form.Position = poDesktopCenter
local lx1=createLabel(form) lx1.Left=30 lx1.Top=15 lx1.Font.Style="fsBold"
lx1.Font.Size=10 lx1.caption="Confirmation\n\n This table contains a lua script. Do you want to run it?"
local bx1=createButton(form) bx1.Left=250 bx1.Top=80 bx1.Width=55 bx1.caption="Yes" bx1.Font.Style="fsBold"
local bx2=createButton(form) bx2.Left=325 bx2.Top=80 bx2.Width=55 bx2.caption="No" bx2.Font.Style="fsBold"
local tYes1=createTimer(form) tYes1.Interval=3000 tYes1.Enabled=true
local tYes2=createTimer(form) tYes2.Interval=3000 tYes2.Enabled=true
tYes1.OnTimer=function() lx1.caption="Confirmation\n\n I think you said yes. :) "
tYes2.Enabled=true tYes1.Enabled=false end
tYes2.OnTimer=function()
if lx1.caption=="Confirmation\n\n I think you said yes. :) " then
tYes2.Enabled=false
form.Close() end end
end
Open() |
After all, you are responsible for what you do.
_________________
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8585 Location: 127.0.0.1
|
Posted: Wed May 13, 2020 1:03 pm Post subject: Re: lua script yes / No question automatically? |
|
|
dreamfancys wrote: | blankTM wrote: | settings>>General Settings>>Always |
I want to do it with lua. Or I want this setting to be automatically assumed. So I don't want another user to ask questions when they run this lua script. |
The entire point of this popup is to allow users to opt-out of a script running to be able to review it first for security reasons. Lua has direct access to the entire system and since Cheat Engine runs as administrator, it can be used for various malicious purposes. A single line of Lua code can destroy a Windows install for example.
So bypassing this is not something you will get help for here.
_________________
- Retired. |
|
Back to top |
|
 |
|