AdiIRC: Scripting https://dev.adiirc.com/https://dev.adiirc.com/favicon.ico?14868454782023-08-05T18:09:08ZAdiIRC Support/Bugs/Feature Requests
Redmine Scripting : RE: Ban with prompt for reason and time limithttps://dev.adiirc.com/boards/5/topics/2282?r=2284#message-22842023-08-05T18:09:08ZPaul Aburn
<p>Thank you so much.</p> Scripting : RE: Ban with prompt for reason and time limithttps://dev.adiirc.com/boards/5/topics/2282?r=2283#message-22832023-08-05T12:31:38ZPer Amundsenamundsen@gmail.com
<p>Should be able to do:</p>
<pre>
.KickBan (why 1 hr timer):ban -ku $+ $$?="Time:" # $$1 $$?="Reason:"
</pre> Scripting : Ban with prompt for reason and time limithttps://dev.adiirc.com/boards/5/topics/22822023-08-05T10:14:43ZPaul Aburn
<p>I am trying to set up a menu item to be able to ban users for a set period of time, that prompts me for the length of time and also to provide a reason.</p>
<p>So something a bit along the lines of the following, but that also prompts for the time length rather than having it set at 1 hr;</p>
<p>.KickBan (why 1 hr timer):ban -ku3600 # $$1 $$?="Reason:"</p>
<p>I've played around with this but utterly failed to get anything to work so any assistance much appreciated.</p> Scripting : RE: Scripts repositories linkshttps://dev.adiirc.com/boards/5/topics/202?r=2263#message-22632023-05-11T19:29:57ZPaul Janson
<p>The <a class="external" href="http://mircscripts.net">http://mircscripts.net</a> has expired, and has moved to <a class="external" href="https://mircscripts.info/?page=home">https://mircscripts.info/?page=home</a><br />As for script compatibility, the newer your $builddate the more likely that scripts will work. A lot can depend on what the script is trying to do. For example some scripts use $readini($mircini,section,item) to check for settings, and would need different ways of making equivalent code.</p>
<p>Another difference can be very old scripts that would use obsolete syntax where identifier parameters are outside of their parenthesis, like:</p>
<p>//echo -a $read -ntl1 $qt($mircini)</p>
<p>... where you should instead use the modern form like $read($qt($mircini),nt,1)</p> Scripting : RE: [Script] List all Emoticon triggers in Menubarhttps://dev.adiirc.com/boards/5/topics/791?r=2259#message-22592023-05-02T06:26:40Zwestor (GR)westor7@gmail.com
<p>After a break report i fixed a bug and the new version is:</p>
<pre>
alias -l listemoticons {
; Show icons using the new $menuicon identifier
if ($istok(begin end,$1,32)) { return - }
if ($emoticons($1) !== $null) { return $menuicon($emoticons($1).file) $1 $+ $chr(42889) $replace($v1,$chr(58),$chr(42889)) $+ :editbox -ai $v1 }
}
</pre> Scripting : RE: Halt window closinghttps://dev.adiirc.com/boards/5/topics/2221?r=2241#message-22412023-02-14T07:51:19ZPer Amundsenamundsen@gmail.com
<p><a class="wiki-page" href="https://dev.adiirc.com/projects/adiirc/wiki/On_CLOSING">on CLOSING</a> was added in the latest beta.</p> Scripting : RE: additional parameters for /rawloghttps://dev.adiirc.com/boards/5/topics/2234?r=2236#message-22362023-01-24T13:00:13ZPer Amundsenamundsen@gmail.com
<p>If you are talking about getting the output from raw messages in rawlog, you can use the <a class="wiki-page" href="https://dev.adiirc.com/projects/adiirc/wiki/Debug">/debug</a> command instead which can output to a custom window or a file and even filter using a custom identifier.</p> Scripting : additional parameters for /rawloghttps://dev.adiirc.com/boards/5/topics/22342023-01-24T09:32:52ZDaniel Kempton
<p>I have a script file, that load when I want to do testing. However,I don't see any switches to start or stop. I know I just use /rawlog to start, and /window close rawlog, but I'd like to suggest/request the following:</p>
<p>-b opens the rawlog window<br />-q closes the rawlog window<br />-s $1 closes the rawlog window and saves to $1</p> Scripting : RE: Halt window closinghttps://dev.adiirc.com/boards/5/topics/2221?r=2233#message-22332023-01-22T19:40:04ZDaniel Kempton
<p>Is there an "on minimize" event listener. I had, what I thought would be a wonderful solution. That was to tell adiIrc to minimize when clicking the 'x' and then put specific code code in the "on *:close: " listener. However, if set to minimize on the 'x' is enabled, the on close is never called. Probably by far the simplest solution, and one that certainly fit my needs, would be an "on minimize" event listener. From there I can check to see if certain conditions are met, and handle accordingly including closing the window, using /window -c.</p> Scripting : RE: Halt window closinghttps://dev.adiirc.com/boards/5/topics/2221?r=2231#message-22312023-01-19T16:52:35ZPer Amundsenamundsen@gmail.com
<p>I see. I do think training the user to click the right button is the right solution in most cases, but I will think about something for a future version.</p> Scripting : RE: Halt window closinghttps://dev.adiirc.com/boards/5/topics/2221?r=2230#message-22302023-01-19T15:31:32ZDaniel Kempton
<p>User error</p> Scripting : RE: Halt window closinghttps://dev.adiirc.com/boards/5/topics/2221?r=2229#message-22292023-01-18T16:25:04ZPer Amundsenamundsen@gmail.com
<p>You cannot control closing of windows from msl. Is there any reason why you don't just click the minimize button instead?</p> Scripting : RE: Halt window closinghttps://dev.adiirc.com/boards/5/topics/2221?r=2228#message-22282023-01-18T15:11:15ZDaniel Kempton
<p>I am clicking on the red-x. I have tried using the ON ^*:CLOSE:@: looking only for custom windows, and while I can catch the event, I can't stop it. I had hoped using ^ would allow me to interrupt the close, but neither halt, nor haltdef worked. There are a couple of custom windows I want to keep open, and if closed simply minimize.</p> Scripting : RE: Halt window closinghttps://dev.adiirc.com/boards/5/topics/2221?r=2222#message-22222023-01-15T02:58:08ZPer Amundsenamundsen@gmail.com
<p>How are you closing them?</p> Scripting : Halt window closinghttps://dev.adiirc.com/boards/5/topics/22212023-01-14T19:47:32ZDaniel Kempton
<p>I don't want really want to enable the confirm window closure. However I would like to halt the closure of custom windows. I have two custom windows that open for each connection for a whois and aka script I run. I would like to stop those windows closing.</p>