| View previous topic :: View next topic |
| Author |
Message |
BIOSRAM Guest
|
Posted: Thu Jun 12, 2008 2:15 pm Post subject: KeyWait Pause |
|
|
Hi,
I have following problem, when I use command KeyWait with key "Break" or "Pause" or "CTRLBREAK" it does not function each time, I have nearly always to press Pause sometimes 2 or more times till it is accepted for example following code:
| Code: | KeyWait, Pause, D
MsgBox, You pressed Pause Key |
Can anyone test and confirm having the same problem, is it a bug?
Thanks in advance. |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 6264
|
Posted: Thu Jun 12, 2008 3:23 pm Post subject: Re: KeyWait Pause |
|
|
| BIOSRAM wrote: | | Can anyone test and confirm having the same problem, is it a bug? |
Your code works fine for me. Maybe your key is faulty?
Have you confirmed it with a hotkey?
| Code: | | Pause::MsgBox, Pause key! |
 _________________
 |
|
| Back to top |
|
 |
BIOSRAM Guest
|
Posted: Thu Jun 12, 2008 8:35 pm Post subject: KeyWait Pause |
|
|
Thanks SKAN, you are right, this is a problem with my keyboard, I never thought it might be a problem with keyboard.
Thanks for quick reply. |
|
| Back to top |
|
 |
BIOSRAM Guest
|
Posted: Thu Jun 12, 2008 9:14 pm Post subject: KeyWait Pause |
|
|
Hi again,
looks like the key is not the problem.
I have now tried a hotkey, this works fine but KeyWait still does not work very often.
Kan you try following 2 examples:
| Code: |
Loop
{
KeyWait, CTRL, D
ToolTip, Count: %A_Index%
}
|
and
| Code: | Loop
{
KeyWait, PrintScreen, D
ToolTip, Count: %A_Index%
}
|
You can use any other key than CtrlBreak, Break or Pause for the second example.
Now press and hold the key.
With Pause, Break and CtrlBreak keys tooltip will not continue to count, you will need to release and press Pause again than it will count a little and stop again, other than any other key where you can hold the key and it will continue to count until you release the key.
Can you please test and confirm? |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 6264
|
Posted: Thu Jun 12, 2008 10:28 pm Post subject: Re: KeyWait Pause |
|
|
| BIOSRAM wrote: | | Code: | Loop
{
KeyWait, PrintScreen, D
ToolTip, Count: %A_Index%
}
|
Can you please test and confirm? |
That code works fine for me. There is something peculiar about your keyboard, I guess.
 _________________
 |
|
| Back to top |
|
 |
BIOSRAM Guest
|
Posted: Fri Jun 13, 2008 9:57 am Post subject: KeyWait Pause |
|
|
Hi SKAN,
and what about Pause Key? PrintScreen was only to show how it should work:
| Code: | Loop
{
KeyWait, Pause, D
ToolTip, Count: %A_Index%
} |
Does it work for you as well? I have tried on several computers and it does not work.[/b] |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 6264
|
Posted: Sat Jun 14, 2008 9:13 am Post subject: Re: KeyWait Pause |
|
|
| BIOSRAM wrote: | | and what about Pause Key? |
Works normal.. as every other key.  _________________
 |
|
| Back to top |
|
 |
BIOSRAM Guest
|
Posted: Sat Jun 14, 2008 9:43 am Post subject: KeyWait Pause |
|
|
Hi SKAN,
thans for testing, so when you press and hold Pause for my example loop continues to run and count is growing?
That is weird, I have now tested it on 3 computers and it does definitely not work. Do you possibly have another computer where you can test?
I will test that key on other computers and will report if it worked.
Can anybody else test it and confirm possibly?
| Code: | Loop
{
KeyWait, Pause, D
ToolTip, Count: %A_Index%
} |
Thank you. |
|
| Back to top |
|
 |
Vade
Joined: 14 Jun 2008 Posts: 2
|
Posted: Sat Jun 14, 2008 11:28 am Post subject: |
|
|
Those scripts work fine on my computer, BIOSRAM.
There may be some other program using those keys ? |
|
| Back to top |
|
 |
n-l-i-d Guest
|
Posted: Sat Jun 14, 2008 12:53 pm Post subject: |
|
|
| Do you use the latest version of AutoHotkey? And: it might be that your keyboard simply needs physical cleaning... |
|
| Back to top |
|
 |
BIOSRAM Guest
|
Posted: Sat Jun 14, 2008 2:47 pm Post subject: KeyWait Pause |
|
|
Thanks for testing.
This is really weird, I do not think it is my key and I also have the latest version of AutoHotkey.
I have now tested it on 1 computers and 2 notebooks, all with different builds of windows xp professional, but it does not work on all of them.
When I run this code I have to press Pause again and again to make the loop continue, on my older notebook I need to press it more than 10 times till the script continues but it always stops on all computers:
| Code: | Loop
{
KeyWait, Pause, D
ToolTip, Count: %A_Index%
} |
A_Index grows for around 100++ but always stops.
I will continue to test it on other computers and will reply soon.
Are you also using win xp prof? |
|
| Back to top |
|
 |
BIOSRAM Guest
|
Posted: Sat Jun 14, 2008 3:12 pm Post subject: KeyWait Pause |
|
|
I have now tested it with a USB Keyboard and it works, very odd.
I tried the same with a usb/ps2 converter and normal keyboard and it does not work.
Must be something with the keyboard.
SKAN, Vade, n-l-i-d, are you using a PS2 Keyboard? |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 6264
|
Posted: Sat Jun 14, 2008 5:00 pm Post subject: Re: KeyWait Pause |
|
|
| BIOSRAM wrote: | | SKAN, Vade, n-l-i-d, are you using a PS2 Keyboard? |
Oh! No.. I tested it with USB KB.. I will try it with PS2 and reply again.
 _________________
 |
|
| Back to top |
|
 |
Superfraggle
Joined: 02 Nov 2004 Posts: 970 Location: London, UK
|
Posted: Sat Jun 14, 2008 6:04 pm Post subject: |
|
|
Testing on mine and looking at the key history suggests that at least on my system the pause key does not produce auto repeat key strokes.
FYI I am using a laptop with built in PS/2 keyboard. _________________ Steve F AKA Superfraggle
http://r.yuwie.com/superfraggle |
|
| Back to top |
|
 |
BIOSRAM Guest
|
Posted: Sat Jun 14, 2008 10:00 pm Post subject: KeyWait Pause |
|
|
That is right Superfraggle
it sends the key up even it is still down, so when I press and hold Pause and press F5 for refreshing it shows that key released. |
|
| Back to top |
|
 |
|