azure
Joined: 07 Jun 2007 Posts: 296
|
Posted: Mon Oct 22, 2007 4:53 pm Post subject: hover over mirc tabs |
|
|
hello
this is a script that clicks tabs in mirc by hovering, by the respected jgpaiva
| Code: |
#singleinstance,force
coordmode,mouse,screen
loop
{
sleep,200
mousegetpos,x,y,window,control
WinGetClass,WindowClass,ahk_id %window%
if(x < (oldX +10) and y < (oldY +10) and x > (oldX -10) and y > (oldy -10) and windowclass = "mIRC" and control = "mIRC_SwitchBar1")
{
if(!flag)
{
click
flag := true
}
}
else
flag := false
oldx := x
oldy := y
}
|
however, there are some problems:
when sleep is too low, it flickers the window (clicks multiple times) and also I would like to prevent it from clicked an already active tab after hovering (so it wont minimze active tabs, it will only maximize background tabs)
any suggestion?
thanks |
|