AutoHotkey Community

It is currently May 25th, 2012, 8:10 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: hover over mirc tabs
PostPosted: October 22nd, 2007, 4:53 pm 
Offline

Joined: June 7th, 2007, 1:33 pm
Posts: 1019
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 24th, 2007, 4:54 pm 
Offline

Joined: June 7th, 2007, 1:33 pm
Posts: 1019
...


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: kwfine, rbrtryn, vsub and 52 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group