dotnetter Posted May 11, 2011 Share Posted May 11, 2011 First, I want to thank you very much for a tool that let me feel like a Windows God And now to the topic... I know how to do it in pure AutoIt and I know how to use AutoItX with .NET app, but _GUICtrlSlider_GetPos is not included in AutoItX. Is there some workaround for this? One more. It's probably not possible but I have to ask. Is it doable for you to give us possibility to compile au3 script not only to exe file but to dll too? I could use this dll in .NET and maybe AutoItX wouldn't be needed in most cases. No, it's too beautiful to be possible ? The most important is to treat what's most important with utmost importance Link to comment Share on other sites More sharing options...
Richard Robertson Posted May 11, 2011 Share Posted May 11, 2011 I'll answer the questions in order. 1. You just have to translate _GUICtrlSlider_GetPos. It's not difficult considering most of those functions just wrap WinApi calls. 2. No. AutoIt scripts are not compiled and still exist in script form when sent to an exe file. This prevents any AutoIt functions from being exported as a dll would require. Link to comment Share on other sites More sharing options...
trancexx Posted May 11, 2011 Share Posted May 11, 2011 If I may add regarding Richard Robertson's second answer... You can "export" any user defined function from a script if you use relatively new feature available to AotoItObject users. It's basically possible to have script as COM server, meaning you can add wanted functions as methods of exported object. After you create object (get from ROT) in your app, script function is at your disposal. Find AutoItObject thread in examples forum, there are few examples posted there and in AutoItObject package. It's actually simpler (and better) than it sounds at first. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Richard Robertson Posted May 11, 2011 Share Posted May 11, 2011 Trying to bind to dynamic objects in .Net isn't the easiest thing to do. I don't even know of a non-compile time way to access COM either. Link to comment Share on other sites More sharing options...
dotnetter Posted May 11, 2011 Author Share Posted May 11, 2011 Thanks for your support. Trancexx: sounds promising, I'll digg a bit in this and let you know later. If fail, I'll use solution of Richard Robertson. That shouldn't be difficult in fact. The most important is to treat what's most important with utmost importance Link to comment Share on other sites More sharing options...
junkew Posted May 11, 2011 Share Posted May 11, 2011 if you are in a .NET language then UI Automation namespace is probably easier to get access to slider information http://msdn.microsoft.com/en-us/library/ee684021(v=vs.85).aspx FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets 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