Jump to content

Sending q keystroke to background window


Recommended Posts

Hi,

I want to send a q keystroke to the Remotedesktop window in the background whenevr I press Q in another window. This Is my code, but it doesnt work :(  :

 

#include <Misc.au3>

Local $hDLL = DllOpen("user32.dll")


While 1

   If _IsPressed ("51", $hDLL) Then
      ControlSend("192.168.178.91 - Remotedesktopverbindung", "", "", "q")
      
   EndIf
WEnd

Thx for the help :) 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...