SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    SQA Council
    Join Date
    Mar 2001
    Posts
    8,591
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Dos Prompt Automation

    User psy497 (brian_bristol@jdedwards.com.nospam) posted:

    Does anyone have any information regarding using TSL to enter text in
    a dos window?

    Brian Bristol



  2. #2
    SQA Council
    Join Date
    Mar 2001
    Posts
    8,591
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Dos Prompt Automation

    User Hussein Nassereddine (hussein_nassereddine@hotmail.com.nospam) posted:

    This should work, some characters winrunner will not type such as - you
    probaply need to creat a .bat file
    rc = reload ("win32api", 1, 1);
    hWnd = FindWindowA("ConsoleWindowClass","C:\WINNT\system3 2\cmd.exe");
    DWIN = "{ handle: " & hWnd & " }";
    set_window (DWIN);
    win_highlight (DWIN);
    win_type (DWIN, "text goes here,<kReturn>");
    good luck
    Hussein Nassereddine


    __________________________________________________ _______________
    Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com



  3. #3
    Member
    Join Date
    Sep 2001
    Posts
    32
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Dos Prompt Automation

    Use dos_system();

    Unless you are talking about playback against an already opened command prompt which I would avoid. What are you trying to do?

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

  4. #4
    Senior Member
    Join Date
    Mar 2002
    Location
    Irvine, CA 92606 USA
    Posts
    384
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Dos Prompt Automation

    If you are using Windows 98SE change use:

    hWnd = FindWindowA ( "tty", "MS-DOS Prompt" );


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

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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 04:49 PM.

Copyright BetaSoft Inc.