/Click and /Mouseto no longer working

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

Ccomp5950
a ghoul
a ghoul
Posts: 94
Joined: Mon Apr 18, 2005 8:40 am

/Click and /Mouseto no longer working

Post by Ccomp5950 » Wed Nov 02, 2005 6:08 pm

As the subject says /click and /Mouseto no longer work, obviusly due to the latest changes in how EQ handles the Mouse from the System.

I pretty much expected this anyhow. I am not sure but I would assume ${MacroQuest.MouseX} and ${MacroQuest.MouseY} won't be functional either.

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Wed Nov 02, 2005 7:19 pm

Which /click commands are broken?

"/click <left|right> target" works...
--
<Thedude> I have to say your there retarded one.

Ccomp5950
a ghoul
a ghoul
Posts: 94
Joined: Mon Apr 18, 2005 8:40 am

Post by Ccomp5950 » Wed Nov 02, 2005 9:39 pm

Click Left X Y
Click Right X Y

I'm sorry I should have been more specific

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Wed Nov 02, 2005 10:04 pm

Does anyone still use these? It's likely that the X&Y clicks will be hard to fix...
--
<Thedude> I have to say your there retarded one.

Ccomp5950
a ghoul
a ghoul
Posts: 94
Joined: Mon Apr 18, 2005 8:40 am

Post by Ccomp5950 » Wed Nov 02, 2005 11:26 pm

I use it in this....

http://www.macroquest2.com/phpBB2/viewtopic.php?t=12307

The only use I have found for it that isn't covered in some other command is in setting Combat Abilities and regular abilities in the actions window.

ListSelect in /notify doesn't go through selecting the ability and making it the setting for the abillities button you wanted to use it for.

Automating MM's that need stuff such as Hide / Sneak and other combat abilities (which have to be refreshed each time you zone into the MM if you do not already have those abilities) is what I use it for.

SwiftyMUSE
Developer
Developer
Posts: 1205
Joined: Tue Sep 23, 2003 10:52 pm

Post by SwiftyMUSE » Thu Nov 03, 2005 12:14 am

DKAA, here is what I've found so far.

There are 3 positions in the code where SetCursorPos is called. 2 of which set it to the default left corner. The final spot uses pinstCXWndManager+110h for X and pinstCXWndManager+114h for Y.

Looks like we will code similar to:

Code: Select all

.text:004A8C13 loc_4A8C13:                             ; CODE XREF: CEverQuest__RMouseUp+6Aj
.text:004A8C13                                         ; CEverQuest__RMouseUp+7Bj
.text:004A8C13                 push    1               ; bShow
.text:004A8C15                 call    ds:ShowCursor
.text:004A8C1B                 test    eax, eax
.text:004A8C1D                 jl      short loc_4A8C13
.text:004A8C1F                 mov     eax, pinstCXWndManager
.text:004A8C24                 push    dword ptr [eax+114h] ; Y
.text:004A8C2A                 mov     ecx, [eax+110h]
.text:004A8C30                 push    ecx             ; X
.text:004A8C31                 call    ds:SetCursorPos
Now I just need help in finding out how to get our data positions in the class we use and then we can plug into where were using EQADDR_MOUSE X or Y the above spots and set the position with some _asm code.

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Thu Nov 03, 2005 1:54 am

"/click left" and "/click right" work. It's the mouse moving part that is broken.
--
<Thedude> I have to say your there retarded one.

tbigg
orc pawn
orc pawn
Posts: 21
Joined: Fri Oct 10, 2003 1:55 am

Post by tbigg » Sat Nov 05, 2005 1:38 pm

Makes sense. Before the patch, mouse movement was controlled entirely by EQ. Now EQ uses the Windows mouse object. Clicks are probably still controlled by EQ, which is why they still work.

bushdaka
a hill giant
a hill giant
Posts: 185
Joined: Wed Jun 16, 2004 11:01 am

Post by bushdaka » Mon Dec 05, 2005 1:24 pm

http://www.macroquest2.com/phpBB2/viewtopic.php?t=12490

While not the best solution since /mmouseto affects the Windows cursor which would affect all applications, it does get the job done. Substitute /mmouseto for /mouseto.