Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Find window & move window

If you have a question or need help, this is the place to be.
Post Reply
malinduta
Posts: 9
Joined: Wed Jan 25, 2012 11:44 pm

Find window & move window

Post by malinduta »

Hello!
I`m trying to pause a macro until a window appears and then move it.
Finding the window work as expected if used separatly.
Moving the window work as expected if used separatly.
If both commands are in the same macro, it finds the window, but it DOES NOT move it.
Any ideas?
untitled.JPG
untitled.JPG (12.03 KiB) Viewed 2796 times
User avatar
zian
Site Admin
Posts: 569
Joined: Wed Jun 24, 2009 3:54 pm

Re: Find window & move window

Post by zian »

malinduta wrote: Finding the window work as expected if used separatly.
Moving the window work as expected if used separatly.
If both commands are in the same macro, it finds the window, but it DOES NOT move it.
Any ideas?
Keep them separate (Jump To)?
eventghost.net
Be there or be square.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Find window & move window

Post by Pako »

I tried it following way:
PotPlayer_1.png
PotPlayer_1.png (5.17 KiB) Viewed 2793 times
PotPlayer_2.png
PotPlayer_2.png (6.88 KiB) Viewed 2793 times
and it works well.

Pako
malinduta
Posts: 9
Joined: Wed Jan 25, 2012 11:44 pm

Re: Find window & move window

Post by malinduta »

Pako wrote:I tried it following way:
The attachment PotPlayer_1.png is no longer available
The attachment PotPlayer_2.png is no longer available
and it works well.

Pako
I tried like you, Pako, and it`s working well.
After many hours of testing I realised it has nothing to do with finding window and moving it.
It has to do with On Screen Explorer.
If I put "Wait" for 5-10 sec after OSE, it`s working, but not always.
I guess OSE is somehow "locking" the window. Not very sure.
untitled2.JPG
untitled2.JPG (10.07 KiB) Viewed 2791 times
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Find window & move window

Post by Pako »

I'm trying it this way:
PotPlayer_4.png
PotPlayer_4.png (7.17 KiB) Viewed 2788 times
PotPlayer_3.png
PotPlayer_3.png (6.81 KiB) Viewed 2788 times
And it works very smoothly, always.

Pako
malinduta
Posts: 9
Joined: Wed Jan 25, 2012 11:44 pm

Re: Find window & move window

Post by malinduta »

Pako, "Search invisible items also" was the trick. Now it works.
But not as expected.
If I move window to Monitor 1, everithing is ok.
If I move window to Monitor 2, the window dissapear (sometimes). It`s somewhere on Monitor 2, but it can`t be seen. The coordinates are X=0, Y=0. Also tried different coordinates on Monitor 2, same results.
I tried to right click on taskbar and select "move". Sometimes the window comes from outside the monitor (right side), sometimes it never shows.
Any thoughts?
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Find window & move window

Post by Pako »

I have not got the opportunity to test this behavior.
So I can not help.
Did you try to use the action Bring to front after action Move Absolute ?

Pako
malinduta
Posts: 9
Joined: Wed Jan 25, 2012 11:44 pm

Re: Find window & move window

Post by malinduta »

I managed to "trick" it :)
My 1st monitor resolution is set to 1280x1024.
The command is to move window to Monitor 1 at 1900x300. It`s working!
Post Reply