Page 1 of 1

help for command please

Posted: 24 Feb 2018, 02:20
by night_devil
hi all, i want to make command holding alt +f1 same time that loops alt +f1 5 times
for example while holding alt+f1 (hit 5 times with alt +f1)
ty for help

Re: help for command please

Posted: 25 Feb 2018, 11:16
by Nwb
Does this work like you want it to?

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
#MaxThreadsPerHotkey 2

Alt & f1::
Send, {Alt}{f1}{Alt}{f1}{Alt}{f1}{Alt}{f1}{Alt}{f1}
return

esc:: ExitApp ; esc, exits the script

Re: help for command please

Posted: 27 Feb 2018, 11:59
by night_devil
yes bro ty for help :)