Results 1 to 1 of 1

Thread: Target new window help

  1. #1
    Join Date
    Oct 2013
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Target new window help

    Hello guys.

    Im pretty new to scripting and i need your help.

    I am working on a script that need to reload the nxtclient sometimes but i can't figure out how to find and target the new loaded nxtclient.



    The code below doesn't seems to work for some reason, found it in docs.





    function FindAndSetTarget(TitlePrefix: String; SetAsTarget: Boolean): Boolean;
    var
    T: TSysProcArr;
    I: Integer;
    begin
    T:= GetProcesses();
    for I := 0 to high(T) do
    if ExecRegExpr('^' + TitlePrefix, T[i].Title) then
    begin
    Result := True;
    if SetAsTarget then
    begin
    SetTarget(T[i]);
    ActivateClient;
    end;
    end;
    end;




    Found a thread about this a while ago but can't find it.

    I know how to close and load client but not target it.... please help.



    In the hope of success, primaz








    EDIT: Ok I got it, the code was working, just needed to rebot everything, dunno how to change to resolved tho.
    Last edited by primaz; 12-20-2019 at 05:22 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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