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 


D3DHook questions

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

Joined: 21 Feb 2016
Posts: 115

PostPosted: Thu Feb 16, 2017 8:16 pm    Post subject: D3DHook questions Reply with quote

1. Can objects created with D3DHook be dragged like forms can with dragNow() or is there a way to imitate this by adjusting x,y?

2. How can I have the mouse pointer from my game in front of the object instead of behind it since I am assigning OnClick events to them, it would be hard to tell where the mouse is if there's a lot of options
Back to top
View user's profile Send private message
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Thu Feb 16, 2017 8:43 pm    Post subject: Reply with quote

Dont use D3D hook. Fullscreen gaming has died, finally. Borderless Window is 100 times better

Just create a normal form and set the Formstyle to system on top and then set your alpha values and transparency values.

http://forum.cheatengine.org/viewtopic.php?t=602442&start=25

_________________
Back to top
View user's profile Send private message
usernotfound
Expert Cheater
Reputation: 0

Joined: 21 Feb 2016
Posts: 115

PostPosted: Thu Feb 16, 2017 9:00 pm    Post subject: Reply with quote

I see, but how do you prevent the form from leaving the game window? I'm a little confused how that works as an overlay, maybe I'm misinterpreting
Back to top
View user's profile Send private message
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Thu Feb 16, 2017 9:29 pm    Post subject: Reply with quote

usernotfound wrote:
I see, but how do you prevent the form from leaving the game window? I'm a little confused how that works as an overlay, maybe I'm misinterpreting


All the coding for tht is in tht download. Off hand I think its like...


Code:


F= createForm()

F.FormStyle = fsSystemStayOnTop or "[fsSystemStayOnTop]"



Cant rember the formatting exactly. Good luck

_________________
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Thu Feb 16, 2017 9:51 pm    Post subject: Reply with quote

as to answer the original question: No, there is no drag, only click

As for the mouse cursor, try creating a sprite that gets rendered at the current mouse X,Y position

_________________
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
usernotfound
Expert Cheater
Reputation: 0

Joined: 21 Feb 2016
Posts: 115

PostPosted: Thu Feb 16, 2017 10:43 pm    Post subject: Reply with quote

@akuma I will check it out thanks

Dark Byte wrote:

As for the mouse cursor, try creating a sprite that gets rendered at the current mouse X,Y position


Thanks for the idea I haven't really been messing with D3D for too long, just going off old examples mind showing how I could do this? This is how I'm laying out buttons at the moment

Code:
D3D   = createD3DHook()
BtImg = createPicture()
BtImg.loadFromFile(button_image)
BtTex = D3D.createTexture(BtImg)
BtSpr = D3D.createSprite(BtTex)

BtSpr.x = 1
BtSpr.y = 1

D3D.OnClick = function()
  -- do stuff
end
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