刚用了@gdzqj88 的一个FUI,迷你模式不错,不过移动不太方便,刚好中间一大块滚动信息区域是用WSH面板,所以很容易。
如果你使用的WSH MODMOD或者WSH SP,因为这些封装了win32的一些API,所以不需要以下提到的dynwrapx.dll,如果你使用的普通的WSH面板插件,那么请下载dynwrapx.dll并使用regsvr32注册(过程略)此贴以普通WSH面板为例。
正题:
首先创建一个对象
try{
DX = new ActiveXObject("DynamicWrapperX");// Create an object instance.
}
catch(e){
fb.ShowPopupMessage("Create DynamicWrapperX(dynwrapx.dll) object error,Please check if it is Registered!", "INFO", 1);
}
注册API,示例:(参数及返回值详见http://www.script-coding.com/dynwrapx_eng.html)
DX.Register("user32.dll", "MessageBoxW", "i=hwwu", "r=l");
DX.Register("user32.dll", "SendMessage", "i=hlul", "r=l");
DX.Register("user32.dll", "ReleaseCapture");
DX.Register("user32.dll", "GetWindowLong", "i=hl", "r=l");
DX.Register("user32.dll", "SetWindowLong", "i=hll", "r=l");
DX.Register("user32.dll", "SetLayeredWindowAttributes", "i=hlbu", "r=b");
DX.Register("user32.dll", "FindWindow", "i=sb", "r=h");
DX.Register("user32.dll", "MoveWindow", "i=hllllb", "r=b");
DX.Register("user32.dll", "GetWindowRect", "i=hp", "r=b");
后面就可以使用DX.xxx来调用注册的API了。
此贴仅使用注册的ReleaseCapture() FindWindow 及SendMessage(x,x,x,x) 为参数
如果你使用的WSH MODMOD或者WSH SP,因为这些封装了win32的一些API,所以不需要以下提到的dynwrapx.dll,如果你使用的普通的WSH面板插件,那么请下载dynwrapx.dll并使用regsvr32注册(过程略)此贴以普通WSH面板为例。
正题:
首先创建一个对象
try{
DX = new ActiveXObject("DynamicWrapperX");// Create an object instance.
}
catch(e){
fb.ShowPopupMessage("Create DynamicWrapperX(dynwrapx.dll) object error,Please check if it is Registered!", "INFO", 1);
}
注册API,示例:(参数及返回值详见http://www.script-coding.com/dynwrapx_eng.html)
DX.Register("user32.dll", "MessageBoxW", "i=hwwu", "r=l");
DX.Register("user32.dll", "SendMessage", "i=hlul", "r=l");
DX.Register("user32.dll", "ReleaseCapture");
DX.Register("user32.dll", "GetWindowLong", "i=hl", "r=l");
DX.Register("user32.dll", "SetWindowLong", "i=hll", "r=l");
DX.Register("user32.dll", "SetLayeredWindowAttributes", "i=hlbu", "r=b");
DX.Register("user32.dll", "FindWindow", "i=sb", "r=h");
DX.Register("user32.dll", "MoveWindow", "i=hllllb", "r=b");
DX.Register("user32.dll", "GetWindowRect", "i=hp", "r=b");
后面就可以使用DX.xxx来调用注册的API了。
此贴仅使用注册的ReleaseCapture() FindWindow 及SendMessage(x,x,x,x) 为参数