I have the following hotkey for a specific program:
Code: Select all
appskey::
SetCapsLockState, Off
send ^+b
return
But i would like that when i press the "appkey" key fast twice it would open "notepad".
It´s possible?
Code: Select all
appskey::
SetCapsLockState, Off
send ^+b
return
Code: Select all
appskey Up::SetTimer, Takey,% -10-400*(Takey:=!Takey)
Takey:
IF Takey
{
SetCapsLockState, Off
send ^+b
}
Else Run, Notepad.exe
Takey := False
Return
Code: Select all
appskey Up::SetTimer, Takey,% -10-400*(Takey:=!Takey)
Takey:
IF Takey And !Takey := False {
SetCapsLockState, Off
send ^+b
} Else Run, Notepad.exe
Return
Code: Select all
Loop
{ ;Format: ddMMyyyy
Input, Key, L1 V
IF Key is not Integer
Date := Key := ""
IF StrLen(Date .= Key) < 8
Continue
Try := (Year:=SubStr(Date,5)) (Month:=SubStr(Date,3,2)) SubStr(Date,1,2)
Try -= A_Now, Days
IF Try > ""
SendInput, {BackSpace 6}/%Month%/%Year%
Date := ""
}
return
Sorry, there was a misunderstanding. I really appreciate your suggestion, but I just wanted to say that it didn't work. Sorry if I sounded rude, but that was never my intention!
Code: Select all
appskey Up::SetTimer, Takey,% -10-400*(Takey:=!Takey)
Takey:
IF Takey And !Takey := False {
SetCapsLockState, Off
send ^+b
} Else Run, Notepad.exe
Return
Code: Select all
Loop
{ ;Format: ddMMyyyy
Input, Key, L1 V
IF Key is not Integer
Date := Key := ""
IF StrLen(Date .= Key) < 8
Continue
Try := (Year:=SubStr(Date,5)) (Month:=SubStr(Date,3,2)) SubStr(Date,1,2)
Try -= A_Now, Days
IF Try > ""
SendInput, {BackSpace 6}/%Month%/%Year%
Date := ""
}
return
Code: Select all
Loop
{ ;Format: ddMMyyyy
Input, Key, L1 V
IF Key is not Integer
Date := Key := ""
IF StrLen(Date .= Key) < 8
Continue
Try := (Year:=SubStr(Date,5)) (Month:=SubStr(Date,3,2)) SubStr(Date,1,2)
Try -= A_Now, Days
IF Try > ""
SendInput, {BackSpace 6}/%Month%/%Year%
Date := ""
}
return
Code: Select all
Loop
{ ;Format: ddMMyyyy
Input, Key, L1 V
IF Key is not Integer
Date := Key := ""
IF StrLen(Date .= Key) < 8
Continue
Try := (Year:=SubStr(Date,5)) (Month:=SubStr(Date,3,2)) SubStr(Date,1,2)
Try -= A_Now, Days
IF Try > ""
SendInput, {BackSpace 6}/%Month%/%Year%
Date := ""
}
return
appskey Up::SetTimer, Takey,% -10-400*(Takey:=!Takey)
Takey:
IF Takey And !Takey := False {
SetCapsLockState, Off
send ^+b
} Else Run, Notepad.exe
Return
Loop
{ ;Format: ddMMyyyy
Input, Key, L1 V
IF Key is not Integer
Date := Key := ""
IF StrLen(Date .= Key) < 8
Continue
Try := (Year:=SubStr(Date,5)) (Month:=SubStr(Date,3,2)) SubStr(Date,1,2)
Try -= A_Now, Days
IF Try > ""
SendInput, {BackSpace 6}/%Month%/%Year%
Date := ""
}
return
appskey Up::SetTimer, Takey,% -10-400*(Takey:=!Takey)
Takey:
IF Takey And !Takey := False {
SetCapsLockState, Off
send ^+b
} Else Run, Notepad.exe
Return
Dear friend, I changed the order and it started working!
Code: Select all
Loop
{ ;Format: ddMMyyyy
Input, Key, L1 V
IF Key is not Integer
Date := Key := ""
IF StrLen(Date .= Key) < 8
Continue
Try := (Year:=SubStr(Date,5)) (Month:=SubStr(Date,3,2)) SubStr(Date,1,2)
Try -= A_Now, Days
IF Try > ""
SendInput, {BackSpace 6}/%Month%/%Year%
Date := ""
}
return
appskey Up::SetTimer, Takey,% -10-400*(Takey:=!Takey)
Takey:
IF Takey And !Takey := False {
SetCapsLockState, Off
send ^+b
} Else Run, Notepad.exe
Return
Users browsing this forum: Bing [Bot], blackbook7777, Google [Bot], MrDoge and 134 guests