Showing posts with label script. Show all posts

Convert text to speech in XP without any software



Ever wonder you can convert text into speech in XP without using any 3rd party software .. !!

Try this little trick now ..

+ Open a new notepad file and copy the following code :

Dim msg, sapi
msg=InputBox("Enter your text","Talk it")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak msg
'+-> genuinetechmarks.blogspot.com <-+

+ Now save this file with any name with .vbs extension.

+ This creates a VBscript file. When you open this file, it prompts for text. Enter your text and click OK .Now you can hear it .. Enjoy .. !!

Want to share something ... !! Share it in the comments ..

Change the icon of removable disk..

The removable disk has a default look.This default look of the removable drives can be changed by a simple trick.Follow the steps to change the icon ..


+ Select your favourite picture which u want to set for the icon of removable disk.

+ Save the selected image as anyname.ico (How to do is open the picture in mspaint. and save as anyname.ico).Make sure that selected image is small.
(OR) You can download any icon and name it.


+ Open note pad and copy the following code.

[autorun]
Label=DILLU
Icon=genelia.ico

+ Here label indicates the name of ur removable disk and icon indiactes the name of your icon.

+ Now save is notepad file as autorun.inf.

+ Copy both files (autorun.inf and Icon file) to your removable drive. You can make both files as hidden.

Now unplug the drive and connect it back to USB and now you can see the icon of your removable disk.Thats it!!

NOTE : The name of the icon you created and the name in the 3rd line of code must be same.

You can also set the background picture for your removable disk.This trick is explained in my previous article "Set background picture for any drive in windows".

Share your experiences in the comments ...

XP hacks - Click here to see all the xp hacks

Open or close cd/dvd drive with a single click in xp

The CD/DVD drive in windows can be ejected or closed with a single click in Windows XP by performing a simple trick.

To open the cd/dvd drive.. follow the steps :

+ Open notepad and copy the following code in it :

Set oWMP = createObject("WMPlayer.OCX.7" )
Set colCDROMs = oWMP.cdromCollection
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next ' cdrom
End If

+ Now save this file as anyname.vbs

+ When you click it, the disk drive will be opened.


To close the cd/dvd drive .. follow the steps :

Set oWMP = createObject("WMPlayer.OCX.7" )
Set colCDROMs = oWMP.cdromCollection
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
colCDROMs.Item(i).Eject
Next ' cdrom
End If

+ Now save this file as anyname.vbs

+ When you click it,the disk drive will be closed.

Share your experiences in comments after performing this cool hack.

XP hacks - Click here to see all the XP hacks

Set background picture for any drive in windows without any software


Generally, many of us use third party softwares to set background picture for any drive.But this can be done with a simple code without using any software in windows.


Perform the following steps ..

+ Open notepad and copy the following code :

[{BE098140-A513-11D0-A3A4-00C04FD706EC}]
iconarea_image=D:\Wallpapers\celeb\Genelia.jpg
iconarea_text=0x00FFFFFF


+ Here, the path in the 2nd line of code represents the path of your picture.The 3rd line indicates teh color ofthe text in the selected location.Complete list of html code colors can be obtained here.

+ Now save this file as DESKTOP.INI in the location(any drive or any folder) where you desire to set the background picture.

+ After setting it in your favourite location,close the drive and open the location again.

DONE !! .. your picture has been set as background picture for your desired location.

NOTE : Make sure that the extension in the path should be .jpg only and file should be saved as DESKTOP.INI only.

(OR SIMPLY)

+ Open notepad and copy the following code :

[{BE098140-A513-11D0-A3A4-00C04FD706EC}]
iconarea_image=Genelia.jpg
iconarea_text=0x00FFFFFF

+ Here, the 2nd line in the code represents the name of your picture.

+ Now save this file as DESKTOP.INI in the location(any drive or any folder) where you desire to set the background picture.And copy the picture too in the same location.You are DONE !!

Frnds ... SHARE your experiences in comments after performing this cool trick.Enjoy !!