mIRC 窗口中的滚动条

标签 scroll scrollbar irc mirc

是否可以删除或隐藏(隐藏以允许鼠标滚轮)自定义 mIRC 窗口中的滚动条。具体来说是垂直滚动条。

如果您查看图片的最右侧,您会看到滚动条。

有办法删除吗?

enter image description here

最佳答案

是的,可以删除。

我编写了这个 AHK 脚本,它将隐藏 mIRC 中的滚动条,即使在调整窗口大小以及最小化和恢复窗口后也会保持隐藏状态。

将其加载到 autohotkey一旦您点击 channel 或切换栏中的任何内容,它就会开始工作。

~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 客户端内一次最大化一个窗口,如下所示。但是您可以打开任意多个 channel /查询窗口,脚本可以处理它们之间的切换。

mIRC with no scrollbar

关于mIRC 窗口中的滚动条,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18122180/

相关文章:

android - 适用于 android 和 ios 的水平数字选择器

javascript - html5 canvas 中的 OffsetX 适用于 IE、Safari、Chrome,但不适用于 Firefox

javascript - 仅当用户在特定 DIV 上滚动时才显示 chart.js 动画

html - 固定宽度的内容,无论是否存在滚动条

android - 在 WebView 中隐藏滚动条

java - 多线程的新手 - 多线程的最具成本效益的方法?

c# - IRC Bot 不识别服务器 - 连接挂起

javascript - 如何停止滚动延迟到父滚动条

html - 纯 CSS 的 Div 自定义滚动条

python - 从文件中读取 I/O (python)