aris Posted October 23, 2011 Share Posted October 23, 2011 hi, can i somehow attach to an event ? i mean i want to check the state of a control exists for example or position but without running a timer with autoit.getcontrol in it cause its bad programming. can i do this with autoit and c#? Link to comment Share on other sites More sharing options...
Richard Robertson Posted October 24, 2011 Share Posted October 24, 2011 There is no "control added" event. Link to comment Share on other sites More sharing options...
aris Posted October 24, 2011 Author Share Posted October 24, 2011 (edited) its was an example i think you understood my point. can we have events with autoit and callbacks or not? replace("control added","control.position_changed") or something is the proper technique to put a timer and then parse to see if something changed? Edited October 24, 2011 by aris Link to comment Share on other sites More sharing options...
Richard Robertson Posted October 24, 2011 Share Posted October 24, 2011 The events that occur in .Net don't match up with anything in the Win32 world. AutoIt has no way to access that. Link to comment Share on other sites More sharing options...
JohnOne Posted October 24, 2011 Share Posted October 24, 2011 Autoit3x enables you to use Autoit3 functionality from another language, not the other way around. 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...
Mat Posted October 29, 2011 Share Posted October 29, 2011 It would be difficult in C# as you'd need to import a lot of winapi functions... But it's possible. Would require a good in depth knowledge of the windows api though, as I imagine you'd need to inject code into the process, change the window procedure for the target control to the injected code, then look at inter-process methods of communication... Could be interesting. Alternatively hooks might be able to do a lot of what you want. AutoIt Project Listing 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