badhabit Posted May 23, 2016 Posted May 23, 2016 Hello everyone! Why WinMove() doesn't work with RemoteApp (rdp) windows?
orbs Posted May 23, 2016 Posted May 23, 2016 (edited) @badhabit, welcome to AutoIt and to the forum! the local display of the remote system is only a video of what's happening, no windows or controls can be interacted with directly. best solution: run your script on the remote system. EDIT: here is a good forum discussion covering RDP aspects, caveats and options of resolution. Edited May 23, 2016 by orbs Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff
badhabit Posted May 25, 2016 Author Posted May 25, 2016 @orbs, thanks for your answer. I know what rdp it is only "video" and i do not want myscript interact with content of RemoteApp (rdp) window, but I just want to move RemoteApp window via Autoit as it was local window... If i do it manualy with mouse - all ok, but when i do it via Autoit function WinMove, window (RemoteApp) stops draw anything inside itself and stops responde to any input events (mouse ok keyboadr) as it freezes! $hwnd = WinGetHandle("[CLASS:RAIL_WINDOW;TITLE:Notepad]") WinMove($hwnd, "", 0, 0, 150, 150) If I click manualy on RemoteApp icon in taskbar after, window (moved by WinMove) disappears and appears on the old position and unfreeze (draw content and responde on input events correctly). Very strange behaviour of WinMove, or may be I do something wrong?
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