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 createobject

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
.lua
Expert Cheater
Reputation: 1

Joined: 13 Sep 2018
Posts: 202

PostPosted: Sun Feb 13, 2022 11:41 am    Post subject: How to createobject Reply with quote

This code will dm2.DLL registered to the system
Code:
shellExecute('cmd','/c regsvr32 dm2.dll ',nil,0)


This is the simulation of keys in vbs script
Set dm = createobject("dm.dmsoft")
dm.KeyPressChar "W"

Because it's not a dynamic link library, it's just a COM component

If you can create its object, you may call the function



Create this object.png
 Description:
 Filesize:  74.07 KB
 Viewed:  1309 Time(s)

Create this object.png



COM component function.png
 Description:
 Filesize:  66.24 KB
 Viewed:  1309 Time(s)

COM component function.png


Back to top
View user's profile Send private message
Frouk
Grandmaster Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 510

PostPosted: Sun Feb 13, 2022 2:14 pm    Post subject: Reply with quote

why do you need this?
you can't create object and use it functions if its dll,otherwise if its lua file then that ok
Those functions aren't confirmed
Back to top
View user's profile Send private message
.lua
Expert Cheater
Reputation: 1

Joined: 13 Sep 2018
Posts: 202

PostPosted: Mon Feb 14, 2022 4:39 am    Post subject: Reply with quote

Because I need to use it to simulate some buttons in the game。

The dokeypress that comes with CE doesn't work. The game may need to drive level simulation。

When calling signed functions, there will be an error prompt of access conflict, because they are not standard API interfaces, but just COM components。
Back to top
View user's profile Send private message
Frouk
Grandmaster Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 510

PostPosted: Mon Feb 14, 2022 7:16 am    Post subject: Reply with quote

can you show how you calling doKeyPress?
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