here we go:
http://www.xlobby.com/files/Shaggy/xmovewindow/XMoveWindow.dllThere is one thing to look out for. Xl V3 handles screen res differently. So basically your screen res must be the same as your skin. Just open one of the xml files in your skin and look at the top and you will know what I mean.
DO NOT CHANGE this without having a full backup of your skin.
I change only this in the code:
- Code: Select all
public bool SetScreen(string Name)
{
if (Name == this.Screen)
{
return true;
}
// str2 = string.Concat(new object[] { button.rect.X, ":", button.rect.Y, ":", button.rect.Width, ":", button.rect.Height });
// string command = string.Format("buttonsize:{0}_{1}", Name, this.strName);
// string strPos = xhelper.SendCommand(command);
XPluginSDK.Button xbutton = null;
string command = string.Format("{0}_{1}", Name, this.strName);
xbutton = xhelper.GetButton(command);
int x = -666;
x = xbutton.GetX();
int y = xbutton.GetY();
int Cw = xbutton.GetWidth();
int Ch = xbutton.GetHeight();
string strPos = string.Concat(new object[] { x, ":", y, ":", Cw, ":", Ch });
// Logging.Log.Write(strPos);
// 250:100:406:278
// real size in XLEventArgs 250 200 100 200
if (x!=-666)
{
this.wpos = new Winposition(strPos);
this.InScreen = true;
return true;
}
this.Screen = Name;
this.InScreen = false;
return false;
}