View previous topic :: View next topic |
Author |
Message |
usernotfound Expert Cheater Reputation: 0
Joined: 21 Feb 2016 Posts: 115
|
Posted: Thu Feb 16, 2017 8:16 pm Post subject: D3DHook questions |
|
|
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 |
|
|
akumakuja28 Master Cheater Reputation: 16
Joined: 28 Jun 2015 Posts: 432
|
Posted: Thu Feb 16, 2017 8:43 pm Post subject: |
|
|
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 |
|
|
usernotfound Expert Cheater Reputation: 0
Joined: 21 Feb 2016 Posts: 115
|
Posted: Thu Feb 16, 2017 9:00 pm Post subject: |
|
|
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 |
|
|
akumakuja28 Master Cheater Reputation: 16
Joined: 28 Jun 2015 Posts: 432
|
Posted: Thu Feb 16, 2017 9:29 pm Post subject: |
|
|
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 |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25295 Location: The netherlands
|
Posted: Thu Feb 16, 2017 9:51 pm Post subject: |
|
|
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 |
|
|
usernotfound Expert Cheater Reputation: 0
Joined: 21 Feb 2016 Posts: 115
|
Posted: Thu Feb 16, 2017 10:43 pm Post subject: |
|
|
@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 |
|
|
|