Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

 

 

IWindow::VBS_GetCoordinates

Retrieve the window coordinates for a session.

 

Function VBS_GetCoordinates(Session As String, x as Variant, y as Variant, cx as Variant, cy as Variant) As Long
 

Parameters

NoNameTypeOptionalDefaultDescription
1SessionStringNo-

One character session ID

2

x

Variant

No

-

x-position relative to upper left corner of desktop

3

y

Variant

No

-

y-position relative to upper left corner of desktop

4

cx

Variant

No

-

width of window

5

cy

Variant

No

-

height of window

Return Code

Description

JGS_OK

The function was successful

JGS_PARAMETERERROR

Missing or invalid parameter

JGS_MEMORY

Insufficient memory

JGS_NOTCONNECTED

Your application is not currently connected to a valid session

JGS_PSENDED

The session was stopped

JGS_UNAVAILABLE

The session is in use by another application

JGS_SYSERROR

The function failed due to a system error


Sample Code


 

Dim mySession as String
Dim result as Long
Dim x, y, cx, cy as Variant
mySession = "E"
result = win.VBS_GetCoordinates(mySession, x, y, cx, cy)
 

 

Back to IWindow members


QWS3270 Automation copyright © Jolly Giant Software Inc. All rights reserved.

 

  • No labels