mvp 0 Posted May 31, 2006 Hi, This is my first post. Is there a way to read static labels off a form with AutoIt? I am able to get text from the form via WinGetText. There are a few labels that I need to read. Any help is much appreciative. Regards, mvp Share this post Link to post Share on other sites
SmOke_N 210 Posted May 31, 2006 Hi,This is my first post. Is there a way to read static labels off a form with AutoIt? I am able to get text from the form via WinGetText. There are a few labels that I need to read. Any help is much appreciative.Regards,mvpGenerally they will have ControlID's still, have you tried using the AutoInfo to see if it is reading text there. If so, you could use ControlGetText(). 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. Share this post Link to post Share on other sites
mvp 0 Posted May 31, 2006 Generally they will have ControlID's still, have you tried using the AutoInfo to see if it is reading text there. If so, you could use ControlGetText().Yes, I tried AutoInfo and that when I saw that the labels were not being reconized by AutoInfo. Can the actual VB ID be used in the ControlGetText function if known? Thanks Share this post Link to post Share on other sites
SmOke_N 210 Posted May 31, 2006 Yes, I tried AutoInfo and that when I saw that the labels were not being reconized by AutoInfo. Can the actual VB ID be used in the ControlGetText function if known? ThanksI know nothing of VB, but I do know one way to find out . MsgBox(64, 'Info', 'Text is: ' & ControlGetText('WindowName', '', 'ControlID'))Although if AutoInfo isn't picking it up (text wise) then I doubt seriously that this is going to pick it up... But I have used "Static" as a controlid in the past. 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. Share this post Link to post Share on other sites
mvp 0 Posted May 31, 2006 I know nothing of VB, but I do know one way to find out . MsgBox(64, 'Info', 'Text is: ' & ControlGetText('WindowName', '', 'ControlID'))Although if AutoInfo isn't picking it up (text wise) then I doubt seriously that this is going to pick it up... But I have used "Static" as a controlid in the past. I agree, it don't seem likely if AutoInfo can't see it. I will try the ControlGetText. Thanks Share this post Link to post Share on other sites