First, the correct format for the mouseto command is now:
/mouseto X Y abs|rel
You MUST specify either "abs", for absolute coordinates, or "rel", for coordinates relative to the current mouse position. Eventually I'll fix it so that "abs" is the default and won't have to be specified.
You CAN NOT, at this time, do
/mouseto location
The MouseTo function does not support location parsing yet. I never got around to writing it in, should be a simple fix however.
Click takes the format
/click left|right
/click left|right location
If the location desired is not in locations.txt the mouse will move to 0,0.
Now, actual code. If your mouse is not moving to the correct location, before you yell for help try the following changes to EQLib.cpp:
In ParseMouseLoc, change
Code: Select all
ClickX = (atoi(ButtonX) + XMLloc.x + (int)(XMLloc.w/2) - MouseInfo->X)/2;
ClickY = (atoi(ButtonY) + XMLloc.y + (int)(XMLloc.h/2) - MouseInfo->Y)/2;Code: Select all
ClickX = (atoi(ButtonX) + XMLloc.x + (int)(XMLloc.w/2) - MouseInfo->X);
ClickY = (atoi(ButtonY) + XMLloc.y + (int)(XMLloc.h/2) - MouseInfo->Y);Code: Select all
if (!strncmp(szArg3, "abs", 3)) {
nX = (atoi(szArgX)-MouseInfo->X)/2;
nY = (atoi(szArgY)-MouseInfo->Y)/2;
} else if (!strncmp(szArg3, "rel", 3)) {
nX = atoi(szArgX)/2;
nY = atoi(szArgY)/2;
}
}Code: Select all
if (!strncmp(szArg3, "abs", 3)) {
nX = (atoi(szArgX)-MouseInfo->X);
nY = (atoi(szArgY)-MouseInfo->Y);
} else if (!strncmp(szArg3, "rel", 3)) {
nX = atoi(szArgX);
nY = atoi(szArgY);
}
}Hopefully this will forestall a mass of questions about why the mouse is only moving part of the way to where you want it.
Edit: EqMule -> since this is oudated info, im unsticking this post to make room for other stickys.



