Windows 10: SendKeys not working on Windows 10

Discus and support SendKeys not working on Windows 10 in Windows 10 Software and Apps to solve the problem; There are a lot of people like you who refuse to understand that Win32 is slowly going away. It's being migrated to WinRT (ie Universal apps). You're... Discussion in 'Windows 10 Software and Apps' started by Adalwar, May 7, 2016.

  1. Adalwar Win User

    SendKeys not working on Windows 10


    That are clear words. From your last post I was already thinking that MS is letting Win32 out of the game.
    Win32Help is also not working in W10 and MS did not provide a FIX as they did with W8.1
    I am not happy with W10, for many reasons, alone that story around of "Take Onwership" of files and folders is something that is not nice.
    Well, thank you for Info, everybody should know what is going on.
    Buying me a new Developer Enviroment it costs a lot of money and I even do not know if it will work and for sure I will spend many hours to get it compiled again.
    Let´s see if MS will suceed against the Win32 Croud.
    EDIT: In the past, MS did the same dirty game with Windows NT, nothing new from MS.
     
    Adalwar, Jun 23, 2016
    #16
  2. KiloOne Win User

    I went back to W7 and so far so good, but what a job to get back to W7. It took hours to figure out how to get rid of W10 message that said I had to remove an Administrator account I had made in W10 before it would let me revert (I removed it but kept getting the same message!!!).

    Finally found this (EDIT: But it seems to have been removed since I put this link here, solution was to delete the Administrator folder in the Users directory): https://www.tenforums.com/user-accounts-family-safety/22521-need-delete-elevated-administrator-account-windows-10-a.html


     
    KiloOne, Jun 24, 2016
    #17
  3. Adalwar Win User
    The link is deleted.
    If you still have problems with Built-In "Administrator" account, I have the commands to enable or disable it.
    My working PC will never see W10 and if it lands there by means of "Brute Force", I have a Image of the PC so that in question of few minutes I have W8.1 back.
    Do you have made a System Image before Upgrade to W10? If you have it, go ahead and restore it, it is easiest way and secure way to have W7 back.
     
    Adalwar, Jun 24, 2016
    #18
  4. KiloOne Win User

    SendKeys not working on Windows 10

    Have a just before image, but the Win 10 revert to 7 using windows.old directory did seem to leave some activity things that happened during 10 intact. Disabling that Administrator account did not work. W10 not again in my lifetime (I am old enough to say that *Smile ), but then again my wife said she just awoke one morning to Win10 on her laptop.
     
    KiloOne, Jun 25, 2016
    #19
  5. Adalwar Win User
    I did restore 2 times from a System Image and it works fine. One time , so far I recall, I even formated the System Partition at the time of restore, I am not sure of this, it is some time ago. But I have no things left from previous installantion.
    In W8.1 you can disable the Automatic Updates. Also, there are some Tools around to prevent "Brute Force" update to W10.
    I myself do not install any update since December 2015, I was having a lot of BSOD corrupting all my Partitions, I believe they were coming from the updates. At least , I removed all updates since 12/2015 and since more than 4 months no BSOD.
    My system is working fine like it is, so way should I update if nothing is broken?
    Unfornately seems that what is going on behind the scenes is an effort to "Bruce Force" programmers to move to the "Universal App´s" by means of not supporting/ locking Win32 App´s. If I am right on my assumption, that is a tremedus mistake, and W10 will die very quick.
     
    Adalwar, Jun 25, 2016
    #20
  6. Antoops Win User
    I am also having similar issue with my program which was working windows 7 and not in windows 10. My requirement is to keep my machine not to get screen locked, so i am keep on sending NUMLOCK on every 5 seconds to keep it alive. So with this requirement, how can i replace sendkeys to something else? Please point if you see any solutions
     
    Antoops, Jul 31, 2016
    #21
  7. Mystere Win User
    @Antoops

    Why not simply disable the screen saver? That seems like a far more logical solution. However, if that's not an option for some reason, you can always just use the SetThreadExecutionState method to temporarily disable it. (this is a p-invoke function, so no native .NET api). You can read more here:

    SetThreadExecutionState function (Windows)
    Disabling the Screensaver Programmatically
     
    Mystere, Jul 31, 2016
    #22
  8. Adalwar Win User

    SendKeys not working on Windows 10

    SendKeys are locked in Win 10 and 8.1 by the UAC.
    If you need to use Sendkeys you may want to try Disabling it in the Registry :
    HKLM>Software>Microsoft>Windows>CurrentVersion>Policies>System>EnableLUA=0.
     
    Adalwar, Aug 7, 2016
    #23
  9. SendKeys does not work, but it appears the API function SendInput does.

    If you're in VB6, copy/paste this code into a module:

    Private Type KEYBDINPUT
    wVk As Integer
    wScan As Integer
    dwFlags As Long
    Time As Long
    dwExtraInfo As Long
    End Type
    Private Type GENERALINPUT
    dwType As Long
    xi(0 To 23) As Byte
    End Type
    Private Const INPUT_KEYBOARD = 1
    Private Declare Function SendInput Lib "user32.dll" (ByVal nInputs As Long, pInputs As GENERALINPUT, ByVal cbSize As Long) As Long
    Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (pDst As Any, pSrc As Any, ByVal BYTELEN As Long)

    ' Overrides VBA.SendKeys, which throws Permission Denied error in Windows 10
    Public Function SendKeys(ByVal Text As String)
    Dim n As Long
    For n = 1 To Len(Text)
    SendKeysA Asc(Mid(Text, n, 1))
    Next
    End Function

    ' Send keycode
    Public Function SendKeysA(ByVal vKey As Integer)
    Dim GInput(0) As GENERALINPUT
    Dim KInput As KEYBDINPUT

    KInput.wVk = vKey
    GInput(0).dwType = INPUT_KEYBOARD
    CopyMemory GInput(0).xi(0), KInput, Len(KInput)
    Call SendInput(1, GInput(0), Len(GInput(0)))
    End Function
     
    JaronLindow, Apr 5, 2018
    #24
Thema:

SendKeys not working on Windows 10

Loading...
  1. SendKeys not working on Windows 10 - Similar Threads - SendKeys working

  2. Elgato Video Capture not working on Windows 11

    in Windows 10 News
    Elgato Video Capture not working on Windows 11: [ATTACH]The Elgato Video Capture is a popular tool for converting analog video from sources such as VHS tapes into digital files on your computer. However, after upgrading to Windows 11, users often encounter issues where the device is not detected or the video signal fails...
  3. Windows 10 ESU won’t work on some PCs, offering Windows 11 instead

    in Windows 10 News
    Windows 10 ESU won’t work on some PCs, offering Windows 11 instead: You’re not alone if Windows 10 tells you that ESU is temporarily unavailable, especially if you are based in Europe. Several users told me that they are not able to sign up for Windows 10 Extended Security Updates, even as the OS has already reached the end of support on...
  4. Clipchamp screen recording not working in Windows 11

    in Windows 10 News
    Clipchamp screen recording not working in Windows 11: [ATTACH]If screen recording is not working in Clipchamp in Windows 11, here is what you can do to fix the problem. There are a number of things that need to be in line so that Clipchamp can start recording your screen or any specific program window, and here we are going to...
  5. Dual Boot Network not working in Windows 11

    in Windows 10 News
    Dual Boot Network not working in Windows 11: [IMG]When setting up a dual-boot system, it’s not uncommon to find that your network connection works in one operating system but not the other, even when using the same physical hardware. This is typically caused by software and configuration conflicts between the two...
  6. Clipchamp Autocaptions not working [Fix]

    in Windows 10 News
    Clipchamp Autocaptions not working [Fix]: [IMG]If the AutoCaption feature isn’t working in Clipchamp, here is how to fix it on a Windows 11 computer. The main reason Clipchamp is not showing or generating captions automatically is that the audio is unclear or there are issues with Clipchamp. How to use autocaptions...
  7. Windows 11 Media Creation Tool works again on Windows 10, downloads Windows 11 25H2 Build...

    in Windows 10 News
    Windows 11 Media Creation Tool works again on Windows 10, downloads Windows 11 25H2 Build...: On October 10, Windows Latest found that Microsoft accidentally broke the Media Creation Tool (MCT) on Windows 10, which blocked the Windows 11 upgrade path four days before the operating system’s end of life. After almost three weeks, Microsoft has finally released a new...
  8. AMD confirms it’s not ending Windows 10 support, says Windows 11 installer will work on...

    in Windows 10 News
    AMD confirms it’s not ending Windows 10 support, says Windows 11 installer will work on...: In a statement to Windows Latest, AMD clarified that it’s not ending support for Windows 10 and will continue to offer drivers throughout the coming months. On October 29, AMD released Adrenalin Edition Version 25.10.2 for all PCs with Radeon graphics cards (GPU). It’s a big...
  9. Microphone not working in Oracle VirtualBox VM

    in Windows 10 News
    Microphone not working in Oracle VirtualBox VM: [ATTACH]Trying to use your microphone in an Oracle VirtualBox virtual machine, but getting only silence? This is a common hurdle, as audio input isn’t enabled by default and requires specific configuration. In this post, we are going to see what you can do if the Microphone...
  10. Windows 10 product key not working on Windows 11

    in Windows 10 News
    Windows 10 product key not working on Windows 11: [ATTACH]A Windows 10 product key should work for a Windows 11 activation because Microsoft provides a free upgrade path. However, some are noticing that the same product key is not working on Windows 11. In this post, we will be addressing this peculiarity and probing why the...

Users found this page by searching for:

  1. sendkeys in vba not working in windows 10

    ,
  2. sendkeys windows 10

    ,
  3. not able to sendkeys in windows app driver

    ,
  4. vba windows 10 sendkeys does not work,
  5. sendkeys ^a not working,
  6. win 10 vb6 sendkeys,
  7. enable sendkeys in windows 10,
  8. how to use sendkeys in windows 10,
  9. sendkeys windows 10 does not work,
  10. sendkeys en windows 10,
  11. vba sendkeys windows 10,
  12. sendkey Minecraft,
  13. windows send key not working,
  14. force sendkeys to work in windows 10,
  15. macro send keys not working in wondows 10