Jump to content

Recommended Posts

Posted

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.

Posted

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
Posted

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
Posted

@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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...