mvp Posted May 31, 2006 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
Moderators SmOke_N Posted May 31, 2006 Moderators 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.
mvp Posted May 31, 2006 Author 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
Moderators SmOke_N Posted May 31, 2006 Moderators 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.
mvp Posted May 31, 2006 Author 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
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