Topic: Autorun

How to Autorun this software after every hour or my given time limit...

Post's attachments

Attachment icon AutorunDmitiry.zip 2.96 kb, 333 downloads since 2019-03-21 

Re: Autorun

You should use Windows Task Scheduler for this.

Re: Autorun

by using scheduler every one can check and remove..

Re: Autorun

I'm not an expert on the task scheduler, but I think you can hide schedules. You may need to read up on the security features.


Otherwise, I'm not sure what you can do. To my knowledge, MVD is not going to be able to do it within itself.

Re: Autorun

I think dmitiry can do this. because he is a genius..

Re: Autorun

Please describe in more details, why you need autorun every hour? Maybe will be easy when your application do something every hour (using timer) without having to run the application.

Dmitry.

Re: Autorun

thanks for response..
i need a script that run my mvd software after every hour... is this possible???

Re: Autorun

because i want to develop a software that run automatically and check my given condition.. if condition is false then stop some services... else do nothing...

Re: Autorun

Software can't run automatically (without task scheduler), but you can make another software which will run your software every hour.
But as I said will be easy when your application start when starts Windows and do something every hour automatically using timer. Is it problem for you if your application will be sitting in the memory constantly?

Dmitry.

Re: Autorun

okay.. how to do this.. please give an example.. thanks..
and what about Mac Adddress to Number...

Re: Autorun

another question..
is this possible that software run with windows but do not show to user. i mean software start like a windows service

Re: Autorun

blackpearl8534 wrote:

another question..
is this possible that software run with windows but do not show to user. i mean software start like a windows service

const
    EveryMin = 180; // period in minutes
var
    Timer: TTimer;
    Mins: integer;




procedure DoIt;
begin
    // your script here
end;




procedure Form1_OnShow (Sender: TObject; Action: string);
begin
    Mins := 0;
    Timer := TTimer.Create(nil);
    Timer.Interval := 1;
    Timer.Enabled := True;
    Timer.OnTimer := @OnTimer;
end;
procedure Form1_OnClose (Sender: TObject; Action: string);
begin
    Timer.Free;
end;
procedure OnTimer(Sender: TObject);
begin
    // hide main form
    if Timer.Interval=1 then
    begin
        Form1.Hide;
        Timer.Interval := 60000;
        Exit;
    end;

    // do something every 'EveryMin' minutes
    if Mins >= EveryMin then
    begin
        DoIt;
        Mins := 0;
    end;
    Inc(Mins);
end;
Dmitry.

Re: Autorun

thanks Dmitiry....
sorry I was out of city.. i'll check it soon... thanks again

Re: Autorun

Please upload a sample.

JUST LEARNING, O GOD HELP ME.