Loki Posted August 8, 2012 Posted August 8, 2012 Hi guys, I need help. I need to create script, which could toggle between RDP window and window on local PC. There will be only two things on the local computer, RDP window and Excel. I just need to switch between them in some interval. This is what I came up with. While 1 = 1 Sleep(7000) ;break do okna Send("{ALT DOWN}") Send("{CTRLBREAK}") Send("{ALT UP}") ;switch na excel Send("{ALT DOWN}") Send("{TAB}") Send("{ALT UP}") Sleep(5000) ;switch na rdp Send("{ALT DOWN}") Send("{TAB}") Send("{ALT UP}") ;break do fullscreenu Send("{ALT DOWN}") Send("{CTRLBREAK}") Send("{ALT UP}") Sleep(5000) WEnd It does switch between windows while I'm just on local PC, but when I switch to RDP window...well nothing happens. :-/
abberration Posted August 8, 2012 Posted August 8, 2012 This works for me: WinActivate("192.xxx.xxx.xxx - Remote Desktop Connection") WinSetState ( "192.xxx.xxx.xxx - Remote Desktop Connection", "", @SW_MAXIMIZE ) Easy MP3 | Software Installer | Password Manager
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