Skip to main content
Solved

start it up!

  • July 10, 2014
  • 1 reply
  • 5 views

gio
Contributor
Forum|alt.badge.img+15
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
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, 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
Celebrity
  • Best Answer
  • July 11, 2014
haha, you've switched to Python?

 

 

# Shutdown Tcl Script

 

package require twapi

 

twapi::play_sound SystemExit -alias