You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to reproduce what you illustrate here: Remote Execution Guide and find_elements found nothing (remotely from Ansible, using WinRM) #401
Probably, I do not understand remote desktop well, so failed to obtain RDP process ID by $session = tasklist /fo CSV | findstr RDP ; $session = $session.Split(",")[3] ; $session.Split('"')[1]. tasklist did not include the session whose name is RDP.
Below is what I did.
Steps to Reproduce the Problem
'Enable Remote Desktop' in Windows setting, or Enable-PSRemoting in PowerShell
As for the second step, is it different from psexec -s -i [process ID] test.bat?
Short Example of Code to Demonstrate the Problem
dlg.Edit.click_input(), and dlg.Edit.type_keys() returns error.
The error messages are pywintypes.error: (5, 'SetCursorPos', 'access denied') or RuntimeError: SendInput() inserted only 0 out of 2 keyboard events.
I would really appreciate it if you would tell me the steps to introduce RDP.
Specifications
Pywinauto version:0.6.8
Python version and bitness:3.9.13, 64-bit
Platform and OS: Windows 10
The text was updated successfully, but these errors were encountered:
I tried to reproduce what you illustrate here: Remote Execution Guide and find_elements found nothing (remotely from Ansible, using WinRM) #401
Probably, I do not understand remote desktop well, so failed to obtain RDP process ID by
$session = tasklist /fo CSV | findstr RDP ; $session = $session.Split(",")[3] ; $session.Split('"')[1]
.tasklist
did not include the session whose name is RDP.Below is what I did.
Steps to Reproduce the Problem
Enable-PSRemoting
in PowerShellpsexec -u [user name] -p [password] \\192.168.xx test.bat
(test.bat containspython my_script.py
)As for the second step, is it different from
psexec -s -i [process ID] test.bat
?Short Example of Code to Demonstrate the Problem
dlg.Edit.click_input(),
anddlg.Edit.type_keys()
returns error.The error messages are
pywintypes.error: (5, 'SetCursorPos', 'access denied')
orRuntimeError: SendInput() inserted only 0 out of 2 keyboard events
.I would really appreciate it if you would tell me the steps to introduce RDP.
Specifications
The text was updated successfully, but these errors were encountered: