strate Posted January 19, 2006 Share Posted January 19, 2006 (edited) While reading the post in scripts an scraps I decided to try and put something together that would get the text out of the bar. This is what I have #AutoItSetOption("WinTitleMatchMode", 4) #Include <GuiStatusBar.au3> $Handle = WinGetHandle('classname=SciTEWindow','') $Result = _GuiCtrlStatusBarGetText ($Handle, 1) MsgBox(262144,'Debug line ~3','Selection:' & @lf & '$Result' & @lf & @lf & 'Return:' & @lf & $Result & @lf & @lf & '@Error:' & @lf & @Error);### Debug MSGBOXI think I got excited and missed something while looking over the UDF. The reason I'm trying this and not the function created for this is because I'm _hoping_ this might be able to read a status bar that I've been unable to read in a program at work. Help, please, lol. It would be greatly appreciated. I've been able to automate my whole job besides the one program; and I need the cursor position to do it. The functions for that don't work either. Edited January 19, 2006 by strate INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station... Link to comment Share on other sites More sharing options...
GaryFrost Posted January 19, 2006 Share Posted January 19, 2006 have you tried something like $Result = ControlGetText ( WinGetTitle(""), "", "msctls_statusbar321" ) MsgBox(262144,'Debug line ~3','Selection:' & @lf & '$Result' & @lf & @lf & 'Return:' & @lf & $Result & @lf & @lf & '@Error:' & @lf & @Error);### Debug MSGBOX SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
strate Posted January 19, 2006 Author Share Posted January 19, 2006 have you tried something like $Result = ControlGetText ( WinGetTitle(""), "", "msctls_statusbar321" ) MsgBox(262144,'Debug line ~3','Selection:' & @lf & '$Result' & @lf & @lf & 'Return:' & @lf & $Result & @lf & @lf & '@Error:' & @lf & @Error);### Debug MSGBOXYes, I have all it returns is the first "spot", that says ready. I need it to return the seventh spot that contains the field that the caret/cursor is in. INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station... Link to comment Share on other sites More sharing options...
strate Posted January 19, 2006 Author Share Posted January 19, 2006 I've been trying to figure out the DllCall stuff and is it possible to get this from a dll? Pull it from memory? I'm trying to work backwords with the examples in the scripts forum but how do I figure out what the params are for the dll? Where can I search for this on msdn? INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station... 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