Page 1 of 1 1
Topic Options
#139836 - 2005-05-17 05:13 PM Twinkle Twinkle lil star......
AzzerShaw Offline
Seasoned Scripter
****

Registered: 2003-02-20
Posts: 510
Loc: Cheltenham, England
Dear all

My colleague appears to fall asleep at his desk an awful lot and i would like to be able to execute a script on my machine to play a tune on his pc maybe twinkle twinkle or maybe a cockrel crowing....(By the way yes i am evil )

I was thinking of doing something with scheduled tasks but would like some suggestions

were both Running XP sp1
Using 4.21


cheers Aaron
_________________________
If at first you don't succeed, try again. Then quit. There's no use being a damn fool about it. - W.C Fields

Top
#139837 - 2005-05-17 05:28 PM Re: Twinkle Twinkle lil star......
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Search for remote execute.
Top
#139838 - 2005-05-17 06:23 PM Re: Twinkle Twinkle lil star......
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
my personal fav.... remote execute the "chicken dance" song
Top
#139839 - 2005-05-17 06:31 PM Re: Twinkle Twinkle lil star......
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
and while you're at it, eject the CD tray.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#139840 - 2005-05-17 06:55 PM Re: Twinkle Twinkle lil star......
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
or...

open and close the cdrom tray on all comptuers in the domain....

Top
#139841 - 2005-05-17 09:56 PM Re: Twinkle Twinkle lil star......
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Damn you, Bryce. I've had this song stuck in my head since you've replied to this post.
Top
#139842 - 2005-05-17 10:15 PM Re: Twinkle Twinkle lil star......
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX


LOL!

my work here is done.

Top
#139843 - 2005-05-17 10:35 PM Re: Twinkle Twinkle lil star......
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Azz are we too off topic for you now? The remote execute should allow you to run it.

You could also use this UDF during logon or remote execution if the script resided on the system.
PlayMediaFile() - Plays a media file, either audio or video using mplay32.exe

http://audiolunchbox.com/preview.m3u?i=275726


  

If we're going South:
http://www.pdinfo.com/music/FS057.mov


Edited by NTDOC (2005-05-17 10:50 PM)

Top
#139844 - 2005-05-17 11:57 PM Re: Twinkle Twinkle lil star......
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
ROFLMAO - your all a bunch of sick bastas !

I got this mental image of all the workstations in the domain opening and closing their CD trays in time with the chicken dance. Get it out of my head !!! ;0)

Top
#139845 - 2005-05-18 12:05 AM Re: Twinkle Twinkle lil star......
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
the questions is... what basta has written the code to do it.

I got a "reboot all comptuers in the domain" script around here someplace....

Top
#139846 - 2005-05-18 12:43 AM Re: Twinkle Twinkle lil star......
AzzerShaw Offline
Seasoned Scripter
****

Registered: 2003-02-20
Posts: 510
Loc: Cheltenham, England
lol i love u guys hehe....done the cd tray now but he is getting used to it!! lol the chicken song is my fav will write the script if i get a spare few 2morrow

Aaron
_________________________
If at first you don't succeed, try again. Then quit. There's no use being a damn fool about it. - W.C Fields

Top
#139847 - 2005-05-18 05:38 AM Re: Twinkle Twinkle lil star......
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Program Microsoft Merlin with appropriate sentences, e.g. combine the KiXtart IM scripts or KiXforms sockets to send text messages with a Microsoft Merlin output :-)
_________________________
There are two types of vessels, submarines and targets.

Top
#139848 - 2005-05-18 04:40 PM Re: Twinkle Twinkle lil star......
AzzerShaw Offline
Seasoned Scripter
****

Registered: 2003-02-20
Posts: 510
Loc: Cheltenham, England
Okay work in progress but i thought about setting up a service and then remotley starting the service....hehe.....

Code:
 

; Uses instsrv.exe & srvany.exe from the Server 2003 resource kit


;copys instsrv.exe & srvany.exe

Copy "\\server\systems\kix" "c:\windows\system32" "instsrv.exe"

Copy "\\server\systems\kix" "c:\windows\system32" "srvany.exe"

;Creates service

Run "%COMSPEC% /c c:\windows\system32\instsrv.exe Testing C:\windows\system32\srvany.exe"

Sleep 0.5

;created regg entry

AddKey ("HKLM\system\CurrentControlSet\Services\Testing\Parameters")

Sleep 0.5

WriteValue ("HKLM\system\CurrentControlSet\Services\Testing\Parameters","Application","C:\windows\system32\MicrosoftSound.wav","Reg_SZ")

Sleep 0.5

;Sets startup type to manual

WriteValue ("HKLM\system\CurrentControlSet\Services\Testing","Start","3","Reg_DWORD")





Excuse the basics of it but i havent had long to mess with this 2day

Please feel free to comment

Aaron
_________________________
If at first you don't succeed, try again. Then quit. There's no use being a damn fool about it. - W.C Fields

Top
#139849 - 2005-05-25 12:30 PM Re: Twinkle Twinkle lil star......
AzzerShaw Offline
Seasoned Scripter
****

Registered: 2003-02-20
Posts: 510
Loc: Cheltenham, England
Alright....script is done, executed on PC but hit a snag...he has muted his pc I think he is onto my devious plan.....

Does anyone know a way of remotley enabling sound? also possible sound levels?

Google has produced nowt

Thanks

Aaron
_________________________
If at first you don't succeed, try again. Then quit. There's no use being a damn fool about it. - W.C Fields

Top
#139850 - 2005-05-25 04:44 PM Re: Twinkle Twinkle lil star......
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4549
Loc: USA
I haven't found a script way (yet) but I found these utilities(untested)...

Mute.exe and SetVol.exe

Both are located close to the bottom of the page.

Top
#139851 - 2005-05-25 04:50 PM Re: Twinkle Twinkle lil star......
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4549
Loc: USA
NirCMD can also do it.
Top
#139852 - 2005-05-25 04:51 PM Re: Twinkle Twinkle lil star......
AzzerShaw Offline
Seasoned Scripter
****

Registered: 2003-02-20
Posts: 510
Loc: Cheltenham, England
Thats exactly what i want *Rubs hands together* the fun continues.....muhahaha
_________________________
If at first you don't succeed, try again. Then quit. There's no use being a damn fool about it. - W.C Fields

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 369 anonymous users online.
Newest Members
rrosell, PatrickPinto, Raoul, Timothy, Jojo67
17877 Registered Users

Generated in 0.069 seconds in which 0.024 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org