是否可以在自定义mIRC窗口中删除或隐藏滚动条(隐藏以允许鼠标滚动)。垂直滚动条是特定的。
如果你看图片的右边,你会看到滚动条。
有什么办法把它移除吗?

发布于 2013-08-19 18:46:23
是的,可以移除。
我把这个AHK脚本放在一起,它将隐藏在mIRC中的滚动条,即使在调整窗口大小之后也会隐藏它,并最小化和恢复窗口。
将其加载到自动热键中,一旦您单击某个频道或开关栏中的任何内容,它将开始工作。
~LButton::
MouseGetPos, , , , OutputVarControl
if (OutputVarControl = "mIRC_SwitchBar1" or OutputVarControl = "ScrollBar1")
{
WinWait, ahk_class mIRC
Control, Style, Hide, ScrollBar1
ControlGetPos, x,, Width,, mIRC_Channel1
ControlMove, mIRC_Channel1, ,, (Width + 18)
ControlGetPos, x,, Width,, mIRC_Query1
ControlMove, mIRC_Query1, ,, (Width + 18)
ControlGetPos, x,, Width,, mIRC_Status1
ControlMove, mIRC_Status1, ,, (Width + 18)
ControlGetPos, x,y, Width,Height, ListBox1
ControlMove, ListBox1, (x - 18),, ,
}
else if (OutputVarControl = "MSTaskListWClass1")
{
sleep, 500
if WinActive("ahk_class mIRC"){
WinWait, ahk_class mIRC
Control, Style, Hide, ScrollBar1
WinGetPos, X, Y, W, H, ahk_class mIRC
WinMove, ahk_class mIRC, , , , (W + 18),,
WinGetPos, X, Y, W, H, ahk_class mIRC
WinMove, ahk_class mIRC, , , , (W - 18),,
ControlGetPos, x,, Width,, mIRC_Channel1
ControlMove, mIRC_Channel1, ,, (Width + 18)
ControlGetPos, x,, Width,, mIRC_Query1
ControlMove, mIRC_Query1, ,, (Width + 18)
ControlGetPos, x,, Width,, mIRC_Status1
ControlMove, mIRC_Status1, ,, (Width + 18)
ControlGetPos, x,y, Width,Height, ListBox1
ControlMove, ListBox1, (x - 18),, ,
}
}
return假设您使用mIRC时,在mIRC客户端内部一次最大限度地使用一个窗口,如下所示。但是您可以打开同样多的通道/查询窗口,脚本可以处理它们之间的切换。

发布于 2013-08-15 09:00:11
不,主自定义窗口中的滚动条不能移除.
https://stackoverflow.com/questions/18122180
复制相似问题