How to move window to assigned position
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
28-04-22 10:08 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
28-04-22 02:30 PM
@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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
29-04-22 09:54 AM
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
29-04-22 10:40 AM
Thanks John, it works.
