I have application running on win 2008 server. It is using win32 api and it works just fine when i connected to the server with RDP. When i disconnect every call to SetCursorPos end with this failure. Coordinates (arguments) are same for both cases. Any thoughts ?
相关问题
- the application was unable to start correctly 0xc0
- Handle button click in another application
- win32 Python - pythoncom error - ImportError: No m
- How to prevent windows from accessing and detectin
- Getting the output from a process created by Creat
相关文章
- Why windows 64 still makes use of user32.dll etc?
- Can WM_NEXTDLGCTL be used with non-dialog windows?
- Windows EventLog: How fast are operations with it?
- Are resource files compiled as UNICODE or ANSI cod
- user32 and kernel method list for C# [closed]
- Writing to the middle of the file (without ove
- Does winapi's bcrypt.h actually support bcrypt
- Getting the cluster size of a hard drive (through
If RDP is disconnected, it's impossible to do anything with GUI (no screen, no mouse). There are few workarounds though.
Keep RDP open (not in a full screen) and switch to another window on local machine (RDP must not be minimized). In this case your script will work, but it's not fully automated solution because turning your local machine off (when you leaving the office at the end of day) will break RDP session (and your GUI related task). It's not suitable for long running GUI tests.
You may do more complicated automation for a long term: one master server may keep VNC connections (cross-platform analogue of RDP) to every worker machine so that GUI related tasks are running continuously. But there are many pitfalls on this way (especially on Windows). You may require to set up auto logon, to install and customize (with some magic!) VNC server software etc...