Open Forum

Expand all | Collapse all

DotNet SendKeys functionality stopped working for some users

  • 1.  DotNet SendKeys functionality stopped working for some users

    Posted 08-02-2018 12:52 PM
    Hi,
    We are using the sendkeys function to simulate a click on the clear filter button in a customized page. (NAV 2017)

    Recently this function stopped working for some users and we suspect that a windows update (we are using windows 10) is the cause.

    the sendkeys function is part of the  class : Microsoft.VisualBasic.Devices.Keyboard.'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

    Has anyone run into the same problem?

    Any other ways that you can think of sending keystroke to a page - I tried using the windows script host automation object and getting the same result.

    using clear filters via code (reset etc..)won't work for our customized function  - it needs to simulate a click on a page

    Thanks!
    Eran


    ------------------------------
    Eran Bagim
    Senior Functional/Technical System Analyst
    Topaz Lighting Corp
    NY
    ------------------------------


  • 2.  RE: DotNet SendKeys functionality stopped working for some users

    TOP CONTRIBUTOR
    Posted 08-02-2018 01:11 PM
    try system.windows.forms instead:
    https://msdn.microsoft.com/de-de/library/system.windows.forms.sendkeys.send(v=vs.110).aspx

    additional checkout that
    https://www.tenforums.com/software-apps/49635-sendkeys-not-working-windows-10-a.html

    ------------------------------
    Franz Kalchmair
    Microsoft MVP
    Senior Consultant
    Austria, Europe
    ------------------------------