this is my code here:
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.6.0
Author: myName
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
; Script Start - Add your code below here
#include<misc.au3> ;needed to capture keystrokes
HotKeySet("!q", "Numpad7")
HotKeySet("!w", "Numpad8")
HotKeySet("!a", "Numpad4")
HotKeySet("!s", "Numpad5")
HotKeySet("!z", "Numpad1")
HotKeySet("!x", "Numpad2")
While 1
WEnd
Func _SendEx($ss,$warn = "")
Local $iT = TimerInit()
While _IsPressed("10") Or _IsPressed("11") Or _IsPressed("12")
if $warn <> "" and TimerDiff($iT) > 1000 Then
MsgBox(262144, "Warning", $warn)
EndIf
sleep(50)
WEnd
Send($ss)
EndFunc;==>_SendEx
Func Numpad7()
_SendEx("{numpad7}")
EndFunc
Func Numpad8()
_SendEx("{numpad8}")
EndFunc
Func Numpad4()
_SendEx("{numpad4}")
EndFunc
Func Numpad5()
_SendEx("{numpad5}")
EndFunc
Func Numpad1()
_SendEx("{numpad1}")
EndFunc
Func Numpad2()
_SendEx("{numpad2}")
EndFunc
where exactly should i put the _ispressed? thanks for your help