Showing posts with label tip/tricks. Show all posts
Showing posts with label tip/tricks. Show all posts

AHK: Autosave Screenshots from PrintScreen

If you use Windows 8, then read my post on how to automatically save into file by using Win+PrintScreen. But many many don't always have Windows 8 running on their computers yet. That doesn't mean you should be deprived of that luxury.

What are we talking about?
You hit PrintScreen, then open MSPaint, then Ctrl+V, then Save, find folder to save, enter file name, click Save, then Close MSPaint.
What if you had to do this 100 times a day?

That's why I have created this AHK script to make that job just as easy as hitting PrintScreen.

I've created 2 scripts, each uses Ctrl+PrintScreen or Win+PrintScreen.
Once you have installed the scripts, when you press Ctrl+PrintScreen or Win+PrintScreen your full screen will be copied to MSPaint and then saved in Pictures\Screenshots folder with a unique timestamp file name.

Magic? Give it a try.

Here is the code for Ctrl+PrintScreen.
You can edit the folder to save, file name format, or even Hotkey to anything you wish. See my other AHK posts to help you do that.

^PrintScreen::
SaveClip := ClipBoardAll
FileNameAndPath := "%UserProfile%\Pictures\Screenshots\screenshot_" . a_now . ".jpg"

Send,{PrintScreen}
Run, mspaint
WinWaitActive, Paint
Sleep, 100
Send, ^v
Sleep, 100
Send, ^s
WinWaitActive, Save As
Clipboard = %FileNameAndPath%
Send, ^v
Sleep, 100
Send, {Enter}
Sleep, 100
Send, {AltDown}f{AltUp}xn
Clipboard =
Return

If you need help, sure leave comments.

You know what to do once you have the script:

Below are the links to download stand alone EXE files to auto-save. No codes to worry. Just double-click and you are good to go. I assure you there aren't any sneaky things hidden. Plain simple code made into executable for those who don't want to install AutoHotKey and deal with scripts. 

Control+PrintScreen - This is an EXE. 

Windows+PrintScreen - This is an EXE. 

Note: Install only one of the PrintScreen scripts. Installing multiple scripts might not be a good idea.  Also Win+PrintScreen might not work right if you are running Windows 8 and the key combination is already used by the OS to actually perform the same function as the code. 

Note: You will have to create destination folder before executing the script. 

If you have trouble downloading or customizing the script, leave a message in the comments.
Hope this helps you, especially if your job involves a lot of documenting of screenshots.










Windows 8: Autosave screenshots from Print Screen directly into folder

Are you one of those people who use PrintScreen button a lot. The you might also probably be doing the rest of the steps as well.

 - Open Paint (or any other image editor)
 - Ctrl+V (or Paste)
 - Ctrl+S (or Save)

That's a lot of steps for one simple need to save a screen.

Now in Windows 8, its all so easier. This is what you have to do. Instead of pressing "PrntSc" key on your keyboard, use this. Win+PrintScreen. That's it. This screen is now saved in Pictures\Screenshots folder.

Pretty easy, and no effort.

Remember, Win+PrintScreen.

How to enable the Missing Hibernate Option in Windows 8

Windows 8 is a very interesting OS. I have my new laptop running Win8 and I also love the touch screen sometimes. Anyways this isn't a review for Win8. Win 8 has been around for a while now and is not going away soon. So we just have to learn to let it into our lives and live with it.

Hibernate option has almost always been a problem with Windows. It's missing sometimes, sometimes it disappears.

Here are a few older posts to resole Hibernate issues:


Now back, if you have Windows 8, your shutdown option might look something like this.

No Hibernate. So this is what you do now.
Navigate to the Power Options in your windows.

Click on "Change settings that are currently unavailable".
More options show up, just scroll down.


There it is. Check ON the Hibernate option and Save Changes.
Now go back to your power options, and there it is. You lovely Hibernate sitting right where you want.

Now you can also change the setting for what your lid does when shut, I use Hibernate for that, as I can resume my work faster then rebooting my whole system .













Hope this will help you Hibernate your new Windows 8 laptop. 

Add Recurring Events from Google Calendar Quick Add

I am a pretty heavy user of Google Calendar, and it's one of the things that keep my life organized. So anything to make my tasks even easier is always welcome.

Like the time when I discovered that I could add recurring events from the Quick Add feature in Google Calendar, it was a "eureka" moment.

It's very easy to do it, with having to just remember a few formats while entering in the Quick Add. Here's a simple picture to help you remember it.


Enter the Event Name.

For Location, use "at" and not "in".
Example: "at the Gym" and not "in the Gym"

Here's the list with examples including recurring format.

For a Weekly Event:
Enter [Meeting at work every Monday at 2pm]
Enter [Tennis practice Tuesday 7pm to 9pm weekly]

For a Monthly Event:
Enter [Dinner at Mom's on the first Tuesday of every month]
Enter [Manicure on 9/1 every month]

For an Annual Event:
Enter [Mom's birthday June 19 yearly]
Enter [Wedding anniversary July 3 yearly]

For an Event recurring a certain number of times:
Enter [Baseball Game every Thursday for 10 weeks]
Enter [Language Class every Wednesday 7-8pm for 5 months]
Enter [Gardening Monday at 10 am repeats weekly for 8 weeks]

Use these tips to make adding recurring events in your Google Calendar a breeze.  

Insert New Line Break in Excel Cell Formula

It's pretty easy to insert a new line break when you are entering text into Excel cells. Use Alt+Enter when typing, and it will take you to a new line.

But this won't work when you are entering formula into a cell. But it's not hard to insert a new line break.

For this we are going to use CHAR( ) feature. Using CHAR( ) will replace the text with the ANSI character.

For example:
Using CHAR(65) will replace it with "A",
CHAR(66) with "B" and so on.
For a new line break, it is CHAR(10).

Follow the below examples to see how you can use CHAR(10) to insert a new line break into formula.


There's one thing you need to remember though. Set the cell you are working on to Wrap Text.
You will find that option with Format Cell, or a small button on your tool bar.


Hope this helps.

Crop Cell Contents in Excel

If you are an avid user of excel or use Excel extensively at your work or school, then its good to know the formula built into excel to make your task easier.

For example, if you had a big list of "something" and you need to make a list of it of the first 5 characters, or maybe last 10 characters. Hmmm.

Don't think more, excel has an inbuilt crop function to do that. Use "LEFT" function to retain characters starting from left side of the text, and use "RIGHT" function to retain characters starting from the right end of the text. This below figure should help you understand better.


Its pretty easy right. Now go crop your text data. 

Okay, so what if you wanted to retain all the text from left but the last 3 characters? Don't worry, here is the formula for that. 


Hope this helps!

Same width for all Blogger images

If you are a blogger, you'd definitely take efforts for you blog to make look nicer. I've been looking for various ways for formatting my images on my blog and honestly until now I've been doing them manually for each image. So every time I change the width of the blog or change the template, the images all go may-hem and looks ugly.

On one of my recent "hunts" for formatting blog images, I found this code. And what this does is format all the images to a fixed width. The height automatically adjusts, so yay! 

Print file list from Command Window


Let's say you need a list of all the files in a folder. What would you do? A few files, may be you would note them down yourself manually. But what if you had 100 files, or even 1000?

So here's the tip. This also lists the files in an alphabetical order. Cherry on top?!

  1. See my other post on how to open a command window in the folder
  2. Now type the this without the quotes "dir /b /on >print.txt". Mind the forward slash and spaces. 
  3. Now go to your folder, you will see a text file names "print.txt". 
  4. Open it and it has a list of all the files in the folder, arranged neatly alphabetically. 


Hope this helps you make your list of files next time.

Open Command Window in Destination Directory

Hapy New Year!

It's been a while I've blogged about anything, been very busy lately. But now with the new year just starting, it's now a resolution to blog more often, let's see how well I can keep that one up.

Anyways, this is a very simple post but with a useful tip, if you use Command window very often.

Most common way is to type "cmd" in the Start menu, and hit Enter. For the older versions of Windows, you had to click on "Run", and then do the same.

Now if you had to navigate to a folder in the command window, you had to know where the folder is, then remember the path, then you have to type the lengthy path after the "cd" command. You know the drill. Painful, huh?

So here's the tip.

  1. Navigate to the (parent) folder in Windows Explorer where you want to open the Command window.
  2. Now Shift+Right-click on the folder where you want to be (in the command window). 
  3. You will see the option "Open Command Window here".
  4. Click on the option, and voilà you have your command window already in the directory you want to be. 

Isn't this so much easier and efficient? 

How to Revoke Permissions from Google Account given to Other Websites

Most people I know have a Google account. The one thing which I personally like about Google account, is that you can sign in to many popular websites without having to register and create a new account. Over some time, like me, most people might end up signing in with Google to so many websites that they forget they had given permission to those websites. With today’s growing concern about sharing information online, one needs to regularly check and keep track of such permissions. So this post is about where you can find the permissions given and how to revoke them.

Salary Calculators

Have you been in that awkward position when you are talking to your potential future employer on phone and they ask “How much do you expect”? You say $x/hour and then they say, ok we’ll give you $xxx/year. Ok!!! Now unless you are really good in math you don’t know how much that is going to translate to a monthly salary or how much that might convert to an hourly pay. Instead of scrambling for a calculator , here is a good calculator which makes your task easier.

AHK Tutorial #6 – Convert AHK Script to Standalone EXE Program

You have installed AHK and created a few simple scripts now. You have also run the scripts and seen them work. You would now have understood to run the AHK scripts you must have the AHK software installed. Correct. But what about those laptops where AHK is not installed? and you still want to run the scripts. Don’t worry, AHK has a compiler which will compile your scripts into a Standalone EXE Program which can be run on any laptop or computer without installing AHK.

Dynamic Views not showing up on Blogger

Okay, Dynamic Views has been here for a while now. Some people like it, some people hate it, and there are others who want to try it for a while. And if you are one of those who want to try it, but don’t see the option for Dynamic Views on your Template Settings on you blog, it means that there is are two settings that you have to turn on.

  1. Your Blog has to be Public. Anybody must be able to read it without signing in.
    20120727124422
  2. Your Blog Feeds has to be set to Full. To set your blog feeds to be full, here’s what you have to do.
    • Go to Settings > Other
    • Select “Full” for Allow Blog Feed.
    • Now go back to your Templates, and you should be able to see your Dynamic Views.
      20120727123615

If this doesn’t work, let me know, we’ll try to get it to work.

Stop Kindle Fire from auto-changing wallpapers

Okay you’ve rooted your Kindle, added tons of new stuff. But you end up bowing to the default wallpapers of the KF every time you wake up your Kindle. Not good. You want to retain your wallpaper you set last time and don’t want your KF to change it when the screen goes off. Its easy to retain your settings.

You will need:

  • Rooted Kindle Fire. Learn how to root our Kindle Fire here.
  • Root Explorer App or any other explorer app like ES File Explorer or Astro File Manager etc. Any explorer which will let you mount your folder as a read/write will work.
  • If you have rooted using Kindle Fire Utility, then you would also probably have the Go Launcher EX now. Its not really necessary, but it will be good to have this so you can install Live Wallpapers. Yay!

This is what we are going to do.

  1. We are going to set up a wallpaper (not live wallpaper) and this wallpaper will stick on the apps background. After the change to the folder, this wallpaper cannot be changed. If you want to change it, you need to undo the permissions change we do, then change the wallpaper, and revert the folder permissions. But good news follows; You can set up live wallpaper for your KF Home and KF Lock screen. You can do this using the Go Launcher EX.
  2. Now here is what you actually need to do.
  3. Using Root Explorer navigate to this folder.
    data/data/com.android.settings/files



  4. Press and hold the wallpaper item.
  5. Select Permissions on the pop-up.
  6. Uncheck the boxes for Write.
    shot_000039
  7. Done.

For easier access, you can bookmark this folder or create a favorite for shortcut access.


Now set up your wallpaper for Home and Lock Screen, and they wont change until you change them. Have fun!


Disclaimer: I’m not responsible for anything that happens to any device after following my posts. They work for me, and that’s what I’m sharing.

Books not showing up after rooting Kindle Fire

You have rooted your Kindle Fire and installed the Google Play Store App. You are downloading a lot of apps and games. Now you are done. You want to get back to reading.

Wait! Where are my BOOKS!!!?

So this post is about the problems you might encounter with reading Books after you root your Kindle Fire. Rooting has its benefits and drawbacks, but they are not too serious, hopefully this post should help you.


Problem: When you click on Kindle app, the screen freezes.

This is not the way to open your books after rooting. You need to use the Launcher from the Kindle to access your books. You original Kindle Carousel Home opens. Click on Books and there you can read your books. To get out of the freeze screen, click on the settings icons and then click on anything. You can now go back to the Home.


Problem: Books are not there. There’re gone!!!

Don’t worry, no matter what, your purchased Kindle books are always going to stay on your Amazon account. But to make them show up correctly, you need to do a few things.

  1. Go to Google Play Store.
  2. Click on Menu >> My Apps
  3. Look for Kindle.
    shot_000033
  4. Click on Uninstall.
  5. UN-check Allow automatic updating.
  6. Go back to your Launcher and check your books.
  7. Make sure you don’t update app.If you find you books missing again, you know what is wrong.


Problem: Still books not showing up?

Check you Amazon account.

  1. Login to your Amazon account.
  2. Manage your Kindle >> Manage your devices.
  3. If you see unrecognized devices under your Android type, then De-Register them.
  4. Go back to the previous problem, and follow the same steps.
  5. Go to your Kindle account in Amazon, and deliver your books to your Kindle.
  6. You should probably have your books visible now.

Hopefully this should help you get your books back. If not let me know, we’ll figure out what’s gone wrong.

AutoCorrect Automatically Every Time You Type

Nobody’s perfect. Everyone’s got to admit it. We all make typos. That’s why we have Autocorrect. On MS Word, its easy. I’ve also written a post how to Autocorrect when you type your emails in Gmail.  But we are not always using applications which have Autocorrect built in them or where we can add them.

So what do we do? Learn to type correctly. Just kidding, that’s surely an option, but there’s an easier way. Auto Hot Key. Yes, you gotta love that tool. Now how in the world are we going to achieve that? Using an AutoCorrect AHK script. Don’t worry you don’t need to code anything. Everything’s ready to go.

You’ll find links to download the files later. But first the steps.

  1. You need to have AHK installed on your PC. This is how you can do it, you will also find the link to download AHK.
  2. You may also want to read How to create an AHK script and How to make an AHK script run every time Windows starts.
  3. Now download the file at the bottom of the post. You will use only one of them. I will explain it later.
  4. I suggest you keep a separate folder for all your AHK scripts. Extract them.
  5. Double-click on Autocorrect.ahk. If the file opens in the Windows Notification Area, then all’s good. But, if you get an error message like the one below, then run the other file – Autocorrect for AHK-L.ahk.
    20120625142955
  6. Done. Now anywhere you make a typing mistake and if it’s in this file, then it will correct it for you. Yay!

But wait, what if the mistake isn’t there in the file? Don’t worry. When you realize you have made a mistake, select that word, and press Win+H on your keyboard. You will get a dialog box like the one below.

20120625143416

See the example entry and enter the correct spelling on the right side, and click OK. There you go, you just added another word to the file, and one less word to spell correctly.

So here is download link.

AutoCorrect AHK Scripts in ZIP file.

You can now make as many spelling mistakes as you want. Happy typos!

How to create an AHK Script

For the newbies to AHK (that is Auto Hot Key), this is how you save or create an AHK script. If you don’t know what AHK is, it is a tool to make create scripts and customize your PC to make it run at your will. It is mainly used for automating certain actions you do on a very regular basis. See my short post on it.

  1. Open a notepad.
  2. Type or copy your AHK code/script.
  3. While saving use -  
    1. Use file name as any file name followed by extension ahk.
      E.g.: fileabc.ahk
    2. Save type as: All files
  4. Click Save.

You can use AHK files by double clicking on it to make them run. It is easier to make certain AHK scripts auto-run at startup, so that you don’t need to open them everytime you reboot your system. Learn here on how to make files auto-run at startup.

Make Programs Auto-run on Windows Startup

There are several ways to do it, for example create an autoexe.bat (still remember that), or using other 3rd party tools to set up the programs. But this post is going to be about a very simple way, and very easily done. This works in Windows OS.

  1. Go to Start.
  2. Select All Programs.
  3. Scroll to Startup.
  4. Right-Click on Startup and select Open.
  5. Startup will open as a window.
  6. Now go to the exe or the file you always want to run at windows startup.
  7. Right-Click and select Copy.
  8. Come back to the Startup folder.
  9. Right-click and Paste Shortcut.
  10. Done.

Now isn’t it easy?

I often use this method to make my AHK scripts load on Windows Start-up.

Change your Blogger theme in the New Blogger Layout

Finding the option to change your Blogger theme in the older Blogger Layout was easy to find. But in their new design, some people struggle at first. A few of my friends have even panicked that they removed the option to upload any xml theme and customize it. Don’t worry. Its just a little hard to find (at first).

Go to the Templates option on the left navigation.
9

Now the the top header, at the extreme right corner you will find the button to “Backup/Restore”. Click on it.
10

Now you will get a dialog for uploading the xml them or for backing-up your current theme. Choose your action.
11

There you go, now you can upload your custom xml theme just as before.

Root Kindle Fire 6.3 using Kindle Fire Utility

Okay I’m going to say the usual disclaimer stuff first. This post is about what I did to root my Kindle Fire (KF) and the problems I faced and how I solved them. I’m not responsible for any damage that happens to your Kindle Fire or any other device either by following the below steps or by downloading anything suggested here.

I’ve been using KF unrooted for a while now, and then I got bored of the stock keyboard. That was the actual thing to make me root it. So my search to find the easiest way to root began. I’m pretty sure that many might disagree with me, but I thought Kindle Fire Utility (KFU) is the best and easiest way to root KF.

Kindle Fire Utility can be downloaded from the xda-developers website. At the time of writing Version 0.9.6 is the latest and that is the one I’m using.

KF = Kindle Fire
KFU = Kindle Fire Utility

Downloading, Installing and Running KFU:

  1. You will need a fully charged KF, and the USB cable to connect your KF to your laptop.
  2. Download KFU and extract it to your desktop or a convenient folder. This is how your files will look like after extraction.
    1
  3. According to the instructions, all the drivers need to be correctly installed for your KFU to run correctly and detect your KF.
  4. If you don’t have your drivers installed correctly, then you are supposed to run install_drivers.bat file. You can connect your KF now or not. It wouldn’t matter.
  5. Connect your KF.
  6. Run the file run.bat
  7. Your screen will look something like this.
    6

Problem: ADB Status is Offline
Now this is will probably be the first problem you encounter. Check my post on ADB Status is Offline while rooting Kindle Fire on how to resolve it.

Now hopefully your would have gotten your screen to show ADB Status as Online now. Proceed.

Selecting the options to root Kindle Fire:

  1. Select option 2 for Install Permanent Root with Superuser.
  2. Let the tool do its job, just wait for it, and keep watching the screen to know when its done. Your KF might boot several times here.
  3. After its done, your screen will look like this.
    7
  4. Yay, you have successfully rooted your Kindle Fire.
  5. Now lets check if the Superuser has been installed correctly. We need this Superuser because we will need to modify the read/write permissions on folders to have complete control of KF.
  6. Open your kindle and check if the Superuser is showing in the carousel on top.  You can also check it from Apps. It should be showing up.
    shot_000001 shot_000002

Problem: Superuser is not installed.
We will need the Superuser. So check my post on how to get Superuser on your Kindle Fire.
Hope this will get you your superuser on the KF.

Installing Google Play Store:

If you have to follow the steps for installing Superuser using apk from my other post, then you would probably already have Google Play Store installed here.
You will not able to access Google Play Store from the Kindle Launcher. You need to use Go Launcher EX. Other than that you have your Play Store. All apps may not be compatible with KF, so happy exploring.

If you did not have your Google Apps installed, then

  1. Connect your KF to the laptop.
  2. Run run.bat.
  3. Make sure ADB status is online.
  4. Select option 6 for Extras.
  5. Select option 1 for Install Google Apps / Go Launcher EX.
  6. Complete the installation.
  7. You will be able to access Google Apps thru Go Launcher EX.
    shot_000004 shot_000006

Hope this helps you to root your Kindle Fire, And install Google Play Store.
Again, I’m not responsible if anything happens to your Kindle Fire or any other device. This is what I did and it worked for me.

Share this...