Jump to content
Sign in to follow this  
aris

autoit events callback

Recommended Posts

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

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...