Linze99 Posted June 6, 2017 Posted June 6, 2017 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
Xandy Posted June 6, 2017 Posted June 6, 2017 I would run the script from the remote desktop, then I would ControlSend() to the application window there. Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker)
Linze99 Posted June 6, 2017 Author Posted June 6, 2017 Thanks for the fast response . The problem is the remotedesktop runs on linux
Linze99 Posted June 6, 2017 Author Posted June 6, 2017 Basically I want to send a keystroke to a background window
Xandy Posted June 6, 2017 Posted June 6, 2017 The Linux is rendering me powerless. I'd really have to test against that environment to have any clue. Can you give the remote desktop window focus without going into Linux mode? I'm lost dude, sorry Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker)
Linze99 Posted June 6, 2017 Author Posted June 6, 2017 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
Xandy Posted June 6, 2017 Posted June 6, 2017 I can automate a remote connection fine from the remote connection if it's Windows, but I've never tried a Linux remote connection. Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker)
Linze99 Posted June 6, 2017 Author Posted June 6, 2017 It is Windows just the raspberry pi that I access via remotedesktop is linux So now I have to try it with another connection to get it working
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now