Jump to content

GUI/Hotkey Function call with parameters


Recommended Posts

The called function can not be given parameters. They will be ignored.

So that answers you first question. An alternitave would be _IsPressed ().

An Example:

#Include <Misc.au3>
While 1
    Select
        Case _IsPressed(12 + 41); Checks if Alt + A is pressed
            Add(2, 4) ;Runs func "add"
        Case Else
            Sleep(100)
    EndSelect
WEnd

Func Add($a, $B)
    MsgBox(0, "", $a + $B)
EndFunc

---------------------------------------------------------------------------------------

10 Days, 7 hours..... Jeez this is too hard.... :whistle:

Edited by bert
Link to comment
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
 Share

  • Recently Browsing   0 members

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