Jump to content
Sign in to follow this  

I cant control "AfxControlBar42s" control

Recommended Posts


I dont know if this is simple or complicated, but I have a problem:

I am automating a program (WPE PRO) to do some simple, yet effective, tasks.

Fist I like it to open a document, some packet filters witch I have created, then check the check boxes of certant filters.

I'm done with the checkboxes, thanks to "GUICtrlListView_SetItemChecked", but :) I can't open the filters automaticly!

The whole "FILTER MENU" is a "AfxControlBar42s" with 8 buttons with no hotkeys.

I have tried with this:

$controlhandle2 = ControlGetHandle("WPE PRO", "", "AfxControlBar42s")
ControlClick("WPE PRO", "", $controlhandle2, "left", 1, 164, 14)

But nothing happends... It is supposed to click on of those buttons :/ Is my try dumb or is it complicated and how would I then do it?

I am happy for answers!


PS: Please, no posts about me making suspicious programs, WPE PRO is flagged as a hacking tool or a trojan but it is a Winsock Packet Editor... And I'm not making anything bad, just making my little brother and his friends happier :) Thankya

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