raedts Posted January 20, 2006 Share Posted January 20, 2006 I'm having trouble automating easycleaner. This is my problem: When the program is ready cleaning the registry it will show this in the statusbar (see picture) The text in this bar is random (43 items 10 items etc.) How do i read out this bar? Link to comment Share on other sites More sharing options...
JSThePatriot Posted January 20, 2006 Share Posted January 20, 2006 You can try StatusBarGetText(), but I dont know if that is a standard windows control. Use the AutoIt Window Info Tool to see if that is hidden window text.. or otherwise visible by standard windows controls. JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Link to comment Share on other sites More sharing options...
raedts Posted January 20, 2006 Author Share Posted January 20, 2006 (edited) i couldn't get StatusBarGetText to work because the text is random. Edited January 20, 2006 by raedts Link to comment Share on other sites More sharing options...
JSThePatriot Posted January 20, 2006 Share Posted January 20, 2006 i couldn't get StatusBarGetText to work because the text is random.The text being random shouldnt affect that. You would just have to continually check it. Or do you mean that it isnt a standard Windows Control?JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Link to comment Share on other sites More sharing options...
seandisanti Posted January 20, 2006 Share Posted January 20, 2006 i couldn't get StatusBarGetText to work because the text is random.the fact that the text is variable (it's not random, "fgafadskljhfl" is random) actually doesn't matter. you could do a little loop, again assuming that it is a standard control that the window info tool can see. While 1 If StatusBarGetText("WindowTitle","",2) <> "" Then ExitLoop;went with status bar part 2 because it looks like second segment from screenshot Sleep(100) WEnd Link to comment Share on other sites More sharing options...
MHz Posted January 20, 2006 Share Posted January 20, 2006 Press CTRL-ALT-F to pause the display. >>>>>>>>>>>> Window Details <<<<<<<<<<<<< Title: Clean registry Class: TRegistryIkkuna Size: X: 256 Y: 68 W: 745 H: 587 >>>>>>>>>>> Mouse Details <<<<<<<<<<< Screen: X: 475 Y: 642 Cursor ID: 2 >>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<< RGB: Hex: 0x000000 Dec: 0 >>>>>>>>>>> Control Under Mouse <<<<<<<<<<< Size: X: 0 Y: 534 W: 737 H: 19 Control ID: 458888 ClassNameNN: TStatusBar1 Text: >>>>>>>>>>> Status Bar Text <<<<<<<<<<< >>>>>>>>>>> Visible Window Text <<<<<<<<<<< Close Save Print Select all Delete all Delete Stop Find >>>>>>>>>>> Hidden Window Text <<<<<<<<<<< I have the proggie here but I cannot get that text either . Link to comment Share on other sites More sharing options...
seandisanti Posted January 20, 2006 Share Posted January 20, 2006 Press CTRL-ALT-F to pause the display. >>>>>>>>>>>> Window Details <<<<<<<<<<<<< Title: Clean registry Class: TRegistryIkkuna Size: X: 256 Y: 68 W: 745 H: 587 >>>>>>>>>>> Mouse Details <<<<<<<<<<< Screen: X: 475 Y: 642 Cursor ID: 2 >>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<< RGB: Hex: 0x000000 Dec: 0 >>>>>>>>>>> Control Under Mouse <<<<<<<<<<< Size: X: 0 Y: 534 W: 737 H: 19 Control ID: 458888 ClassNameNN: TStatusBar1 Text: >>>>>>>>>>> Status Bar Text <<<<<<<<<<< >>>>>>>>>>> Visible Window Text <<<<<<<<<<< Close Save Print Select all Delete all Delete Stop Find >>>>>>>>>>> Hidden Window Text <<<<<<<<<<< I have the proggie here but I cannot get that text either .so not a standard status bar then right? PixelChecksum() part of the status bar, so you can check if it changes. Link to comment Share on other sites More sharing options...
MHz Posted January 20, 2006 Share Posted January 20, 2006 The thing has a hidden progressbar that is hidden, shows during scan, then hides again. This could be used a notice of scan start to scan end. Anyone got some ideas for a loop or something for the poster . CODEPress CTRL-ALT-F to pause the display. >>>>>>>>>>>> Window Details <<<<<<<<<<<<< Title: Clean registry Class: TRegistryIkkuna Size: X: 256 Y: 68 W: 745 H: 587 >>>>>>>>>>> Mouse Details <<<<<<<<<<< Screen: X: 344 Y: 639 Cursor ID: 2 >>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<< RGB: Hex: 0xECE9D8 Dec: 15526360 >>>>>>>>>>> Control Under Mouse <<<<<<<<<<< Size: X: 0 Y: 536 W: 150 H: 17 Control ID: 983308 ClassNameNN: TProgressBar1 Text: (Control is hidden) >>>>>>>>>>> Status Bar Text <<<<<<<<<<< >>>>>>>>>>> Visible Window Text <<<<<<<<<<< Close Save Print Select all Delete all Delete Stop Find >>>>>>>>>>> Hidden Window Text <<<<<<<<<<< Link to comment Share on other sites More sharing options...
JSThePatriot Posted January 20, 2006 Share Posted January 20, 2006 If the status bar has a control ID can you use ControlGetText()? Untested... Should work. MsgBox(0, "Testing?", "Status Bar Text: " & ControlGetText("Clean registry", "Stop", 458888)) Let me know.. JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Link to comment Share on other sites More sharing options...
MHz Posted January 20, 2006 Share Posted January 20, 2006 Let me know..JSReturns nothing. Note, the controlID changes on re-run so used ClassNameNN instead. Link to comment Share on other sites More sharing options...
JSThePatriot Posted January 20, 2006 Share Posted January 20, 2006 Returns nothing. Note, the controlID changes on re-run so used ClassNameNN instead.Excellent... so the ClassNameNN worked to get the desired text?JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) 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