mIRC Homepage
Posted By: kwell Query - 20/10/11 09:33 PM
How to open private window with one click?
Posted By: argv0 Re: Query - 21/10/11 06:24 AM
Can't. Two clicks minimum.
Posted By: kwell Re: Query - 21/10/11 10:38 AM
thanks argv0!
Posted By: hixxy Re: Query - 22/10/11 02:00 AM
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
  }
}
Posted By: Tomao Re: Query - 22/10/11 03:44 AM
Why single click? I mean, is it really bothersome to click twice to initiate a query with a nickname?
Posted By: Wims Re: Query - 23/10/11 12:51 PM
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
  }
}
Posted By: jaytea Re: Query - 23/10/11 02:18 PM
how confident are you of the clicks occurring at the same time as the execution of that alias? wink
Posted By: Wims Re: Query - 23/10/11 02:51 PM
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..
© mIRC Discussion Forums