Jump to content

42 inch screen


Recommended Posts

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

  • Moderators

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

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 by boththose

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

  • Moderators

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 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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...