Selecting Objects with Mouse while Window is minimized menu

Shout-Out

User Tag List

Results 1 to 7 of 7
  1. #1
    Sutur's Avatar Private
    Reputation
    1
    Join Date
    May 2014
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Selecting Objects with Mouse while Window is minimized

    Hi,

    I am working on program that does some standard tasks (e.g Auto Selling blue and yellow loot).
    Therefore I used the Enigmas C# Framework to read out the neareast vendor and all inventory stuff and I can translate these to screen coordinates to click on.

    Then I am using some Win32 API to inject Mouse and Keyboard to select vendor and click on all items -> everything is working fine. perfect.

    But now I am trying this process without moving the "real" mouse pointer. Therefore I am using PostMessage and SendMessage to inject WM_MouseClick and Keystrokes directly to the Handle of the D3 Window. This is working great, even if the window is minimized,

    BUT I cant select items with WM_MouseMove in game. e.g: To interact with a vendor (or blacksmith) you have to put the mouse over him and wait until the white outline appears. Only then it is possible to interact with him.

    How to reach this unattended by using Windows Messages while the window is minimized WITHOUT using the real mouse pointer?

    At the current stage I sniffed all Windows Messages with Spy ++ and reproduced them exactly with all lParams and wParams:
    - WM_NCHITTEST
    - WM_SETCURSOR
    - WM_MOUSEMOVE

    But I dont get the vendor selected this way. Anyone has an idea if this is possible?

    Selecting Objects with Mouse while Window is minimized
  2. #2
    raler's Avatar Member
    Reputation
    1
    Join Date
    Apr 2014
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am pretty sure that this is not possible. The only way to perform "clicks" on actors/items while D3 is minimized is to call the interact method from within Diablo III itself. This naturally means that you would need to write some sort of memory, which I am assuming you are trying to avoid. What I would suggest is running your framework from within a virtual machine, as you can minimize the VM and your program should still function properly.

  3. #3
    enigma32's Avatar Legendary
    Reputation
    912
    Join Date
    Jan 2013
    Posts
    551
    Thanks G/R
    4/738
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    D3 checks mouse position at start of every loop and if D3 has input focus or not. If it doesn't, then it will ignore certain mouse clicks. You would have to inject or do memory writing in order to bypass, or manipulate WinAPI calls somehow.

  4. #4
    karnkore's Avatar Member
    Reputation
    7
    Join Date
    Sep 2012
    Posts
    130
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    iirc someone figured out how to disable the input focus check in this forum, can't remember the post though.

  5. #5
    Sutur's Avatar Private
    Reputation
    1
    Join Date
    May 2014
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by enigma32 View Post
    D3 checks mouse position at start of every loop and if D3 has input focus or not. If it doesn't, then it will ignore certain mouse clicks. You would have to inject or do memory writing in order to bypass, or manipulate WinAPI calls somehow.
    Ok, update: I tested it with D3 beeing the active input window. Still no select possible, so I suppose it checks more than the focus. And: Clicks are working fine, only the MouseMove does not select ...

  6. #6
    enigma32's Avatar Legendary
    Reputation
    912
    Join Date
    Jan 2013
    Posts
    551
    Thanks G/R
    4/738
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Sutur View Post
    Ok, update: I tested it with D3 beeing the active input window. Still no select possible, so I suppose it checks more than the focus. And: Clicks are working fine, only the MouseMove does not select ...
    To clarify what I meant about checking mouse position, it uses GetCursorPos and makes sure that it's within the D3 window client area. This is not something that is affected by messages to the message loop.

  7. #7
    R3peat's Avatar Site Donator while(true) CoreCoins Purchaser
    Reputation
    190
    Join Date
    Aug 2012
    Posts
    424
    Thanks G/R
    0/132
    Trade Feedback
    69 (99%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So if he would move cursor into d3 window his method should work ? But then it will never work minimized

Similar Threads

  1. Java Applet Move object with mouse
    By Zantas in forum Programming
    Replies: 1
    Last Post: 06-02-2010, 12:53 PM
  2. How to make WoW Movies with Fraps and Windows movie maker
    By kentril in forum World of Warcraft Guides
    Replies: 11
    Last Post: 07-09-2009, 09:02 AM
  3. [Exploit or Tip?] Regain AP with BW while Flee'ing
    By wickermanz in forum MMO Exploits|Hacks
    Replies: 9
    Last Post: 10-24-2008, 12:11 AM
  4. [Help!] Scripting a GO object with LUA???
    By pioneer1337 in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 07-31-2008, 11:55 PM
  5. Attack with melee while Casting a spell.
    By Itazuki in forum World of Warcraft Exploits
    Replies: 7
    Last Post: 12-16-2006, 12:17 PM
All times are GMT -5. The time now is 04:52 AM. 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