loop
{
Stroke := Chr(a_index)
Matchlist := Matchlist . Stroke . ","
if (a_index==255)
break
}
Loop
{
Input, UserInput, V,, %Matchlist%
msgbox % UserInput
}How can I get messagebox while I up any key ?
Posted 14 May 2012 - 05:36 PM
loop
{
Stroke := Chr(a_index)
Matchlist := Matchlist . Stroke . ","
if (a_index==255)
break
}
Loop
{
Input, UserInput, V,, %Matchlist%
msgbox % UserInput
}Posted 14 May 2012 - 06:11 PM
loop 255
{
var := Chr(A_Index)
Hotkey, %var%, sub
}
Sub:
KeyWait, %A_ThisHotkey%
Msgbox
return
!x::
ExitAppPosted 14 May 2012 - 06:40 PM
Posted 14 May 2012 - 07:30 PM
SetFormat, Integer, Hex
loop 255
{
; If (A_index = 0x02 or 0x01)
; continue
var = vk%A_Index%
Hotkey, %var%, sub
}
Sub:
KeyWait, %A_ThisHotkey%
Msgbox
return
!x::
ExitAppPosted 14 May 2012 - 08:19 PM
Posted 14 May 2012 - 08:25 PM
Posted 15 May 2012 - 10:40 PM
loop 255
{
If (A_index = 0x2) or (A_Index = 0x1)
continue
var = vk%A_Index%
Hotkey, %var%, sub
}
return
Sub:
KeyWait, %A_ThisHotkey%
Msgbox
return
!x::
ExitAppPosted 15 May 2012 - 11:31 PM
Posted 16 May 2012 - 07:23 AM
#Persistent
#SingleInstance Force
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SetBatchLines -1 ; maximum speed for loops
loop
{
Stroke := Chr(a_index)
Matchlist := Matchlist . Stroke . ","
if (a_index==255)
break
}
Loop
{
Input, UserInput, V,, %Matchlist%
while GetKeyState(UserInput)
sleep 10 ; meaning while the key is depressed, do nothing
msgbox % UserInput
}
Posted 16 May 2012 - 07:29 AM
Posted 16 May 2012 - 11:50 AM
Posted 16 May 2012 - 02:36 PM
Posted 16 May 2012 - 08:03 PM