jhull Posted June 23, 2014 Share Posted June 23, 2014 I am trying to use a 42 inch screen with autoit. I have 2 windows that I have pulled up and now I need to splint the screen with them. Can some one help. Thanks Jhull Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 23, 2014 Moderators Share Posted June 23, 2014 Sure, what have you tried? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
jhull Posted June 23, 2014 Author Share Posted June 23, 2014 I have tired using the Left one it works on the first screen. The when I try the 2 screen on the right. It freeks out the script. Send("{LWINDOWN}") Send("{LEFT}") Send("{LWINDOWN}") Send("{RIGHT}") Link to comment Share on other sites More sharing options...
jhull Posted June 23, 2014 Author Share Posted June 23, 2014 I am running this on a HP thin client with windows 7 Embedded. It is for a tracker board. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 23, 2014 Moderators Share Posted June 23, 2014 Ok, from your OP it appears you have one 42 inch screen, and want to split 2 app windows on this screen. Can you confirm this? If this is the case, look at WinMove in the help file. It will allow you to move each application window to the desired position, height and width. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
jhull Posted June 23, 2014 Author Share Posted June 23, 2014 I have tried this but can not get it to work. Here is what I have. WinMove("Magic Workstation", "EDM.MKS", 0, 0, 800, 1160) Link to comment Share on other sites More sharing options...
iamtheky Posted June 23, 2014 Share Posted June 23, 2014 (edited) Send("{LWINDOWN}") Send("{LEFT}") Send("{LWINDOWN}") Send("{RIGHT}") Since your using sends you should try to do exactly what you typed, and see if it matches your intent 1) Hold down the left window button 2) Press the left arrow down and release = Awesome snapped it left 3) Hold down the left window button = that same one you are already holding down so that is wrong. Make sure if you DOWN something you also UP it. 4) Press the right arrow and let it go = Awesome put the window right back where it was, and left the window key down. So you missed letting some buttons back up that you were holding down and you probably want to activate the window prior to moving it, and as JLogan pointed out it is much easier accomplished via other functions. Using Send is almost always the worst way. Edited June 23, 2014 by boththose ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 23, 2014 Moderators Share Posted June 23, 2014 (edited) Try WinMove("Magic Workstation", "EDM.MKS", 1, 1, 800, 1160) or WinMove("Magic Workstation", "", 1, 1, 800, 1160). If this doesn't work, with AutoIt focused hit CTRL + F6 to bring up the AutoIt Window Info tool, and post what information you can gather from the window. Edited June 23, 2014 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
jhull Posted June 23, 2014 Author Share Posted June 23, 2014 Nope didn't work. sleep(10000) ; Run Meditech Run("C:Program FilesMEDITECHWorkstation4.xT.exe") ; Wait for the Meditech become active - it is titled "MEDITECH Remote Workstation" on English systems WinWaitActive("Magic Workstation") ; Now that the Meditech window is active type some text sleep(3000) Send("{ENTER}") sleep(3000) Send("1") sleep(3000) Send("{ENTER}") ;sleep(3000) ;Send("MKS") ;sleep(2000) ;Send("{ENTER}") sleep(3000) Send("HPHP") sleep(3000) Send("{ENTER}") sleep(3000) Send("HPHP") sleep(2000) Send("{ENTER}") sleep(3000) Send("{ENTER}") sleep(3000) WinMove("Magic Workstation", "EDM.MKS", 1, 1, 800, 1160) 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