[Request] Help writing a 180 degree mouse movement. menu

User Tag List

Results 1 to 4 of 4
  1. #1
    Parog's Avatar Kitsune Da-O! M.L.G. CoreCoins Purchaser Authenticator enabled
    Reputation
    1528
    Join Date
    May 2007
    Posts
    3,169
    Thanks G/R
    540/266
    Trade Feedback
    20 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Request] Help writing a 180 degree mouse movement.

    Hello there MMOwned. I'm looking to write a very small program. ( In C++ or Autoit ( I have more knowledge in Autoit, but would rather write it in C++, for the sake of learning. )

    The function would be to use the button Mouse4 to do a 180 degree turn. This will be used mostly in FPS games, but could be modified later on for 180 click turn for stuff like blink and disengage in WoW.

    I understand that the 180 degree turn depends on the resolution the user is playing in and maybe mouse sensitivity in-game but I may be wrong on that.

    I'd like some help getting this started, as I have no clue what I'd have to do to make this happen.

    I wouldn't mind being lazy and just have someone write it and let me figure out the coords needed for a perfect 180, but that probably won't happen.

    What's a Parog?
    Looking for competitive Valorant team!

    [Request] Help writing a 180 degree mouse movement.
  2. #2
    1337pyro's Avatar Contributor CoreCoins Purchaser
    Reputation
    267
    Join Date
    Apr 2009
    Posts
    495
    Thanks G/R
    9/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    HotKeySet ( "key" [, "function"] ) does not work for mouse buttons... will look into it

    AutoItSetOption ( "MouseClickDragDelay" , 20 )
    MouseClickDrag ( "left", x1, y1, x2, y2 , 0 )


    "left" is the chosen mouse button. 0 is the speed(instant moving). if 0 does not work try 1.(100 would be the slowest)
    try to figure out the right coordinates as i dont know your mouse sensivity.

    mouseclickdragdelay sets the time(in milliseconds) between start and end of the mouse click drag... standard is 250.
    if the mouseclickdrag does not work try to find the best value here.



    edit: I think it will be easier to write it in vb.net... for me atleast.
    in vb it can handle mouse events easier. or you set a hotkey on your keyboard.
    Last edited by 1337pyro; 01-17-2011 at 02:43 PM.

    02/02/2011 01:52 <Jackie Moon> I might just go whack off all this talk about man boobs is making me frisky

  3. #3
    ivan017's Avatar Member
    Reputation
    6
    Join Date
    Feb 2008
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    4 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No idea about C++ but this is how you do it in C# if you can find a converter.

    Control.MouseDown();
    Cursor.Position = new Point(Cursor.Position.X + 525, Cursor.Position.Y + 0);
    Control.MouseUp();

  4. #4
    1337pyro's Avatar Contributor CoreCoins Purchaser
    Reputation
    267
    Join Date
    Apr 2009
    Posts
    495
    Thanks G/R
    9/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you schould set the mouse to a fixed point before the turn... so that the mouse does not hit the border of your screen and does a too short move.
    and than set it back to the previous position.

    edit: dont know if it can hit the border while being pushed

    02/02/2011 01:52 <Jackie Moon> I might just go whack off all this talk about man boobs is making me frisky

Similar Threads

  1. [Request] Profile writing help
    By shemikle in forum WoW Bot Maps And Profiles
    Replies: 2
    Last Post: 03-16-2013, 09:24 AM
  2. [Request] Help with mount swap plz! +rep
    By oliax in forum WoW ME Questions and Requests
    Replies: 6
    Last Post: 10-02-2007, 02:36 PM
  3. Question/Request/Help Forum.
    By wtfx in forum Suggestions
    Replies: 7
    Last Post: 07-04-2007, 11:07 PM
  4. Tauren Model Editing Request/Help!
    By Gitaroo Man in forum WoW ME Questions and Requests
    Replies: 3
    Last Post: 06-24-2007, 08:14 PM
  5. Alliance druid, Requesting help
    By Xni in forum WoW ME Questions and Requests
    Replies: 4
    Last Post: 12-29-2006, 05:44 AM
All times are GMT -5. The time now is 09:45 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search