| View previous topic :: View next topic |
| Author |
Message |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Tue Feb 25, 2003 4:45 am Post subject: Annoying click sound when using WINDOW SEND command |
|
|
Hi,
I'm currently building a little app that has to send alt(M) to an external APP.
Strangely, in Windows 95 (Macs & Garrett favorite OS), 98 and Windows ME I keep earing a click in the speaker of the PC everytime my VDS app send the key to the external app.
Any ideas why?
Here's my bit of code I use to send a key combination:
| Code: | PARSE "%T;%L;%W;%H",@winpos(%%externalapp,TLWH)
window send,@winatpoint(%T,%L),@ALT(M) |
Thanks...
I was teasing you Mac and Garrett...  |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Tue Feb 25, 2003 8:30 am Post subject: |
|
|
Turning the sound of???
Just kidding. You should look into the registry for the key which contains all windows sounds, and remove the one which makes the 'click' sound. I think this must be the right key:
| Code: | | HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default |
Just search with REGEDIT for the right key, rename it, then test your program again, and listen if it is disabled... |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Tue Feb 25, 2003 8:31 am Post subject: |
|
|
Not really... I don't have that problem in Win95.
A real keypress or mouseclick will make a tick sound in some
cases - such as trying to click a parent window when a modal
window (that must be closed first) is open...
Some thoughts...
- Have ya tried WINDOW ACTIVATE @winatpoint(%T,%L) first?
- Have ya tried a WAIT (or WAIT ".5") before WINDOW SEND?
- Does the code actually send ALT+M to the program?
- Does it click when ya manually press ALT+M keys in this program?
- Do other programs make this sound with WINDOW SEND?
Ya might also check for strange keyboard settings (speed, etc.)
and default event "sounds" (control panel)...
Cheers, Mac
[EDIT] OOPS - Skit's faster than I am....  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Tue Feb 25, 2003 12:42 pm Post subject: |
|
|
| Quote: | Some thoughts...
- Have ya tried WINDOW ACTIVATE @winatpoint(%T,%L) first?
- Have ya tried a WAIT (or WAIT ".5") before WINDOW SEND?
- Does the code actually send ALT+M to the program?
- Does it click when ya manually press ALT+M keys in this program?
- Do other programs make this sound with WINDOW SEND? |
- WINDOW ACTIVATE @winatpoint(%T,%L): I did try only WINDOW ACTIVATE, %%appname and it didnt work (it wouldnt activate the window)and will try your option
- No WAIT... will try that too
- Yes the ALT M is sent
- No click when I do it manually
- Not all programs.
Thanks Mac and Skit  |
|
| Back to top |
|
 |
|