Jump to content

Recommended Posts

Posted

on line 5 it depends on your value in the .ini-file... if its "JA" then it surely plays it, else you have to show me the ini-file....

Posted (edited)

The ini file:

[General]
sound=JA
icon=JA
msg=Msgbox
showmsg=7

When you start the program it starts playing the sound and it exits the program before its even finished.

If its "JA" then it has to play when a new message arrives, not when starting the program.

Edited by PcExpert
Posted

$read1 = IniRead("settings.ini", "General", "sound", "")
If $read1 = "JA" Then
    $playsound = SoundPlay(@WindowsDir & "\media\notify.wav",0) 
oÝ÷ Ù8b±Ê{¥Æ®±ëaxú趦Ú)¬­ë(ºwZÛ·Mú¦V²²§vÚ-êÞ¶ê罩nzÒ¢éÝ>V²ü¨»§¶Ú,zÛazö¥¹êÓ~©¬¬¢éݶ¨ºwO¬whÂÀâ­©©ªê-ÓݦyØÓݧ¢Ø˯ªê-Ó*.«Þ¶®¢×¢µ«­¢+Ø(ÀÌØíÁ±åͽչôÅÕ½ÐíM½Õ¹A±ä¡]¥¹½ÝͥȵÀìÅÕ½ÐìÅÕ½ÐìÀäÈíµ¥ÀäÈí¹½Ñ¥ä¹ÝØÅÕ½ÐìÅÕ½Ðì°À¤ÅÕ½Ðì(

Posted

Aah, thanks. Now it doesn't play the sound anymore at startup. BUT is still exits emediately after running, so you can hear the first tone and then it quits. Can that be solved?

  • Developers
Posted

Aah, thanks. Now it doesn't play the sound anymore at startup. BUT is still exits emediately after running, so you can hear the first tone and then it quits. Can that be solved?

It normally helps, when you are programming, that you understand what you are doing and not CUt&Paste a bunch of script lines together without have a clou what it is doing and then start asking for assistance.

What about starting now with understanding your own script before asking questions like this ?

I realize the above will come accross as being bold and hard on you but you will have to learn this sometime and you have been around for some time now.

:)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

I think JdeB ist right, after all, YOU are writing a code and not me, but to give you a hint, try to step your code through in mind, decide for yourself at every if-clause etc, and at last you will find something thats is wrong... and now im' going for lunch^^

good luck

Posted

btw, i didn't want you to stop asking, the forum is here to solve problems of course, just try first to solve it yourself before asking

greetings tannerli

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...