cancel
Showing results for 
Search instead for 
Did you mean: 

How to move window to assigned position

EricLi
Level 6
One of our application, I want to move the main screen to assigned position, so that follow sub windows can display within the screen then robot can operate on them, else some windows will over the screen where robot can not operate on. I wonder how can I do the movement activity. I try to use drag and drop but failed.
3 REPLIES 3

ewilson
Staff
Staff
@EricLi,

Is this a window that you're attached to via Blue Prism, or is it just some other application window on the desktop? You can move a window using a Code stage and the Windows functions FindWindow and SetWindowPos.

There are various examples on the internet using either VB or C#. Unfortunately, I don't think there are any standard VBOs on the DX that implement this functionality though. Something we'll have to address.

Cheers,
Eric​

John__Carter
Staff
Staff
An easier method is to spy the main window of the app using the Win32 (red) spy mode. The use the resulting element in a Navigate stage, where you'll find options to manipulate the window - move, resize, activate, minimize etc.

EricLi
Level 6
Thanks John, it works.