#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 447, 193, 125)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Global $argArray[10]
Local $i
$i = 1
$argArray[$i] = $i
HotKeySet(Call("swap_rejian", $i), "cs" & $i)
$i = 2
$argArray[$i] = $i
HotKeySet(Call("swap_rejian",$i), "cs" & $i)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func swap_rejian($i)
Return "{F" & $i & "}"
EndFunc
Func cs1()
Call("jn_aj", $argArray[1])
EndFunc
Func cs2()
Call("jn_aj", $argArray[2])
EndFunc
Func jn_aj($arg)
MsgBox(0, "", $arg)
EndFunc
|