forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Annoying click sound when using WINDOW SEND command

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Tue Feb 25, 2003 4:45 am    Post subject: Annoying click sound when using WINDOW SEND command Reply with quote

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... Smile

I was teasing you Mac and Garrett... Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Feb 25, 2003 8:30 am    Post subject: Reply with quote

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
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Tue Feb 25, 2003 8:31 am    Post subject: Reply with quote

Not really... I don't have that problem in Win95. Confused

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)... Wink

Cheers, Mac Smile

[EDIT] OOPS - Skit's faster than I am.... Wink

_________________
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
View user's profile Send private message Send e-mail
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Tue Feb 25, 2003 12:42 pm    Post subject: Reply with quote

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 Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group