Don't use CHR(7). Try the Windows API instead.
I found an example of this a long time ago from the news2news Win32 API site
and rolled out this function. Pass it a specific sound file or it will default
to the old ding.wav. (Apologies in advance for any stupid Outlook wrapping...)
FUNCTION playSound(m.soundFile AS Character, m.soundMode AS Int)
TRY
IF VARTYPE(m.soundMode)=[L]
m.soundMode=0 && SND_SYNC
ENDIF
IF VARTYPE(m.soundFile)=[L]
m.soundMode=[ding.wav]
ENDIF
DECLARE INTEGER sndPlaySound IN WinMM.dll STRING lpszSoundName, INTEGER
uFlags
sndPlaySound(FULLPATH(m.soundFile), m.soundMode)
CATCH TO m.loError
FINALLY
ENDTRY
ENDFUNC
--
rk
-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of Ken Dibble
Sent: Friday, August 14, 2015 12:14 PM
To: [email protected]
Subject: Re: Appointment tracker
I've had issues with this in Win 7; a modeless top-level form used to display a
"pop-up" message won't appear on the desktop, or execute a "bell" sound (??
CHR(7)) if the user has something else open. It only silently puts up a button
on the taskbar. This does not get the user's attention. Worked fine in XP.
Is there a way to get such a VFP pop-up to take precedence instead of opening
minimized in Win 7?
Also, I've had issues with the Windows Scheduler in Win 7 for restricted users.
Apparently Windows Scheduler needs an administrator account to actually execute
some things. Someone else mentioned that UAC had to be turned off. Can anyone
elaborate on this point?
Thanks.
Ken Dibble
www.stic-cil.org
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/bn4pr10mb09130285eb9820548e2cdeb3d2...@bn4pr10mb0913.namprd10.prod.outlook.com
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.