LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Move remote window to left top in windows 7 PC

Solved!
Go to solution

Hi In my application i have to move running remote window or application to left top of windows desktop, but that remote application doesnt has any title name, please help me to do this ,

 

 

waiting for ur fast response...

'

 

 

 

PRASHANT SONI
SOFTWARE ENGINEER-LabVIEW
0 Kudos
Message 1 of 8
(2,837 Views)

Is that remote application labview built?

Anand kumar SP
Senior Project Engineer
Soliton Technologies Pvt Ltd
0 Kudos
Message 2 of 8
(2,830 Views)

No that application is not in labview, its microsoft property

PRASHANT SONI
SOFTWARE ENGINEER-LabVIEW
0 Kudos
Message 3 of 8
(2,821 Views)

@PrashantS wrote:

Hi In my application i have to move running remote window or application to left top of windows desktop, but that remote application doesnt has any title name, please help me to do this ,

 

 

waiting for ur fast response...

'

 

 

 


You can get the application handle, from the name displayed in the task manager Applicaitions tab. Then pass on this handle to the Move Window WIN32 API, alongwith the new position you want.

-FraggerFox!
Certified LabVIEW Architect, Certified TestStand Developer
"What you think today is what you live tomorrow"
0 Kudos
Message 4 of 8
(2,818 Views)
Message 5 of 8
(2,807 Views)
Solution
Accepted by topic author PrashantS

Hi Prashant,

 Every process or application will be associated with a PID(Process id).

 The steps to catch the PID and moving that application to desired location is as follows:

  Get PID-------------------------------->MoveFunction(present in User32.dll)

  The following screen shot will help you a lot. 

  code.png

 

Regards,

SrikrishnaNF

Regards,
Srikrishna


Message 6 of 8
(2,789 Views)

thnx

 

do you have any VI or concept to make any window to active?

 

PRASHANT SONI
SOFTWARE ENGINEER-LabVIEW
0 Kudos
Message 7 of 8
(2,764 Views)

Hi Prashant,

  Use SetforeGorundWindow----------------->SetActiveWindow in sequence..Inputs for both functions is the hwnd(window handle) of the respective process.

 

Regards,

SrikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 8 of 8
(2,757 Views)