Sign in to follow this  
Followers 0
jhull

42 inch screen

9 posts in this topic

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

Share this post


Link to post
Share on other sites



Sure, what have you tried?


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

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}")

Share this post


Link to post
Share on other sites

I am running this on a HP thin client with windows 7  Embedded.  It is for a tracker board.

Share this post


Link to post
Share on other sites

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.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

#7 ·  Posted (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 by boththose

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

Share this post


Link to post
Share on other sites

#8 ·  Posted (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 by JLogan3o13

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
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)
 

Share this post


Link to post
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
Sign in to follow this  
Followers 0