mIRC Home    About    Download    Register    News    Help

Print Thread
#234355 20/10/11 09:33 PM
Joined: Sep 2007
Posts: 109
K
kwell Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Sep 2007
Posts: 109
How to open private window with one click?

kwell #234359 21/10/11 06:24 AM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
Can't. Two clicks minimum.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
argv0 #234360 21/10/11 10:38 AM
Joined: Sep 2007
Posts: 109
K
kwell Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Sep 2007
Posts: 109
thanks argv0!

kwell #234369 22/10/11 02:00 AM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
; Proof of concept. 
on *:start:{ .timerpoc -hio 0 500 poc }
alias poc {
  if (!$query($$snick($active,1))) { 
    var %nick = $snick($active,1) 
    sline -r $active
    query %nick
  }
}

kwell #234371 22/10/11 03:44 AM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Why single click? I mean, is it really bothersome to click twice to initiate a query with a nickname?

hixxy #234401 23/10/11 12:51 PM
Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
But if you start selecting lines in the nicklist with the keyboard, it's going to be annoying
I added $mouse.key and changed a few things on the timer:
Code:
on *:start:.timerpoc -hi 0 100 poc
alias poc {
  if ($mouse.key & 1) && (!$query($$snick($active,1))) { 
    var %nick = $snick($active,1) 
    sline -r $active
    query %nick
  }
}

Last edited by Wims; 23/10/11 02:52 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #234402 23/10/11 02:18 PM
Joined: Feb 2006
Posts: 546
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Feb 2006
Posts: 546
how confident are you of the clicks occurring at the same time as the execution of that alias? wink


"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde
jaytea #234403 23/10/11 02:51 PM
Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
Very confident laugh
It wasn't working really great with 500ms indeed but with 200, it was ok for me. I edited the value to 100..

Last edited by Wims; 23/10/11 02:53 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard