; ; AutoHotkey Version: 1.x ; Language: English ; Platform: Win9x/NT ; Author: A.N.Other ; ; Script Function: ; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder) ; #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. #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 }