Skip to content

How to call AHK built-in functions that don't use ()? #2

Description

@ssweber

Hi. I love the simplicity of what you've created here.

I might have missed it, but is there anyway to call build-ins that don't use parenthesis?

Currently I'm just creating my own functions to pass along:

self.ahk = Script('''
WinActivate(title) {
    WinActivate, % title
}
Click(options) {
    Click, % options
}
''')

So I then do:
ahk.f('WinActivate', self.title)
or
ahk.f('Click', f"{x} {y}")

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions