Members Login.
 

Please register HERE to be part of our Community
Contest of the Day.
 
Current Promotions.
 
Earn By Posting
 
Participate in forum and Earn $$$.
  • Referrer Credit - BRL$ 100
  • Positive Rep Cr. - BRL$ 3
  • New Thread Cr.- BRL$ 3
  • Posting Cr. - BRL$ 2
  • Post size Credit
Full List of BRL$ Earnings
Sponsors.
 


Programming Anything related to coding, programming c, c++, vc++, c#, java, delphi, Visual Basic

Reply
  #1 (permalink)  
Old 04-17-2008
Jr. Member
 
Join Date: Apr 2008
Posts: 192
BRL$: -282.22
Rep Power: 25
rscracker is on a distinguished road
Default VBscript fun!

Heres a few .vbs scripts i found. All you have to do it copy and paste the code into notepad and save it as "any name".vbs
where "any name" is put whatever you want to save it as, just make sure it has .vbs on the end

Disco on your keyboard

Set wshShell =wscript.CreateObject("WScript.Shell")
do
wscript.sleep 100
wshshell.sendkeys "{CAPSLOCK}"
wshshell.sendkeys "{NUMLOCK}"
wshshell.sendkeys "{SCROLLLOCK}"
loop


to end the script press CRTL+ALT+DEL go to the processes tab and end wscript

Make the computer talk

strText = "your message here"

Set objVoice = CreateObject("SAPI.SpVoice")
objVoice.Speak strText


Where the text "your message here" is type what you want the computer to say. This process ends by itself

Make the computer go "ding" then popup a messege

Set objVoice = CreateObject("SAPI.SpVoice")
Set objFile = CreateObject("SAPI.SpFileStream.1")

objFile.Open "c:\Windows\Media\Ding.wav"
objVoice.Speakstream objFile
Wscript.Echo "your message here"


where the "c:\windows\Media\Ding.wav" put what sound file you want to be played. I think it only likes .wav i havent tryed out .wma or .mp3 yet. Also where it says "your message here" is the message that gets dispalyed after the sound

Make the Microsoft Office assistant popup and say something

On Error Resume Next

strAgentName2 = "MERLIN"
strAgentPath2 = "C:\Windows\Msagent\Chars\" & strAgentName2 & ".acs"
Set objAgent2 = CreateObject("Agent.Control.2")

objAgent2.Connected = TRUE
objAgent2.Characters.Load strAgentName2, strAgentPath2
Set objPeter = objAgent2.Characters.Character(strAgentName2)

objPeter.MoveTo 700,300
objPeter.Show

objPeter.Play "GetAttention"
objPeter.Play "GetAttentionReturn"

objPeter.Speak("your message here")

Wscript.Sleep 1000

Set objAction= objPeter.Hide

Do While objPeter.Visible = True
Wscript.Sleep 250
Loop


This script ends by itself. where it says "your message here" type what you want it to say.

Error message

lol = msgbox("your message here")


where it say your message here type what the error message should say

Have fun


Current Promotions... Post a New Thread anywhere on Search Engine Optimization Board and earn BRL$ 5 for every thread.
Important - Read before posting Please carefully read the Global Rules and Posting Rules for GPT / Buy - Sell Offers / Link Exchange sections before posting.

Last edited by rscracker; 04-27-2008 at 08:39 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008
New Foot Prints
 
Join Date: Apr 2008
Posts: 14
BRL$: 154.95
Rep Power: 0
fightscam is on a distinguished road
Default Re: VBscript fun!

lol I tried doing all of them, but non worked with me. Have I got to install something? Coz when I loaded the script, it gave me some compilation error.


Current Promotions... Post a New Thread anywhere on Search Engine Optimization Board and earn BRL$ 5 for every thread.
Important - Read before posting Please carefully read the Global Rules and Posting Rules for GPT / Buy - Sell Offers / Link Exchange sections before posting.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-17-2008
Jr. Member
 
Join Date: Apr 2008
Posts: 192
BRL$: -282.22
Rep Power: 25
rscracker is on a distinguished road
Default Re: VBscript fun!

let take example here:

Make the computer talk

strText = "your message here"

Set objVoice = CreateObject("SAPI.SpVoice")
objVoice.Speak strText

for that you need one command button.. double clik it..
and put the code to it.. here the full code

Private Sub Command1_Click()


strText = "your message here"

Set objVoice = CreateObject("SAPI.SpVoice")
objVoice.Speak strText

End Sub

"your message here" that mean you can change it to whatever you want..
and more important, what vb u use.. 6.0?


Current Promotions... Post a New Thread anywhere on Search Engine Optimization Board and earn BRL$ 5 for every thread.
Important - Read before posting Please carefully read the Global Rules and Posting Rules for GPT / Buy - Sell Offers / Link Exchange sections before posting.

Last edited by rscracker; 04-27-2008 at 08:42 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-17-2008
Moderator
 
Join Date: Apr 2008
Posts: 734
BRL$: 160.13
Rep Power: 79
sysax is on a distinguished roadsysax is on a distinguished roadsysax is on a distinguished roadsysax is on a distinguished road
Default Re: VBscript fun!

Thanks, but I already know these =D
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.





Current Promotions... Post a New Thread anywhere on Search Engine Optimization Board and earn BRL$ 5 for every thread.
Important - Read before posting Please carefully read the Global Rules and Posting Rules for GPT / Buy - Sell Offers / Link Exchange sections before posting.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-17-2008
Jr. Member
 
Join Date: Apr 2008
Posts: 192
BRL$: -282.22
Rep Power: 25
rscracker is on a distinguished road
Default Re: VBscript fun!

Quote:
Originally Posted by sysax View Post
Thanks, but I already know these =D
ya.. i know.. .. this for noob only :P


Current Promotions... Post a New Thread anywhere on Search Engine Optimization Board and earn BRL$ 5 for every thread.
Important - Read before posting Please carefully read the Global Rules and Posting Rules for GPT / Buy - Sell Offers / Link Exchange sections before posting.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-17-2008
New Foot Prints
 
Join Date: Apr 2008
Posts: 1
BRL$: 42.01
Rep Power: 0
hacker is on a distinguished road
Default Re: VBscript fun!

wow.. that a lot nice.. thnk rscracker


Current Promotions... Post a New Thread anywhere on Search Engine Optimization Board and earn BRL$ 5 for every thread.
Important - Read before posting Please carefully read the Global Rules and Posting Rules for GPT / Buy - Sell Offers / Link Exchange sections before posting.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-27-2008
Jr. Member
 
Join Date: Apr 2008
Posts: 100
BRL$: 250.09
Rep Power: 16
webvigor is on a distinguished road
Default Re: VBscript fun!

That is the fun and it make me fresh. i am wondering how simple it is to get your computer responsive.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


Current Promotions... Post a New Thread anywhere on Search Engine Optimization Board and earn BRL$ 5 for every thread.
Important - Read before posting Please carefully read the Global Rules and Posting Rules for GPT / Buy - Sell Offers / Link Exchange sections before posting.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft VBScript runtime error '800a01b6' mr_atom Buy / Sell Advertisements Board 0 06-07-2007 05:57 AM


 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95