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 


How to autorun exe files with lua code in cetrainer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
AylinCE
Grandmaster Cheater Supreme
Reputation: 32

Joined: 16 Feb 2017
Posts: 1260

PostPosted: Wed Jul 17, 2019 5:01 pm    Post subject: Re: How to autorun exe files with lua code in cetrainer Reply with quote

driskoaval wrote:
hey bois i want to inject exe files in the cetrainer
example when i open the cetrainer the exe file will auto opens


It does not turn on automatically.
First add the .exe to the Trainer,
Then you will download this .exe 'to the desktop with a button. (or Temp or CE Autorun)
Then you can open it.

Autorun File Path:

Code:

scriptFile = getCheatEngineDir()..'autorun'

--Make sure the .exe file is attached to the Trainer.

local file1 = 'myTrainer.exe'

function CEButton1Click(sender)
findTableFile(file1).saveToFile(scriptFile..'\\'..file1) --
shellExecute(scriptFile.."\\myTrainer.exe")

--remove myTrainer.exe

function CEButton2Click(sender)
os.remove(scriptFile.."\\myTrainer.exe")
end
end


Enjoy ..

_________________
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
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
AylinCE
Grandmaster Cheater Supreme
Reputation: 32

Joined: 16 Feb 2017
Posts: 1260

PostPosted: Thu Jul 18, 2019 6:27 am    Post subject: Re: How to autorun exe files with lua code in cetrainer Reply with quote

driskoaval wrote:

oh but i want inject this code in .CETRAİNER
when i open cetrainer i want auto open exe .
türkçe cevap versene türksen plz


1) CT Form tasarımcısını aç.
2) Aşağıdaki kodu Formun "Olaylar" penceresinde eşleştir.
myTrainer.exe = senin .exe program, bunları da düzenle Smile
UDF1 = Senin trainer adına örnek, bunu da düzenle.

Code:
local scriptFile = getCheatEngineDir()..'autorun'
local file1 = 'myTrainer.exe'

function FormShow(sender)
findTableFile(file1).saveToFile(scriptFile..'\\'..file1) --
shellExecute(scriptFile.."\\myTrainer.exe")
end


yada eşleştiremezsen şunu kullan, kopyala formun lua script'ine yapıştır.
Not: Trainer (Form) isimlerini düzenlemeyi unutma, benim verdiğim örnektir Wink

Code:
local scriptFile = getCheatEngineDir()..'autorun'
local file1 = 'myTrainer.exe'
--UDF1 = senin Form adı, bunu düzenle..

UDF1.OnShow = function()
findTableFile(file1).saveToFile(scriptFile..'\\'..file1) --
shellExecute(scriptFile.."\\myTrainer.exe")
end


--Trainer kapatıldığında Yüklediğin .exe'yi silmek istiyorsan. Formun Close olayına şunu ekle..

Code:
os.execute("taskkill /F /IM myTrainer.exe") --açıksa program önce kapatacak.
os.remove(scriptFile.."\\myTrainer.exe")  -- Sonra programı silecek
 os.execute(cmd) --Bu yönergeleri cmd yaptığı için onuda kapatmalısın


veya onu da formun okumasını sağlarsın:

Code:
UDF1.OnClose = function()
 os.execute("taskkill /F /IM myTrainer.exe") --açıksa program önce kapatacak.
 os.remove(scriptFile.."\\myTrainer.exe") -- Sonra programı silecek
 os.execute(cmd) --Bu yönergeleri cmd yaptığı için onuda kapatmalısın
 closeCE()
 return caFree() -- ve trainer de kapatılır
end


Tadını çıkar Smile

_________________
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
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
AylinCE
Grandmaster Cheater Supreme
Reputation: 32

Joined: 16 Feb 2017
Posts: 1260

PostPosted: Fri Jul 19, 2019 12:03 pm    Post subject: Re: How to autorun exe files with lua code in cetrainer Reply with quote

driskoaval wrote:

aga şu kodu şifrelermisin. sonrada bana nasıl şifreleneeceğini anlatırmısın?
obfuscate yani nasıl obfuscateliycem. bu kodun obfuscatlenmiş halini atsana plz.

==============================
Doğru kodlamaya ulaştığına sevindim.
Gelelim diğer isteğine.
Fakat CE Forum global dili "İngilizce" olduğu için ve
diğer kullanıcıların bu çözümlere ulaşabilmeleri için
devamını, kötü çeviri de olsa ingilizce yapacağım.
Anlayışın için teşekkürler.

===============================

When you ask a question and get an answer:
(and this answer works for you)
This is reflected in the "Thank You" and "Rep Score" if you wish.

But if you want people to write code for you:
This brings about different incentives such as "Donation". Wink

Nevertheless, they produce codes with the "Masters" initiative,
And they share these codes in an archive.
Here's a similar solution to the problem available in this archive. Smile
( https://forum.cheatengine.org/viewforum.php?f=130 )

This forum has the CE Classic Lua Script encryption:
(Take it as an example and try to improve it.)

https://forum.cheatengine.org/viewtopic.php?t=609124

( Always read reviews, reviews develop ideas. Wink )

And here is the video of how to use it:
https://www.youtube.com/watch?v=rGrItDGFSwQ&list=PL1yPHiegVpRoWx7jy6ecTqmbejos75O37&index=77&t=0s

And finally: never hesitate to use it.
This link is a large archive.
https://forum.cheatengine.org/search.php

Enjoy it! Wink

_________________
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
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
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