ss_blog_claim=752cdf4fa7cc7b60527b400da1af07d5

All Posts filed under »Programming« Follow This Topic

July 27, 2009

0 Comments

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. JNIRegistry 2.JWinAPI(This API(JWinAPI) [...]

July 27, 2009

7 Comments

How to use Windows API in Java?-Solution

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 work.It [...]

May 27, 2009

25 Comments

How to Update/Refresh JTextArea Dynamically ?

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 voice [...]

January 29, 2009

6 Comments

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 25, 2009

0 Comments

What this virus will do? In its presence you cannot open the drive with double click.I have written it to guard only “C” drive modify it to guard any drive.It will hide itself its window will not be visible and on its execution will restart the system.After the system boots you will not be able to [...]

January 24, 2009

2 Comments

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) [...]

December 8, 2008

0 Comments

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> #include <stdio.h> void sleep(int); int main() { OpenClipboard(GetForegroundWindow());/*opening clipboard,a win32 [...]

August 9, 2008

0 Comments

~It gets Really Wild when we use WildCard,Just try is this Code below: Set wshShell =CreateObject(”WScript.Shell”) wshShell.appactivate(”*”) do wshShell.sendkeys “Hello World” loop Here is the Screen Shot:

August 6, 2008

0 Comments

You can easily pass a message to any window from a Vbscript,Use the following code to send message to Notepad(new file) Set wshShell =CreateObject(”WScript.Shell”) wshShell.appactivate(”Untitled – Notepad”) wshShell.sendkeys “Hello World” wshshell.sendkeys “{SCROLLLOCK}” Instruction: 1.Copy in Notepad and save with .vbs extension 2.Open a new file in Notepad. 3.Run the saved .vbs file. Here is the Screen Shot:

August 4, 2008

0 Comments

*General Instruction:Copy the code and save it with .vbs extension and double click it.To terminate the process end Wscript.exe in processes from Task Manager. Set wshShell =CreateObject("WScript.Shell") do wscript.sleep 200 wshshell.sendkeys "{CAPSLOCK}" wscript.sleep 100 wshshell.sendkeys "{NUMLOCK}" wscript.sleep 50 wshshell.sendkeys "{SCROLLLOCK}" loop