mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2003
Posts: 2,812
Raccoon Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Dear Khaled,

I would like to request the restriction on /rline (and other /*line) commands be lifted from channel, query and other windows that their use is disallowed.

The main thing I wish to use /rline for is to remove Join/Part/Quit/Nick/Mode messages from channel buffers several minutes after their occurrence. This would make it a lot easier to follow conversations in both especially large and especially quiet channels... both which are plagued by a distractingly high signal to noise ratio of these events.

I know I could choose to hide these event types, but then they wouldn't be logged. I could arbitrary write these events to the log files, but I'd also never see them on my screen -- eg, a user having connection issues while I'm trying to talk to them.

I would really really love the ability to /rline these events from channel windows after 10~60 minutes passed, it would absolutely improve my enjoyment of IRC.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Joined: Mar 2010
Posts: 146
Vogon poet
Offline
Vogon poet
Joined: Mar 2010
Posts: 146
/rline replaces a line, you meant /dline, right?


Nothing...
Joined: Feb 2003
Posts: 2,812
Raccoon Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Sorry, you are correct. I meant /dline for delete.

But /rline, /aline, /iline and /cline too.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Joined: Feb 2015
Posts: 1
J
Mostly harmless
Offline
Mostly harmless
J
Joined: Feb 2015
Posts: 1
I, too, would really like to see this feature. I want to make a script that, when you click a nickname in a channel, would color all messages by that nickname in that channel window. /cline could do that, if it would work in channel windows.

Joined: Feb 2003
Posts: 2,812
Raccoon Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
bump.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Joined: Aug 2016
Posts: 57
R
Babel fish
Offline
Babel fish
R
Joined: Aug 2016
Posts: 57
Nice suggestion!


rockcavera
#Scripts @ irc.VirtuaLife.com.br
Joined: Sep 2015
Posts: 101
Vogon poet
Offline
Vogon poet
Joined: Sep 2015
Posts: 101
Nice suggestion i think too.. but, till now, many important suggestions was made and let see how many of these suggestions was added? Just a few! I think that Khaled is not so interested to make mIRC more better and more powerful, because he put his powers only to correct bugs and to make minor changes.

I don't believe that Khaled will add so soon this suggestion and more other important suggestions like: multilingual support, play gif animations in a dialog, add $uac identifier, $mircadmin to tell if the mirc is running with administrator rights or not, /run -w to wait until the app will be terminated and more other suggestions that was related in this forum.

Joined: Apr 2004
Posts: 871
Sat Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2004
Posts: 871
Originally Posted By: klez
and more other important suggestions like: ..

Please do not hijack other threads to push your own ideas.


Saturn, QuakeNet staff
Joined: Aug 2016
Posts: 57
R
Babel fish
Offline
Babel fish
R
Joined: Aug 2016
Posts: 57
Klez, most of the things you said is possible to do with mirc scripting.

To know if mIRC is running with admin privileges.

Code:
; $isadmin
; Returns $true or null

alias isadmin {
  if (!$isid) return
  set -l %a isadmin_ $+ $ticks $+ $rand(1111,9999))
  if ($com(locator_ $+ %a)) .comclose locator_ $+ %a
  .comopen locator_ $+ %a WbemScripting.SWbemLocator
  if ($comerr) return
  if ($com(services_ $+ %a)) .comclose services_ $+ %a
  if (!$com(locator_ $+ %a,ConnectServer,3,dispatch* services_ $+ %a)) || ($comerr) return
  .comclose locator_ $+ %a
  if ($com(os_ $+ %a)) .comclose os_ $+ services_ $+ %a
  if (!$com(services_ $+ %a,ExecQuery,3,bstr,Select * from Win32_OperatingSystem,dispatch* os_ $+ %a)) || ($comerr) return
  .comclose services_ $+ %a
  if ($com(os_ $+ %a,Count,3)) && ($comval(os_ $+ %a,1,SystemDirectory)) set -l %sysdir $v1 $+ \
  else return
  .comclose os_ $+ %a
  .fopen -o %a $qt(%sysdir $+ %a $+ .tmp)
  .fwrite %a $!true
  .fclose %a
  set -l %read $read(%sysdir $+ %a $+ .tmp)
  .remove $qt(%sysdir $+ %a $+ .tmp)
  return %read
}


Run with wait

Code:
; run2 -N <filename> [parameters]
; N = intWindowStyle in https://msdn.microsoft.com/en-us/library/d5fk67ky(v=vs.85).aspx
; //run2 cmd.exe | echo -s cmd.exe closed!

alias run2 {
  set -l %s 1
  if ($regex($1,/^-(\d+)$/)) {
    %s = $regml(1)
    tokenize 32 $2-
  }
  set -l %a run_ $+ $ticks $+ $rand(1111,9999))
  if ($com(%a)) .comclose %a
  .comopen %a WScript.Shell
  if ($comerr) return
  noop $com(%a,Run,1,bstr,$1-,int,%s,bool,true)
  .comclose %a
}


UAC
Code:
; $uac(File[,Arguments[,Directory[,Show]]])
; $uac(mirc.exe,$null,$nofile($mircexe))
; https://msdn.microsoft.com/pt-br/library/windows/desktop/gg537745(v=vs.85).aspx

alias uac {
  if (!$isid) || (!$1) || (($3) && (!$isdir($3))) || (($4) && (!$regex($4,/^\d+$/))) return
  set -l %s 1
  if ($regml(1)) %s = $v1
  set -l %arg $2
  set -l %dir $3
  set -l %a uac_ $+ $ticks $+ $rand(1111,9999))
  if ($com(%a)) .comclose %a
  .comopen %a Shell.Application
  if ($comerr) return
  if ($com(%a,ShellExecute,3,bstr,$1,bstr,%arg,bstr,%dir,bstr,runas,int,%s)) set -l %r 1
  .comclose %a
  return %r
}

Last edited by rockcavera; 17/02/17 01:41 PM.

rockcavera
#Scripts @ irc.VirtuaLife.com.br
Joined: Sep 2015
Posts: 101
Vogon poet
Offline
Vogon poet
Joined: Sep 2015
Posts: 101
Thank you for these scripts.. apreciate this! But take in view that many commands from mirc can be replaced with these kinds of scripts (using $com or even VbScript) you provided as examples! No many people know $com objects and all this, but we like to make these all ideas simple smile

P.S. $isadmin alias you provided not works, because is not tell if mirc.exe what is running it runs with admin right or not, it tells if you have admin rights in the system. smile

P.P.S. /run -h or /run -np also can be replaced with the commands you provided, $os - also and more others..

Last edited by klez; 18/02/17 12:39 PM.
Joined: Jul 2006
Posts: 4,144
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,144
You were told once not to hijack thread but instead you keep doing it, can you stop? If you want to ask for a script, you have the script & popups section, it's made for that. If you want to see these aliases built-in, make a new feature suggestion of your own just like you did for $uac.
Note that the $uac alias provided will execute a new instance of mIRC with admin rights, using the current mirc.exe in use, it does not do what you want.

To stay on topic, being able to manipulate/edit/remove lines from status/query/channel window would be extremely useful and handy.

Last edited by Wims; 18/02/17 12:27 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Sep 2015
Posts: 101
Vogon poet
Offline
Vogon poet
Joined: Sep 2015
Posts: 101
Ok, sorry.. and thank you for you idea..


Link Copied to Clipboard