west 0 Posted September 22, 2007 is there anyway to got window info an use it in VB Share this post Link to post Share on other sites
Blue_Drache 260 Posted September 22, 2007 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
frostfel 0 Posted September 22, 2007 (edited) is there anyway to got window info an use it in VBYour probly best off using VB to do that if you dont want to:If VB can read ini's do thisWhile 1 $WinPos = WinGetPos("Untitled") IniWrite("WinInfo.ini", "WinInfo", "WinPosX", $WinPos[0]) IniWrite("WinInfo.ini", "WinInfo", "WinPosY", $WinPos[1]) WEndIf 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 September 22, 2007 by frostfel Share this post Link to post Share on other sites