Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Disable/enable Internet

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Obfuscated
Newbie cheater
Reputation: 0

Joined: 14 Jan 2016
Posts: 14

PostPosted: Sun Jan 24, 2016 7:22 pm    Post subject: Disable/enable Internet Reply with quote

Is there a way to enable or disable your internet using hotkeys with a cheat engine lua script

This would be very helpful. Thanks!
Back to top
View user's profile Send private message
alanze
Advanced Cheater
Reputation: 3

Joined: 03 Oct 2012
Posts: 50

PostPosted: Sun Jan 24, 2016 9:49 pm    Post subject: Reply with quote

With the cheat engine lua script there's no way to manipulate your internet connection.
However I can show you a workaround, or better saying: a desperate method.
This involving the use of 'ipconfig' utility from windows.

Create this functions in the luascript window:
Code:

function disableInternet()
  shellExecute("ipconfig", "/release")
end
function enableInternet()
  shellExecute("ipconfig", "/renew")
end

Associate this functions to your hotkeys, that's all.

Note: the ipconfig utility will popup while configuring the internet, (this is a black bg. window,
don't ask me how to hide it, it's possible but I won't discuss it).
This command will disable/enable the internet on all adapters, if you want only for one adapter
or if you want to disable/enable the network adapter itself then other commands are required.
It's possible that you have to start CE in elevated (run as administrator) mode for this to work (I didn't tried).
Back to top
View user's profile Send private message
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52

Joined: 13 Sep 2011
Posts: 1578

PostPosted: Wed Feb 03, 2016 6:26 am    Post subject: Reply with quote

Add extra paramters to the call to hide the window.
Code:
function disableInternet()
  shellExecute("ipconfig", "/release",ni,false);
end
function enableInternet()
  shellExecute("ipconfig", "/renew",ni,false);
end

_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
Back to top
View user's profile Send private message
pozzum
Newbie cheater
Reputation: 0

Joined: 19 Jun 2015
Posts: 22

PostPosted: Wed Feb 03, 2016 3:18 pm    Post subject: Reply with quote

Would there be a way to firewall an individual program from the internet while the trainer is running? I'm making an hp hack for the game but I'm unsure if it would work online and I'd rather not have that happen...

I know this is somewhat separate from the base question in the thread but it got me thinking.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Wed Feb 03, 2016 4:05 pm    Post subject: Reply with quote

https://technet.microsoft.com/en-us/library/cc771920(v=ws.10).aspx
Back to top
View user's profile Send private message
pozzum
Newbie cheater
Reputation: 0

Joined: 19 Jun 2015
Posts: 22

PostPosted: Wed Feb 03, 2016 6:42 pm    Post subject: Reply with quote

That's a lot of info, thanks so much.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites