ondrajka Posted April 12, 2009 Share Posted April 12, 2009 I want to capture the text from an edit box and convert it to a $var. Below is the moused over frozen information. >>>> Window <<<< Title: (Multiple Monitors) and ATI MOBILITY RADEON Xpress 200 Series Properties Class: #32770 Position: 1, 4 Size: 484, 577 Style: 0x94C820C4 ExStyle: 0x00010501 Handle: 0x002B0352 >>>> Control <<<< Class: Edit Instance: 1 ClassnameNN: Edit1 Advanced (Class): [CLASS:Edit; INSTANCE:1] ID: 1672 Text: Position: 327, 236 Size: 29, 17 ControlClick Coords: 11, 9 Style: 0x58010080 ExStyle: 0x00000204 Handle: 0x00090540 >>>> Mouse <<<< Position: 342, 278 Cursor ID: 2 Color: 0xE0DFE3 >>>> StatusBar <<<< >>>> Visible Text <<<< Color Brightness: 0.5 3.5 List1 De&faults List1 List1 &Desktop F&ull Screen 3D Profiles for: Desktop &Save All Colors Red Green Blue Gamma: 100 -100 Slider1 Slider1 Slider1 Contrast: 1.00 Spin1 0 Spin1 100 Spin1 Reset D&elete 0 200 &Hotkeys OK Cancel &Apply Help Link to comment Share on other sites More sharing options...
CodyBarrett Posted April 12, 2009 Share Posted April 12, 2009 so im guessing this isnt a AUTOIT made editbox... or you could do this $x=guictrlread($edit) if $x<>Guictrlread($Edit) then ;do this endif other wise, cant help ya [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
ondrajka Posted April 12, 2009 Author Share Posted April 12, 2009 You pointed me in the right direction. Since it isn't an autoit gui that command won't work. Had to use a command that used window title and control ID. $var=ControlGetText ( "(Multiple Monitors) and ATI MOBILITY RADEON Xpress 200 Series Properties", "", 1672) Msgbox (0,"", $var) Link to comment Share on other sites More sharing options...
cagiva Posted June 20, 2009 Share Posted June 20, 2009 (edited) maybe you should type instead of : ID = 1672 instead of 1672 - "[CLASS:Edit; INSTANCE:1]" ?? It should work. Edited June 20, 2009 by cagiva 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