Login | |
|
 |
RE: Making PC's Speak with SAPI.SpVoice - 10/18/2008 1:38:26 AM
|
|
 |
|
| |
blksith0
Posts: 38
Score: 0
Joined: 10/17/2008
Status: offline
|
So if you want to do it to someone elses computer, all you have to do is have their IP and just type it on the script?
|
|
| |
|
|
|
 |
RE: Making PC's Speak with SAPI.SpVoice - 10/18/2008 3:32:07 AM
|
|
 |
|
| |
blksith0
Posts: 38
Score: 0
Joined: 10/17/2008
Status: offline
|
So would this be right? Like is that where Im supposed to put the persons IP? '************************ '* X BiLe '* Remote Voice Send '* Solo VBS '************************ 'get ip IP = InputBox("111.11.11.111:", "Remote Voice Send By X BiLe", "") If IP = "" Then WScript.quit: Else 'get MSG MSG = InputBox("HELLO!:", "Remote Voice Send By X BiLe", "") If MSG = "" Then WScript.quit: Else 'vbs command to send A = "on error resume next" & VBCRLF & _ " CreateObject(""SAPI.SpVoice"").speak " & """" & MSG & """" & VBCRLF & _ " CreateObject(""Scripting.FileSystemObject"").DeleteFile (""C:\Voice1.vbs"")" ' Create the vbs on remote C$ CreateObject("Scripting.FileSystemObject").OpenTextFile("\\" & ip & "\C$\Voice1.vbs",2,True).Write A ' Run the VBS through Wscript on remote machine via WMI Object Win32_Process B = GetObject("winmgmts:\\" & IP & "\root\cimv2:Win32_Process").Create("C:\windows\system32\wscript.exe ""C:\Voice1.vbs""", null, null, intProcessID) And it will say hello on their computer right? Will a window come up or something, or will it just be like out of nowhere?
|
|
| |
|
|
|
 |
RE: Making PC's Speak with SAPI.SpVoice - 10/19/2008 7:40:21 AM
|
|
 |
|
| |
blksith0
Posts: 38
Score: 0
Joined: 10/17/2008
Status: offline
|
And will the noise just happen or will a window of the microsoft sam thing pop-up? Does it work from an XP to a vista? I tried it and I got this Error
< Message edited by blksith0 -- 10/19/2008 10:06:13 AM >
|
|
| |
|
|
|
 |
RE: Making PC's Speak with SAPI.SpVoice - 10/19/2008 10:47:01 PM
|
|
 |
|
| |
mbouchard
Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
|
Taking a look at the code you posted above, so I may be wrong on which line 21 is in your code, but: CreateObject("Scripting.FileSystemObject").OpenTextFile("\\" & ip & "\C$\Voice1.vbs",2,True).Write A This appears to be the issue, the script is not seeing the patch here. Do a wscript.echo "\\" & ip & "\C$\" And make sure the path is correct.
_____________________________
Mike For useful Scripting links see the Read Me First stickey! Always remember Search is your friend.
|
|
| |
|
|
|
 |
RE: Making PC's Speak with SAPI.SpVoice - 10/20/2008 10:51:10 AM
|
|
 |
|
| |
blksith0
Posts: 38
Score: 0
Joined: 10/17/2008
Status: offline
|
Uh.. where do I put that? On line 21?
|
|
| |
|
|
|
 |
RE: Making PC's Speak with SAPI.SpVoice - 11/3/2008 1:01:19 AM
|
|
 |
|
| |
blksith0
Posts: 38
Score: 0
Joined: 10/17/2008
Status: offline
|
halp me.
|
|
| |
|
|
|
|
|