Page 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 56
  1. #16
    whatup777's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    CA Source Code Section
    Posts
    4,030
    Reputation
    147
    Thanks
    351
    My Mood
    Dead
    Quote Originally Posted by CodeDemon View Post
    The problem with that is, it wont check that the cursor is inside the box, it will move it no matter where the cursor is.

    Guess what happens when you shoot, holding down the left mouse button? Menu goes all over the place /yea
    Yep you correct.
    Quotes I live by.


    A foolish person learns from his mistakes, I wise person learns from others.
    Quote Originally Posted by AVGN View Post



    mhm

    i live in texas

    i was at the grocery store with my son. He saw a mexican guy, and he said "Look daddy! a mower man!"

    he's 4 yrs old

  2. #17
    cosconub's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in the programming section MPGH Cash: $90,000,000,000
    Posts
    372
    Reputation
    -4
    Thanks
    37
    My Mood
    Psychedelic
    hit pageup open hack move mouse. the one i use in my hack doesn't even make you click,

  3. #18
    IcySeal's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    300
    Reputation
    34
    Thanks
    148
    My Mood
    Amused
    Quote Originally Posted by cosconub View Post
    Code:
    int MoveMenu;
    
    if(MoveMenu1 > 0){
    
    if( MoveMenu ) {
       POINT myCursor; 
       GetCursorPos(&myCursor); // get the cursor position.
       if(GetAsyncKeyState(VK_LBUTTON)) {
          menu.x = myCursor.x; // set the x of your menu to the cursor x position.
          menu.y = myCursor.y; // set the y of your menu to the cursor y position.
       }
    }
    }

    i think thats right had to change stuff
    Credits to Zanza

    Yours is different from mine, it snaps to the cursor, mine gets an offset then moves accordingly. Also my code was adapted from my own base, and it could be better if I had worked harder on it, but I was downsizing from something much more complex.

    Essentially here is what it was before.
    Code:
    if(GetAsyncKeyState(VK_LBUTTON)<0){
                GetCursorPos(&pos);
                //ScreenToClient(GetForegroundWindow(),&pos);
                if (!dragging){//if not currently dragging a window then see if our click is
                    for(int i = 0; i < winStore.windowCount; i++){
                        if (((*(winStore.windowList + i))->visible) && (pos.x > (*(winStore.windowList + i))->position.x) && (pos.x < (*(winStore.windowList + i))->position.x + (*(winStore.windowList + i))->dims.cx) &&    (pos.y > (*(winStore.windowList + i))->position.y) && (pos.y < (*(winStore.windowList + i))->position.y + (*(winStore.windowList + i))->dims.cy)){
                            //^^ if inside the bounds of the window
                            //then setup the winodw so that it will drag
                            winStore.selectedWin =  *(winStore.windowList + i);
                            winStore.selected = i;
                            winStore.selectedWin->drag = true;
                            winStore.selectedWin->dragOff.x = pos.x-winStore.selectedWin->position.x;
                            winStore.selectedWin->dragOff.y = pos.y-winStore.selectedWin->position.y;
                            dragging = true;
                        }else{
                            //set all others to not be dragging
                            (*(winStore.windowList + i))->drag=false;
                        }
                    }
                }else{//if we are dragging a window then
                    winStore.selectedWin->position.x = pos.x - winStore.selectedWin->dragOff.x;
                    winStore.selectedWin->position.y = pos.y - winStore.selectedWin->dragOff.y;
                }
            }else{
                dragging = false;
                for(int i = 0; i < winStore.windowCount; i++){
                    (*(winStore.windowList + i))->drag = false;
                }
            }

  4. #19
    cosconub's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in the programming section MPGH Cash: $90,000,000,000
    Posts
    372
    Reputation
    -4
    Thanks
    37
    My Mood
    Psychedelic
    Damn Is C++ your first language? Dutch is mine.

  5. #20
    IcySeal's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    300
    Reputation
    34
    Thanks
    148
    My Mood
    Amused
    Quote Originally Posted by cosconub View Post
    Damn Is C++ your first language? Dutch is mine.
    Assuming your talking to me, no C was. Though truly if you think that's alot, download my menu base and look through the classes i wrote.

  6. #21
    whatup777's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    CA Source Code Section
    Posts
    4,030
    Reputation
    147
    Thanks
    351
    My Mood
    Dead
    Quote Originally Posted by IcySeal View Post



    Yours is different from mine, it snaps to the cursor, mine gets an offset then moves accordingly. Also my code was adapted from my own base, and it could be better if I had worked harder on it, but I was downsizing from something much more complex.

    Essentially here is what it was before.
    Code:
    if(GetAsyncKeyState(VK_LBUTTON)<0){
                GetCursorPos(&pos);
                //ScreenToClient(GetForegroundWindow(),&pos);
                if (!dragging){//if not currently dragging a window then see if our click is
                    for(int i = 0; i < winStore.windowCount; i++){
                        if (((*(winStore.windowList + i))->visible) && (pos.x > (*(winStore.windowList + i))->position.x) && (pos.x < (*(winStore.windowList + i))->position.x + (*(winStore.windowList + i))->dims.cx) &&    (pos.y > (*(winStore.windowList + i))->position.y) && (pos.y < (*(winStore.windowList + i))->position.y + (*(winStore.windowList + i))->dims.cy)){
                            //^^ if inside the bounds of the window
                            //then setup the winodw so that it will drag
                            winStore.selectedWin =  *(winStore.windowList + i);
                            winStore.selected = i;
                            winStore.selectedWin->drag = true;
                            winStore.selectedWin->dragOff.x = pos.x-winStore.selectedWin->position.x;
                            winStore.selectedWin->dragOff.y = pos.y-winStore.selectedWin->position.y;
                            dragging = true;
                        }else{
                            //set all others to not be dragging
                            (*(winStore.windowList + i))->drag=false;
                        }
                    }
                }else{//if we are dragging a window then
                    winStore.selectedWin->position.x = pos.x - winStore.selectedWin->dragOff.x;
                    winStore.selectedWin->position.y = pos.y - winStore.selectedWin->dragOff.y;
                }
            }else{
                dragging = false;
                for(int i = 0; i < winStore.windowCount; i++){
                    (*(winStore.windowList + i))->drag = false;
                }
            }
    I see what you did there. Downsizing was good idea. /
    Quotes I live by.


    A foolish person learns from his mistakes, I wise person learns from others.
    Quote Originally Posted by AVGN View Post



    mhm

    i live in texas

    i was at the grocery store with my son. He saw a mexican guy, and he said "Look daddy! a mower man!"

    he's 4 yrs old

  7. #22
    IcySeal's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    300
    Reputation
    34
    Thanks
    148
    My Mood
    Amused
    Quote Originally Posted by whatup777 View Post
    I see what you did there. Downsizing was good idea. /
    My original though you see had to take into account the fact that there was the possiblility of multiple windows that are being made, and that I also had wanted it to select a window when you dragged it as well as not pick up any other windows along the way.

  8. #23
    whatup777's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    CA Source Code Section
    Posts
    4,030
    Reputation
    147
    Thanks
    351
    My Mood
    Dead
    Quote Originally Posted by IcySeal View Post


    My original though you see had to take into account the fact that there was the possiblility of multiple windows that are being made, and that I also had wanted it to select a window when you dragged it as well as not pick up any other windows along the way.
    And thats why tabs are good.
    Quotes I live by.


    A foolish person learns from his mistakes, I wise person learns from others.
    Quote Originally Posted by AVGN View Post



    mhm

    i live in texas

    i was at the grocery store with my son. He saw a mexican guy, and he said "Look daddy! a mower man!"

    he's 4 yrs old

  9. #24
    IcySeal's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    300
    Reputation
    34
    Thanks
    148
    My Mood
    Amused
    Quote Originally Posted by whatup777 View Post
    And thats why tabs are good.
    Which is why I added them aswell./yea

  10. #25
    Kanye's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Niggerville
    Posts
    3,294
    Reputation
    136
    Thanks
    217
    My Mood
    Breezy
    good stuff rigght here,

  11. #26
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,305
    Reputation
    170
    Thanks
    2,194
    My Mood
    Flirty
    Quote Originally Posted by whatup777 View Post
    And thats why tabs are good.
    This code would allow you to add tabs quite easily, by positioning a window over another window. Since all the data for the windows are stored in objects they can be manipulated quite easily. Personally I would just keep one window for a regular menu, and add tabs, but this code would allow you to do a lot more which might be good if ur working on something like a d3d hack tool where u want more then one window.

    I'm interested in looking through your base. Could you show me where to download it?

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  12. #27
    whatup777's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    CA Source Code Section
    Posts
    4,030
    Reputation
    147
    Thanks
    351
    My Mood
    Dead
    In his signature.
    Quotes I live by.


    A foolish person learns from his mistakes, I wise person learns from others.
    Quote Originally Posted by AVGN View Post



    mhm

    i live in texas

    i was at the grocery store with my son. He saw a mexican guy, and he said "Look daddy! a mower man!"

    he's 4 yrs old

  13. #28
    Kanye's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Niggerville
    Posts
    3,294
    Reputation
    136
    Thanks
    217
    My Mood
    Breezy
    Quote Originally Posted by why06 View Post
    This code would allow you to add tabs quite easily, by positioning a window over another window. Since all the data for the windows are stored in objects they can be manipulated quite easily. Personally I would just keep one window for a regular menu, and add tabs, but this code would allow you to do a lot more which might be good if ur working on something like a d3d hack tool where u want more then one window.

    I'm interested in looking through your base. Could you show me where to download it?
    perhaps the link in her sig?

  14. #29
    IcySeal's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    300
    Reputation
    34
    Thanks
    148
    My Mood
    Amused
    Quote Originally Posted by why06 View Post
    This code would allow you to add tabs quite easily, by positioning a window over another window. Since all the data for the windows are stored in objects they can be manipulated quite easily. Personally I would just keep one window for a regular menu, and add tabs, but this code would allow you to do a lot more which might be good if ur working on something like a d3d hack tool where u want more then one window.

    I'm interested in looking through your base. Could you show me where to download it?
    You understand the concept so thuroughly

    The link is in my signature.


    Quote Originally Posted by DeezNutzX View Post
    perhaps the link in her sig?
    Sure let's go with that.
    Last edited by IcySeal; 09-15-2010 at 08:27 PM.

  15. #30
    whatup777's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    CA Source Code Section
    Posts
    4,030
    Reputation
    147
    Thanks
    351
    My Mood
    Dead
    Quote Originally Posted by IcySeal View Post


    You understand the concept so thuroughly

    The link is in my signature.
    Someones a happy camper. /
    Quotes I live by.


    A foolish person learns from his mistakes, I wise person learns from others.
    Quote Originally Posted by AVGN View Post



    mhm

    i live in texas

    i was at the grocery store with my son. He saw a mexican guy, and he said "Look daddy! a mower man!"

    he's 4 yrs old

Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. [Release] Mouse Recorder With Code
    By DiMocK in forum Visual Basic Programming
    Replies: 14
    Last Post: 06-29-2010, 02:02 PM
  2. [Release]xTMx's MPGH Spammer Code
    By xTMx in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 5
    Last Post: 12-22-2009, 05:20 AM
  3. [RELEASE]simple mouse things
    By maarten551 in forum Visual Basic Programming
    Replies: 0
    Last Post: 10-10-2009, 10:09 AM
  4. [RELEASE] Decent Chams/Wallhack/X-Hair
    By Ryan in forum Combat Arms Hacks & Cheats
    Replies: 76
    Last Post: 09-29-2009, 07:55 AM
  5. Open Source Release. Semi-Useless Timer Source Code!
    By User1 in forum Visual Basic Programming
    Replies: 6
    Last Post: 09-20-2009, 03:55 AM