I've tried many times, to answer or ignore an incoming call, when the call is from an unwanted number. So, just thought an application could be useful for many of you guys out there .
Developers try them out.
1. Key event simulation - The simplest one
For example, You can simulate the Talk (Green) key to Answer and End (Red) key to Reject the call.
This is how you do it.
First, generate the KEY_DOWN event, for key press.
keybd_event(Keys.F4, 0, KeyEvent.KEYEVENTF_KEYDOWN, 0)
Then generate the KEY_UP event, for release
keybd_event(Keys.F4, 0, KeyEvent.KEYEVENTF_KEYUP, 0)
Keys.F4 is the Red (Hang up/ End) key.
Keys.F3 is the Green (Talk/ Call) key.
If you want to do this from a C# code, you need to do a Platform Invoke for the keybd_event(..) method.
2. Another method is to use the Telephony API (TAPI).
Retrieve a handle to the active call and use lineDrop to terminate it.
This method requires more Platform Invokes to be done.
You might have to get the ownership of the line where the call is coming in.
Check out the TAPI function reference here, on how to get the handle to the active call, and to drop it or accept it.
3. There is another method that is not used much often. Keyboard hooking.
You need to understand low level concepts for doing this method.
You can try the stuff explained in the blog here
Get it going, and block all unnecessary calls.
It’s amazing to visit again n again coming to your blogs the superb effort is here.GUNSHIP BATTLE Helicopter 3D 1.4.4 + Mod
ReplyDelete