Sign in to follow this  
Followers 0
aris

autoit events callback

6 posts in this topic

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#?

Share this post


Link to post
Share on other sites



There is no "control added" event.

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by aris

Share this post


Link to post
Share on other sites

The events that occur in .Net don't match up with anything in the Win32 world. AutoIt has no way to access that.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0