SPONSORS:






User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Senior Member
    Join Date
    Jul 2000
    Posts
    117
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I GetChildrent windows on target machine?

    Which part doesn't work?

    Are you sure the Connect() is succeeding?

    If there is any error output, that might help us help you ...

    If not -- what are you getting? An empty list?


    ------------------

  2. #2
    Member
    Join Date
    Nov 2002
    Location
    Pacifica, CA, California
    Posts
    38
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How can I GetChildrent windows on target machine?

    I am using ST 5.0.3

    I am trying to connect to target machine and get all active windows from the desktop.

    This doesn't work:
    target_machine = Connect(sMachine)
    sMachine-> listprint(Desktop.GetChildrent())

    Any other suggestions!

    Thanks,
    ~Kuzia~

    ------------------

  3. #3
    Member
    Join Date
    Nov 2002
    Location
    Pacifica, CA, California
    Posts
    38
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I GetChildrent windows on target machine?

    Connecting to target machine works.

    GetChildrent() returns an empty list.

    ------------------

  4. #4
    Senior Member
    Join Date
    Jul 2000
    Posts
    117
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I GetChildrent windows on target machine?

    OK, makes sense. Take a look at your syntax again:

    What you're doing here is calling the ListPrint() function on the remote machine ... and passing the results of the LOCAL Desktop.GetChildren() call as an argument.

    Try:

    and see if that does the trick.

    I didn't try it personally, but suspect this ought to do it for you.


    ------------------

  5. #5
    Member
    Join Date
    Nov 2002
    Location
    Pacifica, CA, California
    Posts
    38
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I GetChildrent windows on target machine?

    I am getting syntax error when writing it this way:
    ListPrint(sMachine->Desktop.GetChildren())


    ------------------

  6. #6
    Senior Member
    Join Date
    Jul 2000
    Posts
    117
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I GetChildrent windows on target machine?

    ... I *knew* that should have checked that before I responded ... sorry ...

    As you note, you're getting a syntax error -- I think the correct syntax is to use the machine name in brackets -- e.g. [sMachine]Desktop.GetChildren() -- but I don't have access to Silk at the moment to verify that. I'll try to send an update as soon as I can check the proper syntax.


    ------------------

  7. #7
    Member
    Join Date
    Nov 2002
    Location
    Pacifica, CA, California
    Posts
    38
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I GetChildrent windows on target machine?

    I tried brackets before, it didn't work.

    I think ST doesn't support GetChildren() function on target machine.

    ------------------

  8. #8
    Senior Member
    Join Date
    Apr 2001
    Location
    San Diego,CA,USA
    Posts
    108
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I GetChildrent windows on target machine?

    after having connected to the target machine you will just do Desktop.GetChildren()

    that should work no need for
    taggetmachine->listprint(Desktop.GetChildren())

    just do listPrint(Desktop.GetChildren())

    ------------------

  9. #9
    Member
    Join Date
    Nov 2002
    Location
    Pacifica, CA, California
    Posts
    38
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I GetChildrent windows on target machine?

    Hi AUTOMATION_GURU,

    this doesn't work:
    listPrint(Desktop.GetChildren())
    ListPrint returns an empty list

    I got two errors:
    ***Error: Parameter 1 to function ListPrint is NULL
    ***Error: No default machine has been set
    occurred in AgentGetChildren()


    ------------------


    [This message has been edited by kuzia10 (edited 12-17-2002).]

  10. #10
    Senior Member
    Join Date
    Apr 2001
    Location
    San Diego,CA,USA
    Posts
    108
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I GetChildrent windows on target machine?

    fOLLOWING WORKS FINE FOR ME TRY THIS AND SEE IF IT WORKS FOR YOU.
    ------------------


    [This message has been edited by AUTOMATION_GURU (edited 12-17-2002).]

 

 
Page 1 of 2 12 LastLast

Posting Permissions

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

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 10:55 AM.

Copyright BetaSoft Inc.