mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2003
Posts: 3
C
Self-satisified door
OP Offline
Self-satisified door
C
Joined: Sep 2003
Posts: 3
Hello there,

I go to certain channels and get many query windows open due to results that I have searched for and I have a feature request that I was hoping that could be implemented.

When a new query window opens I am unable to switch to it via Ctrl + Tab unless I have clicked on the window with my mouse.

What I am wondering is if their is a way that mIRC can somehow recognize the new window so I do not have to click on it and that way switch through all windows without having to use my mouse at all.

Thanks so much and keep up the good work.

RGDS & TIA

Curtis M.

Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
CTRL + N does channel windows and CTRL + Q does message windows.

Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
CTRL + Q


Code:
//if ( khaled isgod ) echo yes | else echo no
Joined: Sep 2003
Posts: 3
C
Self-satisified door
OP Offline
Self-satisified door
C
Joined: Sep 2003
Posts: 3
Hi,

That works great. I do have an additional question regarding your reply.

Is their anyway to make mIRC use Ctrl + Tab instead of Ctrl + Q or if not just remap the keys?

I appreciate your help.

RGDS & TIA

Curtis M.

Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
Offhand I would say "no there is no way to do that", and if I am wrong and there is a way I would say "FOR THE LOVE OF <snip> DON'T DO THAT" -- CTRL-TAB is the windows hotkey for task switching. A program reassigning a new function to this combination would be seriously messing up the system.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
You're thinking ALT+TAB.
CTRL+TAB can be assigned to application specific functions.

(CurtisMinBC): No, CTRL+TAB cannot be reassigned... besides Q is right next to TAB anyway.

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Since I hate using ctrl[+shift]+tab and alternating between ctrl+n and ctrl+q, I've written the following script a long time ago (I believe that's when mIRC 5.9 was out, but I've modified it to support 6+ later).. it's a little messy, but it works. You can use it if you want.

Code:
#SB on
;### Command/keyboard support for switchbar (I hate ctrl+tab) ###
;
; /sb [1|2|q|w]
; 1 = previous (F3)
; 2 = next     (F4)
; q = first    (shift+F3)
; w = last     (shift+F4)
;
; If only "/sb" is typed, it switches to next window.

; You can modify the shortcuts used below (F3, F4 etc), or add more, or remove etc:
alias f3  { sb 1 }
alias f4  { sb 2 }
alias sf3 { sb q }
alias sf4 { sb w }

alias sbmirc6 {
  if ($scon(0) &gt; 1) {
    var %c = 1
    while ($scon(%c).cid &lt; $cid) { inc %c }
    %c = %c $1 1
    if (%c &gt; $scon(0)) { %c = 1 }
    elseif (!%c) { %c = $scon(0) }
    return %c
  }
  return 1
}
alias sb0 {
  var %s = $window(*,0)
  while ($window(*,%s).state == hidden) { dec %s }
  return %s
}
alias sb {
  var %mirc6 = $iif($version &gt;= 6,1)
  if ($1 == q) { $iif(%mirc6, scon $iif($2,$sbmirc6(+),1) ) window -a "status window" }
  elseif ($1 == w) {
    var %window = window -a $!+(",$window(*,$sb0),")
    if (%mirc6) { scon $iif($2,$sbmirc6(-),$scon(0)) %window }
    else { $(%window,2) }
  }
  elseif ($istok(1 2,$1,32)) {
    var %a = 1
    while ($window(*,%a) != $active) { inc %a }
    var %s = %a + $replace($1,1,-1,2,+1)
    while ($window(*,%s).state == hidden) { $iif($1 == 1,dec,inc) %s }
    if (%s &lt; 1) { .timer 1 0 sb w 1 }
    elseif (%s &gt; $sb0) { .timer 1 0 sb q 1 }
    else { window -a $+(",$window(*,%s),") }
  }
  else { .timer 1 0 sb 2 }
}
#SB end


* cold edits his posts 24/7

Link Copied to Clipboard