View previous topic :: View next topic |
Author |
Message |
.lua Expert Cheater
Reputation: 1
Joined: 13 Sep 2018 Posts: 202
|
Posted: Thu May 16, 2019 8:38 pm Post subject: The lua script in this trainer has some issues and will ther |
|
|
I just used the CMD command |
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25765 Location: The netherlands
|
Posted: Fri May 17, 2019 12:04 am Post subject: |
|
|
try as a standalone script first and see what message that gives when you execute the lua code _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
.lua Expert Cheater
Reputation: 1
Joined: 13 Sep 2018 Posts: 202
|
Posted: Fri May 17, 2019 4:11 am Post subject: |
|
|
Dark Byte wrote: | try as a standalone script first and see what message that gives when you execute the lua code |
Some computers will not prompt, some will prompt. I wonder if it has anything to do with computers
Can you give it a try?
Code: |
f=createForm(true)
f.setSize(700,400)
m=createMemo(f)
m.Align='alClient'
m.ScrollBars='ssAutoBoth'
g=createPanel(f)
g.Align='alBottom'
g.caption='Getipconfig'
function ipconfig()
os.execute('ipconfig /all > "C:/Windows/System32/drivers/systemA.ini"')
local f=io.open('C:/Windows/System32/drivers/systemA.ini')
local line=f:read('a')
if line then
m.Lines.Text=line
f:close()
os.remove('C:/Windows/System32/drivers/systemA.ini')
end
end
g.OnClick=ipconfig
|
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25765 Location: The netherlands
|
Posted: Fri May 17, 2019 4:14 am Post subject: |
|
|
Works for me, but then again I have windows installed in c:\windows
what happens on systems that have it installed in z:\win7 ?
Tip another way to get it without the need of a tempfile is using
Code: |
local z=io.popen('ipconfig /all')
local out=z:read('*all')
z:close()
print(out)
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
.lua Expert Cheater
Reputation: 1
Joined: 13 Sep 2018 Posts: 202
|
Posted: Fri May 17, 2019 5:50 am Post subject: |
|
|
Dark Byte wrote: | Works for me, but then again I have windows installed in c:\windows
what happens on systems that have it installed in z:\win7 ?
Tip another way to get it without the need of a tempfile is using
Code: |
local z=io.popen('ipconfig /all')
local out=z:read('*all')
z:close()
print(out)
|
|
Maybe I can try this one, but I'm not sure if there will be that wrong window.
Can I hide the CMD window? Let it run in the background,But I don't know how to do it. |
|
Back to top |
|
 |
|