Skip to main content
Solved

start it up!

  • July 10, 2014
  • 1 reply
  • 5 views

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
Sometimes, runing and testing fme scripts can be tedious....

 

 

 

so break the monotony!

 

 

import winsound

 

import time

 

# Play Wavs

 

# Python also accepts the forward slash

 

soundfile = "H:\\\\Documents\\\\My Music\\\\startitup"

 

winsound.PlaySound(soundfile, winsound.SND_FILENAME|winsound.SND_ASYNC)

 

 

# wait one and a half seconds

 

time.sleep(1.5)

 

 

 

and shutdownscript:

 

 

import winsound

 

import time

 

# Play Wavs

 

# Python also accepts the forward slash

 

soundfile = "H:\\\\Documents\\\\My Music\\\\gameover"

 

winsound.PlaySound(soundfile, winsound.SND_FILENAME|winsound.SND_ASYNC)

 

 

 

These i now have as startup and sutwons...lol

 

(wavs can be downloaded from villagegeek.com; or use or wavs..)

 

 

 

Or use windows sounds, for example:

 

 

import winsound

 

# Play Windows exit sound.

 

winsound.PlaySound("SystemExit", winsound.SND_ALIAS)

 

 

 

Best answer by takashi

haha, you've switched to Python?

 

 

# Shutdown Tcl Script

 

package require twapi

 

twapi::play_sound SystemExit -alias
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

takashi
Influencer
  • Best Answer
  • July 11, 2014
haha, you've switched to Python?

 

 

# Shutdown Tcl Script

 

package require twapi

 

twapi::play_sound SystemExit -alias

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings