Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 2 of 2

Thread: child process

  1. #1
    Join Date
    May 2008
    Location
    The Netherlands
    Posts
    109

    Grin child process

    Hi guys,

    what i want is that when the app starts the encryption/decryption process it shows a statusdlg because crypto has no callback function :( and it must keep on going until the crypto is done and then stop

    so what ive done is i've made a second little app and the only thing it does is keep on repeating the message
    please wait, encrypting.
    please wait, encrypting..
    please wait, encrypting...
    please wait, encrypting.
    so on
    but it takes some time to load that app so enumerateprocess or enumeratetitles won't work because the script has already finished before the app is even visible or in the tasklist
    it works perfectly when the app has to encrypt/decrypt large things because then the app is already visible

    thanks

  2. #2
    Join Date
    May 2008
    Location
    The Netherlands
    Posts
    109
    what is wrong with this script? because it won't work

    Code:
    File.Run("AutoPlay\\Docs\\encrypting\\littleapp.exe", "", "", SW_SHOWNORMAL, true);
    
    instances_of_file = 0;
    file_to_check_for = "littleapp.exe";
    repeat
    
    processes = Window.EnumerateProcesses();
    
    for n, file_path in processes do
        file = String.SplitPath(file_path);
        if (String.Lower(file.Filename..file.Extension)) == file_to_check_for then
            instances_of_file = instances_of_file +1;
        
        end
    end
    
    until instances_of_file >= 1
    
    Crypto.BlowfishEncrypt(""..input, ""..concat2, ""..key);
    
    windows = Window.EnumerateTitles(false)
    for handle, title in windows do
    	result = String.Find(title, "littleapp", 1, false);
    	if (result ~= -1) then
        	Window.Close(handle, CLOSEWND_SENDMESSAGE);
    	end
    	end
    Last edited by limboo; 12-20-2008 at 11:42 AM.

Similar Threads

  1. File.run waiting for child process
    By Alexie in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 03-08-2006, 04:26 AM
  2. Terminate process???
    By korny in forum Setup Factory 7.0
    Replies: 1
    Last Post: 11-30-2005, 04:31 AM
  3. Function: Terminate Process
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 05-17-2004, 10:53 AM
  4. Search for running process ?
    By cyberwebwerks in forum AutoPlay Media Studio 4.0
    Replies: 1
    Last Post: 09-08-2003, 01:15 PM
  5. shut down process in task manager?
    By thesven in forum AutoPlay Media Studio 4.0
    Replies: 3
    Last Post: 08-20-2003, 12:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts