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 


Question about shellExecute

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Shahryar
Advanced Cheater
Reputation: 0

Joined: 11 Jun 2011
Posts: 85

PostPosted: Mon Oct 01, 2012 11:31 am    Post subject: Question about shellExecute Reply with quote

Hello guys.
Long before I've been a post here that I had a problem with following code.
Code:
shellExecute(command, parameters OPTIONAL, folder OPTIONAL, showcommand OPTIONAL)


when I use it to run a game, the game crashes because I didn't know how can I give the game folder path to shellExecute and I used following code.
Code:
local f = shellExecute(filetolaunch);

Now I'm going to use this code. My question is how can I give the game folder path to shellExecute.
For Example my game path is "G:\Games Folder\Mass Effect 3\Binaries\Win32\MassEffect3.exe" and folder path is "G:\Games Folder\Mass Effect 3\Binaries\Win32\".
so I want to know how can I give the folder path to shellExecute.
Please help me, I'll give you Reputation Wink.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Mon Oct 01, 2012 12:00 pm    Post subject: Reply with quote

Give the gamefolder as folder parameter. Just leave the parameters field an empty string
_________________
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
Shahryar
Advanced Cheater
Reputation: 0

Joined: 11 Jun 2011
Posts: 85

PostPosted: Mon Oct 01, 2012 12:34 pm    Post subject: Reply with quote

Can you tell me how?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Zadkos
How do I cheat?
Reputation: 0

Joined: 20 Mar 2010
Posts: 9

PostPosted: Sat Oct 27, 2012 6:01 pm    Post subject: shellExecute, createProcess Reply with quote

Don't forget to use "\\" instead of "\".
Try this:
Code:
shellExecute("MassEffect3.exe",nil,"G:\\Games Folder\\Mass Effect 3\\Binaries\\Win32")


or

Code:
shellExecute("MassEffect3.exe",nil,[[G:\Games Folder\Mass Effect 3\Binaries\Win32]])


Alternatively you could use the createProcess command like:
Code:
createProcess([[G:\Games Folder\Mass Effect 3\Binaries\Win32\MassEffect3.exe]])


Hope this helps.
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