How to access Advanced Class with API
-
Hi, I am able to use API DllImport("user32.dll") for FindWindow, GetCursorPosition then use sendkys to enter some number\text into an other GUI application ... through its Title & Class (ie: Windows Calculator! However if I don't use API Mouse to move in other sections ... I can't not go directly them (with Autoit I can use with Title & Advanced Class = Advanced (Class): [CLASS:Button; INSTANCE:72] ) My question is there any way I can do that with Vsual C# and How? Thanks to any help
-
Hi, I am able to use API DllImport("user32.dll") for FindWindow, GetCursorPosition then use sendkys to enter some number\text into an other GUI application ... through its Title & Class (ie: Windows Calculator! However if I don't use API Mouse to move in other sections ... I can't not go directly them (with Autoit I can use with Title & Advanced Class = Advanced (Class): [CLASS:Button; INSTANCE:72] ) My question is there any way I can do that with Vsual C# and How? Thanks to any help
Well, it AutoIt, there is code behind the scenes that is parsing and interpreting that "Advanced (Class): [CLASS:Button, INSTANCE:72])" stuff. There is NOTHING in the Windows API that has any idea what that string means or what to do with it. You're asking about how to write the code that AutoIt has inside that does just that. For that, you would have to ask the people who wrote AutoIt. Good luck with that!
A guide to posting questions on CodeProject
How to debug small programs
Dave Kreskowiak -
Well, it AutoIt, there is code behind the scenes that is parsing and interpreting that "Advanced (Class): [CLASS:Button, INSTANCE:72])" stuff. There is NOTHING in the Windows API that has any idea what that string means or what to do with it. You're asking about how to write the code that AutoIt has inside that does just that. For that, you would have to ask the people who wrote AutoIt. Good luck with that!
A guide to posting questions on CodeProject
How to debug small programs
Dave KreskowiakMight be the wau I asking is not right, I do work well with Autoit ... but I have to work with Visual C# now! I am not expert in Cisual C#, that why I would like to know there is a similiar way to access direct an instance of a GUI or not? I thought Visual C# a well-known SW should have a better way than a free Autoit environment (it can't even build a DLL or a distribution application) If there isn't a way, then I will have to use then I will use mouse method to move to the area I want to access ... but this ia the bad way, well if the people move the GUI or change the screen resolution ... the mouse will move to wrong position :sigh: I hope that you aren't upset because of a people who just wants to know there is any thing available :^)
-
Well, it AutoIt, there is code behind the scenes that is parsing and interpreting that "Advanced (Class): [CLASS:Button, INSTANCE:72])" stuff. There is NOTHING in the Windows API that has any idea what that string means or what to do with it. You're asking about how to write the code that AutoIt has inside that does just that. For that, you would have to ask the people who wrote AutoIt. Good luck with that!
A guide to posting questions on CodeProject
How to debug small programs
Dave KreskowiakMight be the way I asking wasn't right, I do work well with Autoit ... but I have to work with Visual C# now! I am not expert in Visual C#, that was why I would like to know there is a similiar way to access direct an instance of a GUI or not? I thought Visual C# a well-known SW should have a better way than a free Autoit (it can't even build a DLL or a distribution application) If there isn't a way, then I will have to use mouse method to move to the area I want to access ... but this ia the bad way, because if the people move the GUI to other position or change the screen resolution ... the mouse will move to wrong location :(( I hope that you aren't upset because of a people who just wants to know there is any thing available :doh:
-
Might be the way I asking wasn't right, I do work well with Autoit ... but I have to work with Visual C# now! I am not expert in Visual C#, that was why I would like to know there is a similiar way to access direct an instance of a GUI or not? I thought Visual C# a well-known SW should have a better way than a free Autoit (it can't even build a DLL or a distribution application) If there isn't a way, then I will have to use mouse method to move to the area I want to access ... but this ia the bad way, because if the people move the GUI to other position or change the screen resolution ... the mouse will move to wrong location :(( I hope that you aren't upset because of a people who just wants to know there is any thing available :doh:
Member 10636998 wrote:
I would like to know there is a similiar way to access direct an instance of a GUI or not
No, there isn't. The only way you've got is the one you're already using, FindWindow, ...
A guide to posting questions on CodeProject
How to debug small programs
Dave Kreskowiak -
Member 10636998 wrote:
I would like to know there is a similiar way to access direct an instance of a GUI or not
No, there isn't. The only way you've got is the one you're already using, FindWindow, ...
A guide to posting questions on CodeProject
How to debug small programs
Dave KreskowiakHi Dave, In this case I don't have to search for it any more! Thanks for the confirmation.