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 


shellExecute function [HELP]

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
WALLED
!BEWARE! Deletes post on answer
Reputation: 0

Joined: 17 Feb 2020
Posts: 9

PostPosted: Wed Mar 25, 2020 12:22 pm    Post subject: shellExecute function [HELP] Reply with quote

I want to do a button which when u click it will open the program from specified location, but when i click on the button i'm getting this error from lua engine
C:\Users\WALLED\AppData\Local\Temp\ultrasecretfile.exe

My code is:
Code:
local user = os.getenv ("USERPROFILE") .. "\\AppData\\Local\\Temp\\ultrasecretfile.exe"
print( user )


What should i do? Because i wanna to keep the USERPROFILE function and if i change anything it give me again error, so i wanna to add somewhere shellExecute or any other function which will launch that file

Can someone help me?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 379

Joined: 09 May 2003
Posts: 22568
Location: The netherlands

PostPosted: Wed Mar 25, 2020 1:39 pm    Post subject: Reply with quote

maybe remove the print ?
_________________
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
View user's profile Send private message MSN Messenger
Corroder
Grandmaster Cheater Supreme
Reputation: 33

Joined: 10 Apr 2015
Posts: 1284

PostPosted: Wed Mar 25, 2020 10:08 pm    Post subject: Reply with quote

Code:
local user = os.getenv ("USERPROFILE") .. "\\AppData\\Local\\Temp\\ultrasecretfile.exe"
os.execute('start user')

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
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 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