SPONSORS:






User Tag List

Results 1 to 10 of 10
  1. #1
    Junior Member
    Join Date
    Mar 2001
    Location
    Hyderabad,Andhra Pradesh,India
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How does silk Identify the \'Windows\' key

    Hi Friends..does Silk test identify the 'windows' key on the keyboard...if yes please let me know...am really eager to know about this.....
    Krishna...

  2. #2
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How does silk Identify the \'Windows\' key

    What do you mean identify window key?

    You can use TypeKeys() to send keyboard commands to window class(dialogbox,browser,apps,Windows OS...)

  3. #3
    Senior Member
    Join Date
    Aug 1999
    Location
    MA
    Posts
    129
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How does silk Identify the \'Windows\' key

    Per prince_of_qa's question, I don't see where any of the "Windows" keys have names for the TypeKeys method. I searched the help system and the 4Test reference.

    Has anyone found a way to TypeKeys the Windows key, or the Windows properties key on a 105 key keyboard?

    I've looked for this a few times, and gave up in not finding a way to do it. I was looking for a workaround for a issue I had with right clicking, and using Taskbar.Start.Click().


    [This message has been edited by styler (edited 03-14-2001).]
    Steven Tyler
    Manager - Performance Engineering

    Kronos Incorporated
    tel: +1 978 947 4219

  4. #4
    Junior Member
    Join Date
    Oct 2000
    Location
    UK
    Posts
    19
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How does silk Identify the \'Windows\' key

    The poster is talking about the Windows key on new PCs. If you hit the Windows key and e Windows starts up explorer. I've yet to find a way to allow Silk to simulate this keypress.

  5. #5
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How does silk Identify the \'Windows\' key

    These codes worked for me(to click on taskbar):
    [ ] Taskbar.SetActive()
    [ ] Taskbar.Click(1)
    [ ] Taskbar.Click(2)

    I know that some of the keys can't be reproduced.

    To open a new browser, why not just use
    [ ] Browser.Invoke()
    or
    ctrl+n when the focus is in a browser(IE,N)?

    Anyways depending on what you want, if you only want the end result then many work around are there. If you want the actual process of producing the end result then it might be hard to impossible. In another words
    is clicking the start button to get the start menu more important or just having the start menu open more important for example.


  6. #6
    Junior Member
    Join Date
    Oct 2000
    Location
    UK
    Posts
    19
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How does silk Identify the \'Windows\' key

    Microsoft define the keys on their site at http://msdn.microsoft.com/library/ps...vkeys_529f.htm

    The Windows key is 5B.

    I can't see a way to type custom keypress values using Silk. You could write a function to call the Win32 API (there must be a call that Segue use). I'll look into this at some point.

  7. #7
    Senior Member
    Join Date
    Oct 1999
    Location
    Tyngsborough, MA
    Posts
    211
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How does silk Identify the \'Windows\' key

    Silktest does not have a key for the windows key, a la the Alt key, Shift key etc.. This has been posted before. They just don't have it.


    [This message has been edited by BrianCarroll (edited 03-14-2001).]

  8. #8
    rg
    rg is offline
    Member
    Join Date
    Feb 2000
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How does silk Identify the \'Windows\' key

    Apparently there is a way to do this. Somebody mentioned this to me at a user group meeting. I would suggest checking with Segue support if they know about this.

  9. #9
    Junior Member
    Join Date
    May 2001
    Location
    San Francisco, CA, US
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How does silk Identify the \'Windows\' key

    Guys,

    I found this solution to work:

    [-] dll "user32.dll"
    [ ] keybd_event(long bVk, long bScan,long dwFlags, long dwExtraInfo)

    integer KEYEVENTF_KEYUP = 0x2
    integer VK_LWIN = 0x5B

    //press left windows key
    keybd_event(VK_LWIN, 0, 0, 0)
    //press r key
    keybd_event(Asc('R'), 0, 0, 0)
    //release windows key
    keybd_event(VK_LWIN, 0, KEYEVENTF_KEYUP, 0)


  10. #10
    Senior Member
    Join Date
    Jul 1999
    Location
    Burlingame CA 94010
    Posts
    502
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How does silk Identify the \'Windows\' key

    Hi,

    Way to go, gklets !!!! I turned gklet's code into a function. Copy this into a new script.

    [-] dll "user32.dll"
    [ ] keybd_event(long bVk, long bScan,long dwFlags, long dwExtraInfo)
    [ ]
    [-] main ()
    [ ] SendWindowsKey ("E") // EXPLORER
    [ ] SendWindowsKey ("F") // FIND
    [ ]
    [ ]
    [-] SendWindowsKey (STRING sKey)
    [ ] // CREDIT TO GKLETS AT BETSOFT.COM
    [ ]
    [ ] integer KEYEVENTF_KEYUP = 0x2
    [ ] integer VK_LWIN = 0x5B
    [ ]
    [ ] //press left windows key
    [ ] keybd_event(VK_LWIN, 0, 0, 0)
    [ ]
    [ ] //press r key
    [ ] keybd_event(Asc('{sKey}'), 0, 0, 0)
    [ ]
    [ ] //release windows key
    [ ] keybd_event(VK_LWIN, 0, KEYEVENTF_KEYUP, 0)
    [ ]


    Hope this helps.


    ------------------
    John W Green
    jwgreen@automationexpertise.com
    http://www.automationexpertise.com

 

 

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 12:40 PM.

Copyright BetaSoft Inc.