Jump to content

very curius


west
 Share

Recommended Posts

is there anyway to got window info an use it in VB

Your probly best off using VB to do that if you dont want to:

If VB can read ini's do this

While 1
    $WinPos = WinGetPos("Untitled")
    IniWrite("WinInfo.ini", "WinInfo", "WinPosX", $WinPos[0])
    IniWrite("WinInfo.ini", "WinInfo", "WinPosY", $WinPos[1])
WEnd

If it cant then have it read these input boxes:

#include <GUIConstants.au3>
$WinInfo = GUICreate("WinInfo", 167, 89, 193, 125)
$Label1 = GUICtrlCreateLabel("WinX:", 4, 4, 36, 17)
$Label2 = GUICtrlCreateLabel("WinY:", 4, 26, 33, 17)
$Label3 = GUICtrlCreateLabel("Width:", 4, 46, 35, 17)
$Label4 = GUICtrlCreateLabel("Hight:", 4, 68, 32, 17)
$Input1 = GUICtrlCreateInput("Input1", 42, 2, 121, 21)
$Input2 = GUICtrlCreateInput("Input2", 42, 22, 121, 21)
$Input3 = GUICtrlCreateInput("Input3", 42, 42, 121, 21)
$Input4 = GUICtrlCreateInput("Input4", 42, 64, 121, 21)
GUISetState()

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch
    $WinPos = WinGetPos("Untitled")
    GUICtrlSetData($Input1, $WinPos[0])
    GUICtrlSetData($Input2, $WinPos[1])
    GUICtrlSetData($Input3, $WinPos[2])
    GUICtrlSetData($Input4, $WinPos[3])
WEnd
Edited by frostfel
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...