SPONSORS:






User Tag List

Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Dec 1999
    Location
    Portland, OR, USA
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Sending keystrokes to desktop ?

    Is it possible to send keystrokes to the desktop when no windows are open ?

    Such as ctrl-alt-delete , or alt-tab , or shift-prtscr ?

    I have tried it, but the keystrokes are being ignored (I tried it on Windows-NT and -9X).

    I tried:

    Desktop.Presskeys...
    Agent.Flushevents()
    Desktop.Typekeys...
    Agent.Flushevents()
    Taskbar.Presskeys...
    Agent.Flushevents()
    Taskbar.Typekeys...
    Agent.Flushevents()

    None of this had any effect...
    No errors were generated, simply nothing happened.

    Ideas anyone ?



    ------------------
    Charles F. Radley - CSQE
    Oregon, USA.
    Quality Control Analyst at Syntel Inc
    Project Test Lead for client Daimler Trucks - North America.
    Interested in testing dot net web services and SOA systems.
    Charles F. Radley
    Oregon, USA.

  2. #2
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sending keystrokes to desktop ?

    This works on NT:

    Desktop.TypeKeys("<Alt-Tab 4>",.5) ;

    to cycle through open applications.

    Certain sequences such as "<Ctrl-Alt-#Del>" do appear to be ignored - probably because they invoke a system modal dialog which takes conrol away from Silk.

    John


 

 

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 07:38 PM.

Copyright BetaSoft Inc.