Simulating keypress in Windows forms was very easy due to the availability of the Sendkeys.send method, but this is absent in WPF, even if you import the Windows.Forms namespace it still won't work and will recommend SendWait. I only just noticed recently when I needed to implement something similar. I finally got it working and this was how.

I had previously used user32.dll for moving mouse cursor programmatically but recently needed to also simulate keypresses and since SendKey was unavailable for WPF I had to resort to using the user32.dll's SendInput method, midway into that I stumbled on this awesome library, Windows Input Simulator which is a wrapper for user32.dll's SenInput and implements very convenient methods to simulate/trigger key-presses even text input.

You can download from here, unzip and import the inputsimulator.dll, and use the WindowsInput namespace and you're good to go. The readme from the author very easy to follow.

Give it a try, it's awesome. It saved me a lot of time instead of working all over again with SendInput, it was very helpful and time saving!!




It is a bit unusual for Sony to throw in A-list PS4 games into free for download Playstation Plus monthly games, usually, they throw in Indie games (sometimes, very cool ones at that) but Sony turns on the HEAT this month.

Sony delights us all by adding Little Big Plante 3 to Playstation Plus free list of February, this is quite a fun game and can be played with kids and friends. It is an awesome move by Sony, hopefully we will see lots more generosity from their end this year.





Remember these games are only available for download within the month they're released, if you miss it now, you probably have to buy it when you get to feel like playing it, so hurry and download now and have access to it forever. 

Ever experienced this error when installing MikText for using latex on windows. This was a weird one, given we ran the installation as admin and in an administrator privileged account yet the error kept given this error. The solution was very simple and direct.

image from blog.smartthings.com


Just earlier working on an app, I realized I needed to display tabbed information to users in a dialog box. This is quite different from the usual Tabbed Activity.


You may have experienced many times when you move between countries; your google language is determined from the IP of where you're browsing from. Here is how you can enforce your language of choice without having to use translate feature of chrome.


You may have experienced this problem a couple of time, where your SD Card decides to go haywire on you and the only available option on your device is Erase Everything (Format). Here are some simple fixes that may help.


--- Advert ---

Internal SD Card Reader Available: 

Try with SD Lock off:

if your laptop has an internal SD Reader, there exist two quick fixes that usually works.
insert you SD-Card in an SD-Card Adapter, and see if Windows detects it, if Windows does. Follow the following steps.


The first step is to note the assigned drive letter; These can be seen from This PC / My Computer / Disk Management.

  • Go to start, click on run (alternatively Window key + R) enter cmd.
    • or type in Start, Command Prompt.
  • Type chkdsk /f  /r /x driverletter: 
    • i.e drive letter is the letter assigned to your drive. e.g if the letter e is assigned to your drive, then sample input may look like this:      chkdsk /f /r /x e:     
if your card is not detected or after detection, you cannot access it or get these error messages:
Cannot open volume for direct access 
The type of the file system is RAW.
CHKDSK is not available for RAW drives.
The type of the file system is FAT32.
Error in IOCTL call.
Then the below solution may help out.


Try with Write Lock on

Sometimes, trying your sdcard with write lock on does the magic, although you don't get to run a checkdisk on your sdcard, but you get the opportunity to backup your files before attempting the format option on your phone. (As at time of writing, I just had similar problem and this worked).





In pictures, how to enable USB ADB on a Sony Smartwatch. Quite straightforward steps and very similar to how you will enable same on other Android Wear or mobile phone devices.


Just a nagging issue sometimes experienced in Android studio, when you can seem to build the app and all seems okay but build fails on "Configure Build" right after "Configure Settings". Restarting the IDE didn't fix it for me. Here was what fixed it in my case.

kunmii.blogspot.com pes2017

PES 17 Demo was released some couple of days back, the buzz around the release was as huge as ever, joint with the new licences, I could not wait to get my hands on it. Here's what I found new in the demo.