Wednesday, 18 May 2011

Opening A Set Of Multiple Programs From A Single Click

If you are a web designer, graphics designer, desktop publisher or even just a basic user of Windows you may have habit top open some specific programs. For example, a web designer will have Adobe Fireworks, Adobe Dreamweaver, Notepad and browsers always opened. He may want this entire file in front of his eyes without need to double click each of the file. Or you may be a graphic designer who wants Photoshop, Illustrator always opened. Or you may be just a basic windows user who surfs net and listen to music and you may want Windows media player and browser opened together without any hassle.
In this tutorial I will teach you how to accomplish multiple file execution from just a single click. This might be just a useless tip for them who might have other method or already knows how to do this. If you don’t know how to do this then read on. If you know, even then read this post and comment for better upgrade.
As we used batch scripting before to accomplish several easy task and tweaks to windows, we’ll again be using batch scripting here. If you don’t know what batch scripting is then search in our blog at the right sidebar for batch scripting and learn basics of it.
OK now let me guide you how to do this.
In this tutorial I will assume that you are a basic web user who listens to music while surfing. You’ll basically open all programs you need on hand. For example, you may want Google Chrome, Microsoft word and Windows Media Player always opened.
After you list the necessary programs, we must know where the programs are installed.
You can do this by right-clicking on the shortcut icon and click on properties. In target field you’ll find the location of the program file.

In the above case, the installed location of Google chrome is, C:\Programs\Chrome\Application\chrome.exe

Copy the location of each program in similar ways.
Now open Notepad (Start>Run>type notepad).
In Notepad screen type following information:
Start "" "C:\Programs\Chrome\Application\chrome.exe"
Note: Don’t copy and paste it since it is for demo only.
Do same for all programs.
Note: refer to above syntax again.
When your path is enclosed in quotes, START interprets it as the title for the window. Adding the “” makes it see your path as the program to run.
Now save it as “browsing.bat”(with quotes).

Change the icon if you want.
Double click on the browsing.bat, it will open all the programs that you’ve specified inside it.
You can create similar set of programs to open from single click and have it at desktop.

Hope this tutorial was helpful.

Disable USB Storage Devices In Your Desktop And Get Secured

Have your personal information ever been copied or pirated? It might be your years of project or your secret video; you’ll obviously feel not well when you know that it has been copied by someone by accessing your computer. Most of the files are copied to removable storage media like USB drives.

Today in this tutorial, I am going to show you how you can make USB storage devices totally useless without your permission.
You won’t need any special utility or software, just a tweak in Registry editor is enough to enable or disable the USB drive.
To block all the storage device in your Windows, run registry editor by typing regedit in RUN command.
In the registry editor, at left side navigation pane, navigate to following location:
HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services > USBSTOR
Now at the right side double click on Start.

To block USB storage Medias, change the value data to 4.

If you want to unblock USB storage Medias just navigate to the same location and change th value data to 3.

If you don’t want to bother tweaking registry then I’ve made a simple program to Block and Unblock USB device.
You can download it from here.
USB BLOCKER- HacksPC
USB UNBLOCKER- HacksPC
Download both of them and open it to toggle between Block and Unblock USB storage media.
You can hide it in desktop or anywhere favorable to you.
Next time I’ll be posting a tutorial about disabling copy and paste. So, don’t forget to bookmark us.
Hope this tutorial was helpful.

Create A Dynamic Digital Clock Using JavaScript And Images

We’ve already published similar article before about creating JavaScript Date header for blog and websites. This tutorial is especially for web developers who are just learning web developing technology. In this tutorial, I am teaching you how to set up a dynamic clock in your website or blog by using a JavaScript with image digits.
Though it is not necessary to include current local time in your website, it might be pretty attracting and mesmerizing.
Now lets begin with the tutorial.
First of all we’ll be creating images of numbers “0-9” colon “:” and “AM/PM”. You can create the separate images in any image editing software or you can download the bundle of images directly from here.
Now all the images needed for a digital clock is ready. Next, we’ll be assigning each image for each digits and colons. For instance, refer to the following example:
dgt1 = new Image;
dgt1.src = “dgt1.gif”;
In above sample, we defined that dgt1 will have the new image in the first line. Now, since dgt1 carries an image with it, in second line we again defined the location of source of image that dgt1 will be holding. We’ll be doing this to all of them.
dgt1 = new Image;
dgt1.src = “dgt1.gif”;
dgt2 = new Image;
dgt2.src = “dgt2.gif”;
dgt3 = new Image;
dgt3.src = “dgt3.gif”;
dgt4 = new Image;
dgt4.src = “dgt4.gif”;
dgt5 = new Image;
dgt5.src = “dgt5.gif”;
dgt6 = new Image;
dgt6.src = “dgt6.gif”;
dgt7 = new Image;
dgt7.src = “dgt7.gif”;
dgt8 = new Image;
dgt8.src = “dgt8.gif”;
dgt9 = new Image;
dgt9.src = “dgt9.gif”;
dgt0 = new Image;
dgt0.src = “dgt0.gif”;
dgtam = new Image;
dgtam.src = “dgtam.gif”;
dgtpm = new Image;
dgtpm.src = “dgtpm.gif”;
dgtcolon = new Image;
dgtcolon.src = “dgtcolon.gif”;
dgtblank = new Image;
dgtblank.src = “dgtblank.gif”;
Note: “dgt1” is just a naming and variable, you can replace it anything you want. However numbering is recommended, for example, num1, digit1, symbol1, etc.
Now we’ve assigned images to each of the values in digital clock.
Next, we’ll be creating a function that does the main work of a digital clock.
Let’s name the new function as UpdateClock. And set the needed variables to get the digital values from clock.
function UpdateClock(){
var time= new Date();
hours = time.getHours();
mins = time.getMinutes();
if (!document.images) return;
dgt = mins % 10;
document.images.minsones.src=eval(“dgt”+dgt+”.src”);
dgt = (mins – (mins % 10))/10;
document.images.minstens.src=eval(“dgt”+dgt+”.src”);
if (hours > 12)
document.images.ampm.src=dgtpm.src;
else
document.images.ampm.src=dgtam.src;
if (hours > 12) hours = hours – 12;
dgt = hours % 10;
document.images.hoursones.src=eval(“dgt”+dgt+”.src”);
dgt = (hours – (hours % 10))/10;
document.images.hourstens.src=eval(“dgt”+dgt+”.src”);
document.images.colon.src=dgtcolon.src;
setTimeout(“UpdateClock()”,30000);
}
The script part highlighted in red will determine to replace AM with PM or PM with AM. If the time hour value is greater than 12 then it will load image with PM written in it, else it will return AM image.
This JavaScript function actually shows you the digital clock with 24 hours time format. But we’ve AM/PM image which means that we’ll be showing clock in 12 hours format. Since we’ll need only 12 hours we’ll be substracting each of the value greater than 12 from 12.
Now, if it is 13 hour it will return 13-12 = 1. This is defined in code in orange color. And rest of the codes are used for setting up clock.
And at the end of the code, we’ll be calling the function:
UpdateClock();
Now we’ve created the backend of a digital clock. You’ll have to arrange all the codes above in similar format below:
<SCRIPT>
if (document.images) {
dgt1 = new Image;
dgt1.src = “dgt1.gif”;
dgt2 = new Image;
dgt2.src = “dgt2.gif”;
dgt3 = new Image;
dgt3.src = “dgt3.gif”;
dgt4 = new Image;
dgt4.src = “dgt4.gif”;
dgt5 = new Image;
dgt5.src = “dgt5.gif”;
dgt6 = new Image;
dgt6.src = “dgt6.gif”;
dgt7 = new Image;
dgt7.src = “dgt7.gif”;
dgt8 = new Image;
dgt8.src = “dgt8.gif”;
dgt9 = new Image;
dgt9.src = “dgt9.gif”;
dgt0 = new Image;
dgt0.src = “dgt0.gif”;
dgtam = new Image;
dgtam.src = “dgtam.gif”;
dgtpm = new Image;
dgtpm.src = “dgtpm.gif”;
dgtcolon = new Image;
dgtcolon.src = “dgtcolon.gif”;
dgtblank = new Image;
dgtblank.src = “dgtblank.gif”;
}
function UpdateClock(){
var time= new Date();
hours = time.getHours();
mins = time.getMinutes();
if (!document.images) return;
dgt = mins % 10;
document.images.minsones.src=eval(“dgt”+dgt+”.src”);
dgt = (mins – (mins % 10))/10;
document.images.minstens.src=eval(“dgt”+dgt+”.src”);
if (hours > 12)
document.images.ampm.src=dgtpm.src;
else
document.images.ampm.src=dgtam.src;
if (hours > 12) hours = hours – 12;
dgt = hours % 10;
document.images.hoursones.src=eval(“dgt”+dgt+”.src”);
dgt = (hours – (hours % 10))/10;
document.images.hourstens.src=eval(“dgt”+dgt+”.src”);
document.images.colon.src=dgtcolon.src;
setTimeout(“UpdateClock()”,30000);
}
UpdateClock();
</SCRIPT>
The above codes goes inside the <head> tag of your html template.
Again we’ll need to arrange the placement of the images. Following code will do it.
<IMG SRC=”dgtblank.gif” border=0 name=”hourstens”>
<IMG SRC=”dgtblank.gif” border=0 name=”hoursones”>
<IMG SRC=”dgtblank.gif” border=0 name=”hoursones”>
<IMG SRC=”dgtblank.gif” border=0 name=”minstens”>
<IMG SRC=”dgtblank.gif” border=0 name=”minsones”>
<IMG SRC=”dgtblank.gif” border=0 name=”ampm”>
Orange colored HTML code will place two image sources for hour format in ones and tens numbers.
The brown colored code will place one colon image in it.
The green colored will have ones and tens minute.
The red colored will define AM/PM.
Copy the above code wherever you want inside the <body> of your webpage or blog.
Upload all the images that you’ve created or downloaded to the root directory of your webpage.
If you are having a digital clock in index.html then put the images where index.html is located.
If everything went well, you’ll have a working digital clock.

If you still have a problem, refer to following illustrations on placement of JavaScript and HTML code.

Hope this was helpful.

Disable Cut, Copy and Paste in Windows

How often do you leave your PC unattended? How many people can access our workstation or home PC? And what do you keep in your hard disk? If you leave your PC unattended and anyone or few can access your home/work PC then your data and information is in risk. One can easily copy your documents and files.
You may have secured your PC by setting password. But you won’t be putting password in screensaver mode, will you?
In this tutorial I am going to show you how you can prevent your files from being copied illegally to any storage media or even inside one folder location to another location of same hard drive.
Before we begin with the tutorial, download this free utility which will be playing main role in this tutorial.
The downloaded file is a zip file; you’ll need to extract it.
After extraction install the program. Remember the location of the installation folder. It is usually in %systemroot%/Program Files/Prevent . The installer only extracts the file and while running toggles the registry values.
Go to the location where Prevent utility is installed. And open Prevent.exe.

Click on Define HotKey Field and press the shortcut keys you want to disable the copy and paste.
I clicked on the text input area of Define HotKey and pressed CTRL+ Shift + Q simultaneously.
Now Click on Activate button. After pressing Activate button, it will save the HotKey you defined with following screen:

As soon as you press activate button it will disable the copy paste feature of windows.
Now to disable it you’ll need to press the defined HotKey.
When you press the Hotkey in any part of the Windows it will enable copy/paste again with following screen:

Now go to the folder location where you’ve installed Prevent utility.

Right click on Prevent.exe, go to send to menu and create desktop shortcut.
This will create shortcut to desktop.

You may rename it whatever you want.
Now you can open Prevent utility from shortcut and always activate it if you’ve disabled it once.
This utility not only allows you to disable cut, copy and paste but also Delete, Copy To, Move To, Sent To, Renaming, Task manager’s End Process button.

Task manager before activating Prevent utility.

Task manager after activating Prevent utility.
Hope this was helpful tutorial

You also can be a Master of Yahoo Chat room....

                                                        Hay Guys,
                   Now you can also be the Master of yahoo chat room. You only need to Download the software which will help you to be a superior to other yahoo chat room fellows.
Click hear and start your Downloading........ and be a Master.. 
                                
               

Monday, 16 May 2011

Opening Two Or Multiple Pages From One Hyperlink

Once in ever you may think that is it possible to open one or more pages from just a single click? And if you have only basic knowledge on HTML and web programming you may get confused right here. Opening more than multiple pages from just a single click might be very useful especially when you want to show two different information pages about a link.
We can get a hyperlink to open more than two pages via several methods. One of them might be creating a link to a page that will open a pop-up window from it. But this may not sound practical as most of the browser have pop-up blocker enabled in it. Using pop-up cannot be good idea to open multiple pages.
Another best method can be using iframes. Iframes enables us to add two or more different pages to a single page. We can create a single page with two iframes in it and hence can add two different pages in it. Again, this idea becomes flop because; the iframes are not commonly used. Plus, it adds confusion to the visitor because of multiple information in a single page.
If you have been trying to open two pages using hyperlink and searching around the web but unable to find then you are here at right place.
I am going to teach you how you can accomplish this by just a single careful and tricky step.
We all know JavaScript, it can do lots of magic that html cannot do. If you are déjà vu at JavaScripting then you I hope you started getting hint.
Yes, we’ll be using OnClick method and window.open() function.
The default code to open a link from html is:
Onclick=”window.open(‘http://www.google.com’)”
The above code is a JavaScript code that will open Google HomePage. This is a basic code for hyperlinking using javascript.
Now let’s see at the HTML version of hyperlinking:
<a href=”http://www.google.com”>Page link</a>
We all know what that does.
Now when we add onclick parameter to the above HTML hyperlink then we can do any JavaScript magic we want.
See the example below to know what I mean exactly.
<a href=”http://www.example.com” onclick=”window.open(‘http://www.google.com’);”>Page link </a>
In above code, we added onclick parameter to <a> tag. This will enable Page link to carry multiple function. One is default HTML hyperlinking function and another is any javascript function. OnClick is event loader, i.e. when any part of the object between this tag, <a>, is clicked new event will be loaded which will be predefined.
In simple terms, it will load two different links.
Try the above code and play with it.
Not only can two you open unlimited number of different pages just by single click by applying this javascript tweak.
<a href=”#link1″ onclick=”window.open(‘#link2′); window.open(‘#link3′)”>Page link </a>
You can open multipage using the above pattern.
Hope this tutorial was helpful.

Save The Current Windows Session And Restore Them Later

Have you ever needed to restart your Windows, but you may not want to lose the open windows and current situation of your desktop. Hibernation also loads the windows session but it does not actually restart your PC actually. If you really need a cold boot then you’ll obviously lose the current situation. You might have wished that you could save the current session of Windows as you can do in browsers like Opera and Firefox. You’ll never notice it’s need until you have lots of windows open and working in all of the windows at once.
Well if you are worrying about this then no more worries. I am here with a step by step tutorial to guide you through every step you need to save the current session of your desktop for later restoration.
You’ll need Cache My work which can be downloaded from here.
After the page is loaded click on green download button as illustrated in image below:

After you downloaded the program, install and open it.
Using this tool is very simple and easy. Just check on the boxes favorable to you and click on save.

Next, go to Tools > Option. In new option window check on Restore Previous explorer windows at next logon.

Now you may close the window.
Now onwards, it will start to cache your windows when system is being booted and reload the cache in next system start.
Just like hibernate, it stores the current cache of windows to seprate location of your hard drive. Since catching needs writing hard drive, you’ll feel that your system is being slow while shutting down and loading up. This is not a big deal as it takes time to read and write data to and from hard drive.
Using this technique will possibly save a lot of time. This also enables you to get familiar with the environment you were in the screen before windows restart.
Hope this tutorial was helpful.