Jump to content

Recommended Posts

Posted

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 :) 

Posted

I just treid it with sending the keystroke to the cmd.exe and it worked so the problem is the remotedektopconnection :( but thx for you help anyways

 

Posted

It is Windows just the raspberry pi that I access via remotedesktop is linux :P

So now I have to try it with another connection to get it working

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
×
×
  • Create New...