Sign in to follow this  
Followers 0
ptrex

Possible to assign a new function to a button of a external application

7 posts in this topic

Is it possible to assign a new function to a button of a an application.

Like clicking the buttun would normally do something in an appl..

But I nt to assign a new function to it (like opening Notepad for instance)

The only way I found so far,is using AnyGui.au3 script which makes it possible to create a new button in AnyGui of an appl.

Share this post


Link to post
Share on other sites



You could use an INI file to specifiy what the button did.

...
Case $msg =  &button1
_RunProgram()
...

Func _RunProgram()
$prog = IniRead("myfile.ini", "SectionName", "key", "NotFound")
RunWait(@Comspec & " /c " & $prog,"",@SW_HIDE)
Endfunc

Share this post


Link to post
Share on other sites

Is it possible to assign a new function to a button of a an application.

Like clicking the buttun would normally do something in an appl..

But I nt to assign a new function to it (like opening Notepad for instance)

The only way I found so far,is using AnyGui.au3 script which makes it possible to create a new button in AnyGui of an appl.

your best bet would be to 'hide' the existing button /control, then create a new button/control at the same coordinates, which when clicked , would call your functions, and perhaps then click the 'hidden' button/control.(so as to 'insert' your logic into the application.) This approach has made quite a few things happen for me that i could never get the original app's dev's to do. a little imagination can go a long way.


[u]Do more with pre-existing apps![/u]ANYGUIv2.8

Share this post


Link to post
Share on other sites

@kpu

Thanks for your input, but I think the approach of quaizywabbit looks more the way to go.

@quaizywabbit

This is realy what I meant, I want to add functionality that the developers can' t or won't add.

Can you show me some code on how to get rid of a button and replace it with what I need.

Many thanks in advance.

Regards

Share this post


Link to post
Share on other sites

Would a resource editor help?

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