Go Back   UnKnoWnCheaTs - Multiplayer Game Hacking and Cheats

  • Rollover Mouse Rollover Mouse
    sponsored advertisements
    Reply
     
    Thread Tools

    Rollover Mouse
    Old 2nd November 2010, 10:32 AM   #1
    WonderKing
    h4x0!2

    WonderKing's Avatar

    Join Date: Oct 2010
    Posts: 94
    Reputation: 470
    Rep Power: 330
    WonderKing is a preacher of ownage - listen and learnWonderKing is a preacher of ownage - listen and learnWonderKing is a preacher of ownage - listen and learnWonderKing is a preacher of ownage - listen and learnWonderKing is a preacher of ownage - listen and learn
    Rollover Mouse

    Anyone knows how to do rollover mouse on button/sprite/text/anything in C++? no mouse click just rollover then action happens.

    If (mouse over button A == true)
    {
    //change button A color/sprite/etc
    } else {
    //restore button A color/sprite/etc
    }

    Something like that.... i need it for my d3d menu, I know how to it in javascript though
    WonderKing is offline
    Reply With Quote

    Old 2nd November 2010, 10:40 AM   #2
    ReUnioN
    Master Contributor

    ReUnioN's Avatar

    Join Date: Sep 2007
    Posts: 1,340
    Reputation: 17406
    Rep Power: 434
    ReUnioN Will always be a legend at UCReUnioN Will always be a legend at UCReUnioN Will always be a legend at UCReUnioN Will always be a legend at UCReUnioN Will always be a legend at UCReUnioN Will always be a legend at UCReUnioN Will always be a legend at UCReUnioN Will always be a legend at UCReUnioN Will always be a legend at UCReUnioN Will always be a legend at UCReUnioN Will always be a legend at UC
    Recognitions Award symbolizing a retired staff member who dedicated a notable amount of time and effort to their past staff position. Former Staff
    Members who have contributed financial support towards UnKnoWnCheaTs. Donator (1)
    Points: 34,351, Level: 28
    Points: 34,351, Level: 28 Points: 34,351, Level: 28 Points: 34,351, Level: 28
    Level up: 19%, 1,949 Points needed
    Level up: 19% Level up: 19% Level up: 19%
    Activity: 0%
    Activity: 0% Activity: 0% Activity: 0%
    As there isnt such event handling in directx you will prolly need to create your own check function for that.

    if(mouse.x > object.x && mouse.x < object.x + object.width && mouse.y > object.y && mouse.y < object.y + object.height) {
    mouseOverObject = true;
    }
    else {
    mouseOverObject = false;
    }
    __________________

    “For every complex problem, there is an answer that is short, simple and wrong.”
    “Pessimism is safe, but optimism is a lot faster!”
    ReUnioN is offline
    Reply With Quote

    Old 2nd November 2010, 10:42 AM   #3
    learn_more
    Retired Administrator

    learn_more's Avatar

    Join Date: Sep 2006
    Posts: 14,760
    Reputation: 162690
    Rep Power: 738
    learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!
    Recognitions Members who have contributed financial support towards UnKnoWnCheaTs. Donator (48)
    Award symbolizing a retired staff member who dedicated a notable amount of time and effort to their past staff position. Former Staff
    Awarded to members who have donated 10 times or more. Gratuity (4)
    Points: 255,107, Level: 59
    Points: 255,107, Level: 59 Points: 255,107, Level: 59 Points: 255,107, Level: 59
    Level up: 26%, 238,893 Points needed
    Level up: 26% Level up: 26% Level up: 26%
    Activity: 0%
    Activity: 0% Activity: 0% Activity: 0%
    Last Achievements Rollover MouseRollover MouseRollover MouseRollover MouseRollover Mouse
    Award-Showcase Rollover Mouse
    basically, the logic for this is the exact same as checking for a mouse click,
    so when you made a menu this shouldnt be a problem at all.
    __________________
    learn_more is offline
    Reply With Quote

    Old 3rd November 2010, 03:36 AM   #4
    WonderKing
    h4x0!2

    WonderKing's Avatar

    Threadstarter
    Join Date: Oct 2010
    Posts: 94
    Reputation: 470
    Rep Power: 330
    WonderKing is a preacher of ownage - listen and learnWonderKing is a preacher of ownage - listen and learnWonderKing is a preacher of ownage - listen and learnWonderKing is a preacher of ownage - listen and learnWonderKing is a preacher of ownage - listen and learn
    omg how stupid i am... i should just remove GetAsyncKeyState & let my GetCursorPos runs over the button i want, it works now. Thanks for your replies ^^
    WonderKing is offline
    Reply With Quote
    Reply


    Similar Threads
    Thread Thread Starter Forum Replies Last Post
    [Discuss] A new mouse for me mojo3nt PC Hardware 18 2nd October 2010 02:42 AM
    [Source] [DFX] Mouse KIDEBR Joint Operations & DFX 0 15th March 2008 12:20 AM
    [Help] mouse - asm Ksbunker Assembly 2 4th February 2006 10:52 AM
    bout to rollover :D UMO Spam 4 10th August 2005 07:50 PM

    Tags
    mouse, rollover


    Forum Jump


    All times are GMT. The time now is 09:45 PM.

    Contact Us - Toggle Dark Theme
    Terms of Use Information Privacy Policy Information
    Copyright ©2000-2024, Unknowncheats™
    Rollover Mouse Rollover Mouse
    sponsored advertisement
    no new posts