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 


Need help getting CE to automatically attach to process, plz

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
Devon999
Newbie cheater
Reputation: 0

Joined: 03 May 2022
Posts: 23

PostPosted: Fri Jul 22, 2022 11:34 am    Post subject: Need help getting CE to automatically attach to process, plz Reply with quote

How do I copy the name of a process from the process list so I can paste it into the box so CE knows to auto connect to it? I can't figure out how to copy. Right click options don't have obvious copy...? Process name is way too obscure to try and remember by hand so I don't know how to get it into the box.
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1055
Location: 0x90

PostPosted: Fri Jul 22, 2022 1:59 pm    Post subject: Reply with quote

In the Cheat Table Lua Script use this code:
Code:

if syntaxcheck then return end
openProcess('exe_name.exe')
Back to top
View user's profile Send private message
Devon999
Newbie cheater
Reputation: 0

Joined: 03 May 2022
Posts: 23

PostPosted: Fri Jul 22, 2022 2:05 pm    Post subject: Reply with quote

LeFiXER wrote:
In the Cheat Table Lua Script use this code:
Code:

if syntaxcheck then return end
openProcess('exe_name.exe')


Good to know but I would still need to have copied the confusing exe name from somewhere to paste in that file too. I face an issue of not knowing any way to copy the full exe name as it appears as a process.

When I open CE and click to connect to a process, the way the name looks there, I need to copy that somehow. It's different than the game exe so I can't just go into the game files and copy that exe name for some reason. Need to copy it the way it appears written to CE.

edit: after many failed attempts I finally was able to transfer it by eye and hand and it works but for future attempts and future processes with long difficult names, how would I copy into the box to autoconnect?
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1055
Location: 0x90

PostPosted: Fri Jul 22, 2022 2:21 pm    Post subject: Reply with quote

You mean the executable name changes with every launch?
Back to top
View user's profile Send private message
Devon999
Newbie cheater
Reputation: 0

Joined: 03 May 2022
Posts: 23

PostPosted: Fri Jul 22, 2022 3:36 pm    Post subject: Reply with quote

LeFiXER wrote:
You mean the executable name changes with every launch?


No but its different than the exe name in the game folder. It's an obscure mod of Friday the 13th game, so once it opens, the name is a lot longer and hard to type by hand, not like the normal game name at all. Other mods for games I've played have been this way too so I know I'll run into this again. So I am just wondering how to copy the process as it displays in the CE list when I click the "select a process to begin" button in CE. Or a way to right click the process in that list, and assign that process to the auto-connect option?

Hand eye coordination and reading, etc I have some challenge. So that's why I'd really love to know how to just copy them when they're longer crazy mod names. I will definitely run into more like this soon.
Back to top
View user's profile Send private message
Devon999
Newbie cheater
Reputation: 0

Joined: 03 May 2022
Posts: 23

PostPosted: Sat Jul 23, 2022 2:01 pm    Post subject: Reply with quote

Alright well thanks anyway i guess it's something nobody knows, not even staff or programmer. Oh well.
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1055
Location: 0x90

PostPosted: Sat Jul 23, 2022 5:50 pm    Post subject: Reply with quote

Devon999 wrote:
Alright well thanks anyway i guess it's something nobody knows, not even staff or programmer. Oh well.


I'm not staff, nor a programmer. Just another user Smile. Although, the reason I did not respond so quickly is because my time is limited; however, I believe this will be the solution you require:
Code:

--[[
Pattern classes
--------
%a   letters (A-Z, a-z)
%c   control characters (\n, \t, \r, …)
%d   digits (0-9)
%l   lower-case letter (a-z)
%p   punctuation characters (!, ?, &, …)
%s   space characters
%u   upper-case letters
%w   alphanumeric characters (A-Z, a-z, 0-9)
%x   hexadecimal digits (\3, \4, …)
%z   the character with representation 0
.   Matches any character
]]

local processlist = getProcesslist()

for k,v in pairs(processlist) do
--[[
     Use the identifiers above to create a pattern that matches the name
     of the executable. The match won't be exact, it is similar to REGEX.
  ]]
  if v:gmatch('insert_pattern_here') then
     print(v)
     openProcess(v)
  end
end
Back to top
View user's profile Send private message
Devon999
Newbie cheater
Reputation: 0

Joined: 03 May 2022
Posts: 23

PostPosted: Sat Jul 23, 2022 7:26 pm    Post subject: Reply with quote

Oh my lord, it works! It's perfecto! Yeeeeeah buddy!

Thanks friend Very Happy
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1055
Location: 0x90

PostPosted: Sat Jul 23, 2022 7:58 pm    Post subject: This post has 1 review(s) Reply with quote

Devon999 wrote:
Oh my lord, it works! It's perfecto! Yeeeeeah buddy!

Thanks friend Very Happy


You're very welcome. Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions 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