pantson Posted August 9, 2006 Share Posted August 9, 2006 Hi I'm using the following code to try and grab a number from a type in box. It doesn't return the number just some text that can't be seen. I can't see the number in the "Autoit Window info" either, just this hidden word. $long = ControlGetText("window name","","QWidget185") any way of grabbing the typed value in the qwidget? cheers, Rich Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted August 9, 2006 Moderators Share Posted August 9, 2006 Is the control disabled? Do you have the AutoItInfo.exe that you can copy and paste here? Anything else other than 1 liner that you can post? BTW, welcome to the forum. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
pantson Posted August 9, 2006 Author Share Posted August 9, 2006 Hi, many thanks for the warm welcome. Just discovered this program (its sooo much better than scripit ;-) ) I'm writing a sepearte application that looks at Google Earth values. I'm wanting to grab the longitude and latitude values from "Google Earth - New Placemark" window. heres for AutoInfo ouput for the longitude box expandcollapse popupPress CTRL-ALT-F to pause the display. >>>>>>>>>>>> Window Details <<<<<<<<<<<<< Title: Google Earth - New Placemark Class: QWidget Size: X: 181 Y: 40 W: 369 H: 588 >>>>>>>>>>> Mouse Details <<<<<<<<<<< Screen: X: 400 Y: 171 Cursor ID: 5 >>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<< RGB: Hex: 0xFFFFFF Dec: 16777215 >>>>>>>>>>> Control Under Mouse <<<<<<<<<<< Size: X: 109 Y: 95 W: 200 H: 21 Control ID: ClassNameNN: QWidget186 Text: mLongitude >>>>>>>>>>> Status Bar Text <<<<<<<<<<< >>>>>>>>>>> Visible Window Text <<<<<<<<<<< mButtonCancel mButtonOk mTab tab control tab pages mDescriptionPage mDescriptionEdit qt_viewport textLabel2 mLatLonGroup mLatitude mLongitude latEditLabel_2 longEditLabel_2 mIconPixmapButton mNameEdit textLabel1_3 QDialog::resizer My code $lati = ControlGetText("Google Earth - New Placemark","","QWidget185") $long = ControlGetText("Google Earth - New Placemark","","QWidget186") $long now contains "mLongitude" and not the coords in the box $lati now contains "mLatitude" and not the coords in the box any ideas where I can grab the co-ords in these type boxes... eg " 38°57'33.84"N" cheers for quick response Rich Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted August 9, 2006 Moderators Share Posted August 9, 2006 (edited) Blah, I can't even find QWidget185!! Edit: NM, I found it... doesn't look like fun man. Edited August 9, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
pantson Posted August 10, 2006 Author Share Posted August 10, 2006 just bumping it to the front incase its got swallowed by other posts. I'll only be doing this once. cheers Link to comment Share on other sites More sharing options...
llipschutz Posted October 12, 2007 Share Posted October 12, 2007 just bumping it to the front incase its got swallowed by other posts.I'll only be doing this once.cheersI assume you never got an answer? I am also having trouble getting values (or anything!) back from QWidgets...it's quite distressing because I can't afford to use mouse/position commands to automate everything. Please let me know if you've found out anything, thanks. Link to comment Share on other sites More sharing options...
Zord Posted December 3, 2008 Share Posted December 3, 2008 One year later and there seems to be no solution. I'm facing the same problem at the moment. Want to select one of the entries in the places-box on the left side of the Google Earth window, But the qwidgets are changing their number all the time. Maybe someone has an idea how to solve this? 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