02-04-2013, 09:49 PM
sorry for the delay got busy for a few minutes try this
Function WaitForKeys0_9a_z
Function WaitForKeys0_9a_z
int x
rep
,int vk = wait(0 K);;wait for any key press
,if(vk=8);;if backspace key remove 1 from total count
,,x-1
,,if x<0;;if x goes below 0 reset x to 0
,,,x=0
,,out x
,if((vk>47 and vk<59) or (vk>64 and vk<91) or (vk>96 and vk<123));;if key 0-9 or a-z is pressed
,,out vk
,,x+1
,,out x
,,if x=5
,,,Beep 600 1000
,,,break