Sign in to follow this  
Followers 0
west

very curius

3 posts in this topic

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

Share this post


Link to post
Share on other sites



This is not a VB forum. This is an AutoIt forum. Why not take a look at the forum over on that side of the internet? ---->

http://www.xtremevbtalk.com/

These guys are sharp as a whip when it comes to VB stuff.


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0