Project

General

Profile

Support #1714

closed

Restore query windows

Added by Andreas vb over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Interface
Target version:
Start date:
11/14/2014
Due date:
% Done:

0%

Estimated time:
Operative System:
All

Description

Would be nice to have an option to restore all windows on restart, incl. Query.

#1

Updated by Per Amundsen over 6 years ago

"File -> Options -> Windows -> Save and restore open servers"

This will save all open servers as autoconnect and add all open channels as autojoin channels.

For querys a quick script could be used.

#2

Updated by Andreas vb over 6 years ago

I have all servers in Server List, but need to figure out how to save all Queries automatically. :D

#3

Updated by Per Amundsen over 6 years ago

I'll make a small script for you and post it here a little later.

#4

Updated by Per Amundsen over 6 years ago

here you go :)

on *:OPEN:?:*:{
  var %name = % $+ $network $+ _query
    set -s  [ %name ] $addtok( [ %name ] ,$target,32)
}

on *:CLOSE:?:{
  var %name = % $+ $network $+ _query
  set [ %name ] $remtok( [ %name ] ,$target,1,32)
}

raw 376:*:{
  openquerys
}

raw 422:*:{
  openquerys
}

alias query {
  var %name = % $+ $network $+ _query
    set [ %name ] $addtok( [ %name ] ,$1,32)
    !query $1-
}

alias -l openquerys {
  var %name = % $+ $network $+ _query , %s = 1

  while ($gettok( [ %name ] ,%s,32)) {
    if (!$query($v1)) {
    echo -s $gettok( [ %name ] ,%s,32)
      query $gettok( [ %name ] ,%s,32)
    }
    inc %s
  }
}
#5

Updated by Andreas vb over 6 years ago

Thanks, I'll see if it works.
Everything in Scripts?

#6

Updated by Per Amundsen over 6 years ago

Yes, just press alt + r and paste the script into a blank file, then press save :)

#7

Updated by Per Amundsen over 6 years ago

  • Tracker changed from Feature to Support
  • Status changed from New to Resolved
  • Target version set to 1.9.6
#8

Updated by Per Amundsen over 6 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF