Page 1 of 1

Calling RushApp.FTP.DisableSite from mIRC

Posted: Sat Nov 07, 2015 9:46 am
by Rhino Cracker
Hi,

I was trying to use the DisableSite-Command documented here: http://www.wftpserver.com/help/ftpclien ... lesite.htm" rel="nofollow" rel="nofollow
In a mIRC script using rushmirc.dll to temporary disable sites.

So I'm calling /dll rushmirc.dll RushScript RushApp.FTP.DisableSite('site1',TRUE); like usual.
And FTPRush is telling me (in FTPRush log, not in mIRC): (10:41:49) Script: row(1), col(38), Unknown member method: 'DisableSite'

Do you have any idea how to use it?

Re: Calling RushApp.FTP.DisableSite from mIRC

Posted: Sat Nov 07, 2015 9:56 am
by Rhino Cracker
To test, whether this procedure even exists in FTPRush, I've done this:

Code: Select all

procedure OnSwitchlayout(Sender);
begin
  ...
  RushApp.UI.Menu.Remote.Add('', 'Disable GS',2,'').OnClick :='disabletest';
  RushApp.UI.Menu.Remote.Add('', 'Enable GS',2,'').OnClick :='enabletest';
end;

procedure disabletest(Sender);
begin
  RushApp.FTP.DisableSite('GS',TRUE);
end;

procedure enabletest(Sendr);
begin
  RushApp.FTP.DisableSite('GS',FALSE);
end;
Disabling works, but re-enabling doesn't at my first try.

EDIT: The missing e could be the reason :D

Re: Calling RushApp.FTP.DisableSite from mIRC

Posted: Fri Feb 11, 2022 5:32 pm
by Rhino Cracker
Oh, it looks like it works in FTPRush 1.1.30. I've been using an older version (1.0.0623).