Project

General

Profile

Actions

Support #1714

closed

Restore query windows

Added by Andreas vb about 10 years ago. Updated almost 10 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.

Actions #1

Updated by Per Amundsen about 10 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.

Actions #2

Updated by Andreas vb about 10 years ago

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

Actions #3

Updated by Per Amundsen about 10 years ago

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

Actions #4

Updated by Per Amundsen about 10 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
  }
}
Actions #5

Updated by Andreas vb about 10 years ago

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

Actions #6

Updated by Per Amundsen about 10 years ago

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

Actions #7

Updated by Per Amundsen almost 10 years ago

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

Updated by Per Amundsen almost 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF