RosettaCodeData/Task/Call-a-foreign-language-function/AutoHotkey/call-a-foreign-language-function.ahk

5 lines
248 B
AutoHotkey
Raw Permalink Normal View History

2013-04-10 16:57:12 -07:00
; Example: Calls the Windows API function "MessageBox" and report which button the user presses.
WhichButton := DllCall("MessageBox", "int", "0", "str", "Press Yes or No", "str", "Title of box", "int", 4)
MsgBox You pressed button #%WhichButton%.