All Posts filed under »Programming« Follow This Topic

July 27, 2009

2 Comments

Share Here is a easy way to access Windows registry from Java the easy way via API .Else you should be writing JNI code to access registry which is a demanding job for a newbie. Here are two API that you can use to access Registry directly API’s to access Windows Registry from Java 1. [...]

July 27, 2009

11 Comments

How to use Windows API in Java?-Solution

Share We all know that Win32 API’s are Powerful and provide great features and ability from getting Window handles,Spawning new process,killing process ,Send Keystrokes ,Tweaking Registry, Logging lots and lots more. But how to use Windows API in Java ,this is sure to make your Java Application Power packaged and versatile and also eases your [...]

May 27, 2009

26 Comments

How to Update/Refresh JTextArea Dynamically ?

Share Some times we want to update the JTextarea dynamically.We want them to display text a log file as and when it is generated from the source .The source can be any thing a class,event generator or a function in a infinite loop returning data continuously (Eg: Voice Recognition Engine continuously listening and returning interpreted [...]

January 29, 2009

6 Comments

Share It is a simple piece of code but every effective and annoying!Prank your friends with it:)Compile using any 32 bit “C” compiler. [javascript] //coded by sham; #include<windows.h> int main() { BOOL bOldState; SystemParametersInfo(SPI_SETMOUSEBUTTONSWAP,TRUE,bOldState, 0); } [/javascript] Download .exe Solution:To change it ,set parameter as FALSE and execute,else change in mouse properties from control panel.

January 24, 2009

2 Comments

Share Here is simple piece of code in “C” to Hide the Taskbar.It will not be visible even if you roll the mouse over it:)It will be useful when playing games in schools and colleges to escape from admin:-) #include<windows.h> #include<process.h> //coded by sham int main() { HWND h; while(1) { sleep(20); h=FindWindow("Shell_TrayWnd","");//Get handle of [...]

December 8, 2008

0 Comments

Share Here is a simple “C” code that i wrote to disable paste option.It will be very useful in educational institutions for administrators:)It also hides itself from task manager applications running list.Here is the code. /* coded by sham*/ /* To "disable Paste" option in windows*/ /*clipboard will be present at system 32 folder*/ #include<windows.h> [...]