zxc3 Posted January 6, 2011 Share Posted January 6, 2011 Can I switch windows (all in a row) when working via remote desktop. Autoit windows info not see these windows, changing only the coordinates of the mouse .. Link to comment Share on other sites More sharing options...
bo8ster Posted January 7, 2011 Share Posted January 7, 2011 What exactly do you mean by switching windows? I assume you mean only on the remote machine ... You really need to think what is going on there then it will be clear why AutoIt cannot see into a remote desktop session. Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic] Link to comment Share on other sites More sharing options...
zxc3 Posted January 7, 2011 Author Share Posted January 7, 2011 Autoit windows info sees remote desktop as a single window, and windows open within the Remote Desktop does not see. Link to comment Share on other sites More sharing options...
bo8ster Posted January 10, 2011 Share Posted January 10, 2011 Autoit windows info sees remote desktop as a single window, and windows open within the Remote Desktop does not see.Yes that is that case, I though that would be surprisingly obvious. You cannot 'look through' a remote session like that because the program you a looking at is mstsc (remote desktop). I understand this may all be new to you. Autoit is built for Windows and calls dlls of the OS it is on. It cannot call WinGetTitle for a computer it is not on as it has no way to get the process information, as an example. You can run the info tool on the remote machine then control it via a remote session but thats as good as it gets. Using AutoIt commands alone, I don't know how to automate actions on a remote machine, sorry.What were you trying to achieve, it may be possible another way. Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic] Link to comment Share on other sites More sharing options...
computergroove Posted January 10, 2011 Share Posted January 10, 2011 You could host the script file on an http server and install it on the target computer and run it. Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html Link to comment Share on other sites More sharing options...
bo8ster Posted January 10, 2011 Share Posted January 10, 2011 You could host the script file on an http server and install it on the target computer and run it.Many things are possible. I would be leaning towards executing the script remotely, that can be done via the commandline so I can be done in AutoIt. Either way there would have to be something on the remote machine to kick things off automatically. Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic] Link to comment Share on other sites More sharing options...
computergroove Posted January 10, 2011 Share Posted January 10, 2011 I ran across this tonight: http://www.autoitscript.com/wiki/FAQ#How_can_I_run_my_script_on_a_remote_computer_over_the_network.3F Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html Link to comment Share on other sites More sharing options...
bo8ster Posted January 10, 2011 Share Posted January 10, 2011 That looks good. This is how I have done it in the past where a server controls the testing. (On the server) 1. Create/compile the script 2. Set up permissions using 'net use' so I could access a known share on the remote machine 3. Copy script on the the share 4. Execute the script on the remove server and let it do its thing. I have sysinternal tools before they are great! Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic] Link to comment Share on other sites More sharing options...
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