[TOOL REQUEST] Dota2 Itemhotkeys on Mousewheel

This is a discussion on [TOOL REQUEST] Dota2 Itemhotkeys on Mousewheel within the DotA 2 Tools board part of the DotA 2 category; After playing dota2 more actively, I've been running into a severe problem. Dota2's engine still doesnt allow to bind inventoryslots ...

Results 1 to 6 of 6
  1. #1
    X-räi's Avatar
    X-räi is offline ɯnıɯǝɹd
    Array
    Join Date
    Apr 2008
    Location
    Germany, NRW
    Posts
    1,560
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    17
    Reputation
    1040

    [TOOL REQUEST] Dota2 Itemhotkeys on Mousewheel

    After playing dota2 more actively, I've been running into a severe problem.



    Dota2's engine still doesnt allow to bind inventoryslots to:
    mousewheel up
    mousewheel down
    mouse 3 (the mousewheel itself)

    This is why I am requesting a tool (or a script if thats possible).

    which constantly watches the mousewheel/mouse3
    and whenever one of those keys is used, sends another instead.

    From my point of view, it would suffice to just send NUMPAD7 (for example, but the numpad buttons seem most fitting)
    INSTEAD OF scrolling up.

    Dota2 supports double-tapping, so ROLLING the mousewheel up should send multiple NUMPAD7-commands.

    An Example:
    mousewheel scroll up --> numpad7
    scroll up suppressed (dota 2 should not get this action)

    mousewheel scroll down --> numpad8
    scroll down suppressed (dota 2 should not get this action)

    MOUSE3 --> numpad 6
    mouse3 suppressed (dota 2 should not get this action)



    I have no clue how to do this, if autoit would suffice, or how much time it would take to come up with a solution.



    If it's way too much work for a and my gratefulness, you will have leave it alone.

    It should seamlessly integrate into gaming, I dont want my frames drop to "1" when trying to blink somewhere, but of course every attempt will be honored :P


    I also tried multiple dota1 tools, couldnt get them to work. (they worked for me in dota1)


    maybe someone can help me out here, and also publish this "tool" (hmmm...) afterwards to get reputation, I logically claim no credit/ownership whatsoever.

    ^using CHROME now
    Banned users: 0 (Counting since: 04.06.2008)


  2. #2
    johnmcloud's Avatar
    johnmcloud is offline Hacker
    Array
    Join Date
    May 2012
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    9
    Reputation
    203
    Don't have the game, but what do you ask is "simple"

    Code:
    ; Code by johnmcloud, best user in d3scene, you know it lol
    #include <MouseOnEvent.au3> ; put it in the same folder
    
    While 1
     _MouseSetOnEvent($MOUSE_WHEELSCROLLUP_EVENT, "_WheelUp", 0, 1)
     _MouseSetOnEvent($MOUSE_WHEELSCROLLDOWN_EVENT, "_WheelDown", 0, 1)
     _MouseSetOnEvent($MOUSE_WHEELDOWN_EVENT, "_WheelPressed", 0, 1)
    WEnd
    
    Func _WheelUp()
        Send("{NUMPAD7}")
    EndFunc
    
    Func _WheelDown()
        Send("{NUMPAD8}")
    EndFunc
    
    Func _WheelPressed()
        Send("{NUMPAD6}")
    EndFunc
    You need this UDF
    DOWNLOAD

    I think you know how copy-paste script and compile it...
    Have fun
    Last edited by johnmcloud; 09-09-2012 at 05:11 PM.

  3. The Following User Says Thank You to johnmcloud For This Useful Post:


  4. #3
    X-räi's Avatar
    X-räi is offline ɯnıɯǝɹd
    Array
    Join Date
    Apr 2008
    Location
    Germany, NRW
    Posts
    1,560
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    17
    Reputation
    1040
    Quote Originally Posted by johnmcloud View Post
    You need this UDF
    DOWNLOAD

    I think you know how copy-paste script and compile it...
    Have fun
    Okay first off, no I didnt.

    I know to handle ahks, autoexecs and .bat files. (LOL!)
    I glanced at coding YEARS back and just thought: NOPE.

    However, I am not a completely lazy donkeyhead, so I dled autoit and the udf..
    then I simply imported the udf completely (lol) into the script editor,
    copied the script below it and exported it.

    Now, there is a (small!) flaw, I dunno whether is due to me or the code.

    The original key-strokes (mouse3/wheelup+down) don't get suppressed.
    I can unbind mousewheeldown/-up BUT that f-in engine wont let my unbind mouse3.
    Which is a small flaw really, it's alternate way to move the camera though and can mess things up.


    ALL IN ALL, it's greatly fulfilling it's purpose and I am glad it wasn't too much work !

    Thanks again.

    ^using CHROME now
    Banned users: 0 (Counting since: 04.06.2008)


  5. #4
    johnmcloud's Avatar
    johnmcloud is offline Hacker
    Array
    Join Date
    May 2012
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    9
    Reputation
    203
    Quote Originally Posted by X-räi View Post
    The original key-strokes (mouse3/wheelup+down) don't get suppressed.
    You are welcome. You can't suppress the key and at the same time redirect that key to another key, don't think is possible, anyway i'll check it out and let you know.

    ---------- Post added at 04:10 PM ---------- Previous post was at 03:44 PM ----------

    It's possible
    Updated the script on post #2

    Changelog

    • Now wheel scrool is disabled by default, but send the numpad key


    Hope now is fine for you.
    Last edited by johnmcloud; 09-09-2012 at 05:08 PM.

  6. The Following User Says Thank You to johnmcloud For This Useful Post:


  7. #5
    X-räi's Avatar
    X-räi is offline ɯnıɯǝɹd
    Array
    Join Date
    Apr 2008
    Location
    Germany, NRW
    Posts
    1,560
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    17
    Reputation
    1040
    Quote Originally Posted by johnmcloud View Post
    You are welcome. You can't suppress the key and at the same time redirect that key to another key, don't think is possible, anyway i'll check it out and let you know.

    ---------- Post added at 04:10 PM ---------- Previous post was at 03:44 PM ----------

    It's possible
    Updated the script on post #2

    Changelog

    • Now wheel scrool is disabled by default, but send the numpad key


    Hope now is fine for you.
    It's perfect now, thanks!

    Now I have to deal with running a separate script until valve gets it's sh*t together, lol.

    Wonder why I am seemingly the only one using the mousewheel for items -.-


    I mean,
    one could make a GUI with changeable keys, pause/exit keys and stuff, but obviously there is zero demand for it :P

    And I am completely fine with this!

    Thanks again.

    ^using CHROME now
    Banned users: 0 (Counting since: 04.06.2008)


  8. #6
    johnmcloud's Avatar
    johnmcloud is offline Hacker
    Array
    Join Date
    May 2012
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    9
    Reputation
    203
    Quote Originally Posted by X-räi View Post
    It's perfect now, thanks!

    Now I have to deal with running a separate script until valve gets it's sh*t together, lol.

    Wonder why I am seemingly the only one using the mousewheel for items -.-
    I think yes lol

    Quote Originally Posted by X-räi View Post
    I mean,
    one could make a GUI with changeable keys, pause/exit keys and stuff, but obviously there is zero demand for it :P

    And I am completely fine with this!

    Thanks again.
    I'ts not hard to make a GUI, but as you say noone need this, except you
    Anyway was a pleasure help you

  9. The Following User Says Thank You to johnmcloud For This Useful Post:


Similar Threads

  1. Request middleman for dota2/hon trade!
    By TryToStop in forum Request a Middleman
    Replies: 0
    Last Post: 03-03-2012, 08:09 PM
  2. Request middleman for dota2/hon trade!
    By TryToStop in forum Request a Middleman
    Replies: 0
    Last Post: 02-26-2012, 06:59 PM
  3. Request middleman for dota2/hon trade!
    By TryToStop in forum Request a Middleman
    Replies: 2
    Last Post: 01-26-2012, 01:47 PM
  4. DotA MouseWheel Attack
    By Ancient.Deadly in forum Warcraft 3 Hacks, bots and tools
    Replies: 1
    Last Post: 02-27-2011, 03:10 PM
  5. [REQUEST] Best APM + MICRO TOOL OUT THERE. PLZ HELP?
    By eLiteGameR in forum Warcraft 3 forum
    Replies: 0
    Last Post: 12-13-2008, 04:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •