AlexeyKisliy Posted May 13, 2013 Share Posted May 13, 2013 Hi, We have one desktop application, that is running under Windows 2000 Professional. We have not sources for this application, so we want to create some executables using AutoIT, which will click some buttons on the GUI of this application. I think this is possible with AutoIT script. We will run these exe-files from .NET application and everything will be ok. But we got the next problem. We neet to get into our .NET application, that runs also on this Windows 2000 machine some return value from our first application. This feedback(return value) should be just numbers, which will inform us about colors of buttons on the GUI of the first application. So we need to read colors of buttons on the GUI of our application using AutoIT scripts and pass these numbers into another application on this machine. Is it possible using AutoIT? And if possible, what should I do to implement such AutoIT script? -- Kind regards, Alexey Kisliy Link to comment Share on other sites More sharing options...
jaberwacky Posted May 13, 2013 Share Posted May 13, 2013 Yes. AutoIt can detect colors on the monitor. If this application is not protected from functions which I don't suspect because you indicate that you can use AutoIt to click buttons on it. PixelGetColor will get the color of an indicated set of coordinates. You can use the window info tool to find the appropriate identification information for any buttons and other controls. I don't personally deal with this very much so from what I can see I don't have enough information to provide further details. Give it a try by researching the two things I mentioned. Come back and ask questions in the General Help forum. Best of luck! Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
annaharris Posted May 18, 2013 Share Posted May 18, 2013 It is possible as Autoit scripts can detect the colors of your application if your application is not protected by some inbuilt functions. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 18, 2013 Moderators Share Posted May 18, 2013 AlexeyKisliy, Welcome to the AutoIt forum. What you ask should not be too difficult a task, although .NET apps are not that easy to automate. Some screenshots of the 2 apps might be helpful. 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...
JohnOne Posted May 18, 2013 Share Posted May 18, 2013 You can write the values of the colours to a file and your .Net application can read them from that. If the Application only requites 1 number returned then your script can pass it back to your .Net via the exit code, provided the number is within the bounds of integer. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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