[C++] Really basic question - mousemove relatively

Discuss other programming languages besides AutoHotkey
User avatar
Brazolek123
Posts: 151
Joined: 06 Jun 2016, 16:02

[C++] Really basic question - mousemove relatively

15 Nov 2016, 18:21

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



Heey, its a really simple problem to solve, however I'm not so good in all this cpp variable types, so thought that maybe you will help me to modify it. All the marked part has to do is to movemouse relatively to 'from' position -10 to the right and + 10 pixels to up. Even looked through autohotkey source code but it is done a little bit different there, without all this makelparam things.
I need this because autohotkey's control click and mouse click drag doesnt work on my minimized window whereas this script written in c++ works perfectly. Thought I will be able to transform it somehow to dll file and then call it in my ahk script.

Thanks for help!
guest3456
Posts: 2022
Joined: 09 Oct 2013, 10:31

Re: [C++] Really basic question - mousemove relatively

15 Nov 2016, 18:33

Brazolek123 wrote:I need this because autohotkey's control click and mouse click drag doesnt work on my minimized window whereas this script written in c++ works perfectly.


It obviously doesn't work perfectly heh :)

How do you even know this will work at all? I've never heard of being able to click minimized windows

And AHK has PostMessage so if it even is possible, there's no need for C++. You can do ControlClick U/D and then PostMessage the WM_MOUSEMOVE. Looks like Lexikos even posted an attempt here:
https://autohotkey.com/board/topic/4063 ... -dragging/

User avatar
Brazolek123
Posts: 151
Joined: 06 Jun 2016, 16:02

Re: [C++] Really basic question - mousemove relatively

16 Nov 2016, 05:11

Well, Im playing one game with two different game clients. On one client all functions works properly controlclick and control-mouse click drag no matter if is on top or is maximized or minimized on c++ and ahk ver. Whereas while playing on second client, the one with a good bot protection only c++ ver works propely. But in this case I must to place this relative mouse movement so game client will be able to recognize object movement.
guest3456
Posts: 2022
Joined: 09 Oct 2013, 10:31

Re: [C++] Really basic question - mousemove relatively

16 Nov 2016, 09:01

ahhh, maybe that second client is checking for ahk scripts running as part of its bot protection


Return to “Other Programming Languages”

Who is online

Users browsing this forum: No registered users and 1 guest