SPONSORS:






User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to make a System beep

    Tested and working on Win2k Pro. I am calling the user32.dll function.
    in your script include 'msw32.inc' file



    [This message has been edited by GodKnows (edited 05-25-2001).]

  2. #2
    Member
    Join Date
    Aug 2000
    Location
    Hyderabad,AP,India
    Posts
    80
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to make a System beep

    Can I make a System beep sound using Silk .....

    Thanks in advance...

    Baseer

  3. #3
    Member
    Join Date
    Aug 2000
    Location
    Hyderabad,AP,India
    Posts
    80
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to make a System beep

    Please can you be a bit clear and explainative...

    I have never used dll's ....

    Its a request..

    Baseer

    ------------------

  4. #4
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to make a System beep

    Interface of beep function:

    MessageBeep (UINT uiAlertLevel)

    Actual Call
    use "msw32.inc"
    MessageBeep(MB_ICONASTERISK)

    Use visual studio's help for the exact definitionof the function.

    msw32.inc include mswfun32.inc which is a file mapping user32.dll functions.

    I had a big explanation before but, my browser didn't keep it in cache when I did a alt-left

    ------------------

  5. #5
    Member
    Join Date
    Aug 2000
    Location
    Hyderabad,AP,India
    Posts
    80
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to make a System beep

    Sir,

    I am not at all clear again....

    to tell you frankly I am a QA engineer in India and my age is 19....So this can give u a clear idea that I don't have any knowledge of Dll's....Please its a request again to all in this forum....Guide me....

    GodKnows...can you just send any script file of this issue...



    ------------------

  6. #6
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to make a System beep

    Which part you don't understand?

    ------------------

  7. #7
    Senior Member
    Join Date
    Nov 2000
    Location
    Bloomington, IL
    Posts
    142
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to make a System beep

    If you would like to be able to play more than a beep try the following code:

    First declare the dll in your .inc file that you want to use:

    [-] dll "winmm.dll"
    [ ] INT PlayWaveFile (LPCSTR lpSoundName, INT iOptions) alias "sndPlaySoundA"
    [ ]
    [ ] type LPCSTR is STRING

    Then I created a function to play the wave file (You will need to substitute the path and file name of the wav file you want to play):

    [-] PlaySound()
    [ ] PlayWaveFile("c:\winnt\media\Microsoft Office 2000\Applause.wav", 0)

    This could easily be setup to play the same wav file in a loop, so that you were sure of hearing. I use this particular wave file to alert me to a possible problems, I develop on one machine and run the script on another machine at my side by side.

    Mike


    ------------------

  8. #8
    Junior Member
    Join Date
    May 2001
    Location
    New Delhi , India
    Posts
    28
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to make a System beep

    Hi,

    If you would wanna try a simple script which generates simple tones on the speaker , try the following script.
    Just do a copy / paste in ur 4Test editor and run the script.

    use "mswtype.inc";

    dll "kernel32.dll"
    {
    BOOL Beep( DWORD dwFreq , // sound frequency
    DWORD dwDuration // sound duration );

    testcase MakeBeep () appstate none
    {
    Beep ( 767 , 100 );
    }

    ------------------

  9. #9
    Junior Member
    Join Date
    May 2001
    Location
    New Delhi , India
    Posts
    28
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to make a System beep

    Hi,

    If you would wanna try a simple script which generates simple tones on the speaker , try the following script.
    Just do a copy / paste in ur 4Test editor and run the script.

    use "mswtype.inc";

    dll "kernel32.dll"
    {
    BOOL Beep( DWORD dwFreq , // sound frequency
    DWORD dwDuration // sound duration );

    testcase MakeBeep () appstate none
    {
    Beep ( 767 , 100 );
    }

    ------------------

  10. #10
    Member
    Join Date
    Aug 2000
    Location
    Hyderabad,AP,India
    Posts
    80
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to make a System beep

    Thanks Friends,

    Now I am with a initialtive push....I am sure I can now continue further...but please keep on helping me in this way

    Baseer

    ------------------

 

 
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 12:49 PM.

Copyright BetaSoft Inc.