Ich habe folgenden Code
[autoit]
Opt("SendKeyDelay", 0)
Opt("SendKeyDownDelay", 0)
$readcarlock = iniread ($ini,"Settings","/carlock","")
$readexit = iniread ($ini,"Settings","/exit","")
$readenter = iniread ($ini,"Settings","/enter","")
$readrespray = iniread ($ini,"Settings","/respraycar","")
$readfix = iniread ($ini,"Settings","/fixcar","")
$call911 = iniread ($ini,"Settings","/callpolice","")
$readkill = iniread ($ini,"Settings","/kill","")
$readfill = iniread ($ini,"Settings","/fill","")
$readfuel = iniread ($ini,"Settings","/get fuel","")
Hotkeyset ($readcarlock,"carlock")
Hotkeyset ($readexit,"exit_")
Hotkeyset ($readenter,"enter_")
Hotkeyset ($readrespray,"respraycar_")
Hotkeyset ($readfix,"fixcar_")
Hotkeyset ($call911,"police_")
hotkeyset ($readkill,"kill_")
Hotkeyset ($readfill,"fill_")
Hotkeyset ($readfuel,"getfuel_")
func carlock ()
send ("{t}")
sleep (500)
send ("/carlock")
send ("{enter}")
EndFunc
Mit den Funktionen gehts nach unten noch weiter, aber ich lass ma dieses carlock beispiel stehen.
So, wenn ich meinen Hotkey jetzt definiert habe und drücke tut er einfach nicht. Kann mir jmd sagen worans liegt ?
MFG