west Posted September 22, 2007 Share Posted September 22, 2007 is there anyway to got window info an use it in VB Link to comment Share on other sites More sharing options...
Blue_Drache Posted September 22, 2007 Share 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 Link to comment Share on other sites More sharing options...
frostfel Posted September 22, 2007 Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now