atzoref Posted February 22, 2012 Share Posted February 22, 2012 Hi, How can I work with Controls of C# GUI? Until now I have been worked only with VB GUIs. Thanks jvanegmond 1 Link to comment Share on other sites More sharing options...
atzoref Posted February 23, 2012 Author Share Posted February 23, 2012 Someone please...? Link to comment Share on other sites More sharing options...
AlmarM Posted February 23, 2012 Share Posted February 23, 2012 So. Little. Information. Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 23, 2012 Moderators Share Posted February 23, 2012 atzoref, No-one has answered because the question has no meaning. Controls are controls, regardless of the language used to create them, and as long as they have been created via the standard Windows API you interact with them in the same way by using whatever property you can find and that works. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
atzoref Posted February 23, 2012 Author Share Posted February 23, 2012 But if I use the "AutoIt v3 Window Info" and not get details like VB appication, what is it means? so I can interact with that? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 23, 2012 Moderators Share Posted February 23, 2012 atzoref, If you get no information via the Window Info tool than the controls may not have been created via the standard Windows API - this is a very common occurence, even with MS's own products. In that case you are severely limited in how you can interact with the controls. What app are you trying to automate? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
atzoref Posted March 6, 2012 Author Share Posted March 6, 2012 Can you give me an example of a script which interacts with C# Gui which created via standard Windows API? Thanks Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 6, 2012 Moderators Share Posted March 6, 2012 atzoref,There are many examples in the Help file of AutoIt interacting with external GUIs - look at the Control* functions for instance. But as I said before, the language in which the app is written is not important - what is important is the manner in which the controls are created. If they are created via the standard API then AutoIt can use the standard AI calls to interact with them - if not, then it can be very difficult to do anything at all other than use simple (and inefficient) MouseClicks on them. But you said earlier that you could not get any information about the controls via the Window Info tool, so how are you going to get the required identity parameters to use in the Control* functions? Once again - what app are you trying to automate? Please post the results that the Window Info tool gives you regarding the main window - then we can see what we are dealing with. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area 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