/click left npctrade give

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

motd2k
a ghoul
a ghoul
Posts: 141
Joined: Fri Oct 25, 2002 9:46 am

/click left npctrade give

Post by motd2k » Thu Dec 04, 2003 4:00 pm

The xmp parser for npctrade doesnt seem to be working properly, it always moves the mouse to the position of the button relative to 0,0



MOTD

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Thu Dec 04, 2003 5:07 pm

Default UI?

motd2k
a ghoul
a ghoul
Posts: 141
Joined: Fri Oct 25, 2002 9:46 am

Post by motd2k » Fri Dec 05, 2003 3:04 am

Yeh, nothing custom in my UI at all.


MOTD

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Fri Dec 05, 2003 4:14 am

We need to rewrite /click to take advantage of the actual windows and GetChildItem instead of this move mouse to x,y and click bs.

Code: Select all

CXWnd *button=((CSidlScreenWnd*)pGiveWnd)->GetChildItem("whatever the screen id for the button is");
((CSidlScreenWnd*)pGiveWnd)->WndNotification(button,XWM_LCLICK,0);
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Fri Dec 05, 2003 8:37 am

It's been talked about. My concern is needing that code for every single button, window, etc. There are a lot of locations you know :)

At the time I put together the mouse routines it was the best generic solution we had, since we didn't have direct access to the functions as we do now. Now I'm just trying to think of a way to do it without turning 80 lines of code into 8000.

I'll start a new thread in General Development and we'll start looking at what we can do.