Check whether keypad locked or not using AT-command - mobile-phones

How can I check whether keypad of my mobile phone is locked or not using
AT+CLCk
command.
I am using Sony Ericsson k750i which supports this command
Thanks in advance

hey guyz i got the solution.....
AT+CLCK="CS",2
return +CLCK:0 means keypad is in unlocked condition
+CLCK:1 means keypad is in locked condition

Related

arrow key behaves abnormally on linux?

I connect to the remote Linux (desktop version) via ssh on my laptop. When the firefox with GUI (or other softwares) is opened, the arrow keys are out of work. Specifically, when the up arrow is pressed, the effect is equal to '8' is pressed and held.
It's solved via switching the input method from chinese to english.

Detect Keypress in background Linux in c/bash

I want to detect a key combination like alt+g in an application that runs as a background process (other keypresses/combinations should be executed normally) ,
if the combination is pressed i want to block all keypresses and send them via serial to another linux pc instead of executing them. I cannot find a solution for detecting the key combination and recording the keys within a background process.
I'd prefer to use a bash script, but c is ok aswell.
I just cant find a starting point. Any directions or help are appreciated.
Using Xlib I managed to fetch the keyboard Input http://www.x.org/releases/X11R7.7/doc/libX11/libX11/libX11.html
Doesn't the application screen do what you want? Allows you to detach & reattach to sessions on another PC over network (which could be connected over a serial line)?
10 Screen command examples and
How to use Linux Screen

How can I create a button (or hotkey) that will automatically connect my bluetooth headset?

I have a bluetooth headset that I would like to be able to quickly switch between connection from my laptop(running windows 8) to my phone. I downloaded autohotkey to help me make a hotkey that would connect to my bluetooth headset, but I was only able to make a hotkey that would open the bluetooth control panel for my specific headset, which is not what I was trying to accomplish. What I am trying to accomplish is a hotkey that would immediately connect my headset when typed.
The code I used in autohotkey, to open the bluetooth control panel(by clicking Ctrl+Alt+B) is:
^!b:: run "C:\Program Files\WIDCOMM\Bluetooth Software\BTWUIExt.exe" /deviceAddr=445ef3aa5294
this code won't work for you as the numbers and letters on the end are a uniqe idendifier for my specific headset. You can find your unique id by opening bluetooth in the control panel and right clicking your headset, selecting properties, clicking the bluetooth tab (remove the dots and colons).
This worked to connect the first bluetooth device in the list (Windows 10)
#SingleInstance,force
;https://autohotkey.com/board/topic/83571-autohotkey-connect-to-bluetooth/
^F1::
Run, bthprops.cpl
Sleep, 2000
Send, {tab}{tab}{enter}{tab}{enter}
Sleep, 200
Send,!{Tab}
return
There is very little information to give exact solution. But from given information I can say:
You can automate GUI with AutoHotkey so that script will go to the
place where unique id is located. In fact, AutoHotkey allows any
GUI automation (conventional or non conventional GUI).
If the unique id is there as a text and you can copy it, then it
also can be automated by several ways. If unique id cant be coped
and is as image, then it is slightly complicated and you need to use some OCR
techniques. In that case you need to make screenshot of that region
and use some OCR script getting text out of it. Or with AutoHotkey pass image to OCR software and get text from it.
After you have text, you can manipulate it the way you like. Most powerfull solution
is Regular Expressions which are supported by AutoHotkey.
When unique id is ready to use, you can use it in Run
command this way:
^!b:: run "C:\Program Files\WIDCOMM\Bluetooth Software\BTWUIExt.exe" %MyUnicIDVariable%
Turns out that the code I have works on its own. If I just wait for about 10 seconds after typing out the hotkey, the headphones connect, and the control panel that opened automatically closes. Quite convenient actually as I didn't expect it to connect or to auto-close the window.
Thanks for the effort anyway!
Try to install [Broadcom Bluetooth 4.0 Driver for Windows 8.1 ] LINK=>> 1 !
At least works fine on my HP-EliteBook-8570p with stereo "BlueDio 99B" headset. After switching the headset ON the Windows connect the device automatically, and switch Audio-Stream into new-attached device. Optimal!
PS - Unfortunately it is still the Problem with Windows 8.1 + Skype( MIC-Problem) :( Windows 8 is the first OS, than not support Skype at all! ;)

How do I stop wxhaskell from beeping on enter in text controls?

I've played around with processEnter, on command, and on anyKey with textEntry to no avail. I've been looking through the massive amount of documentation for wx-core, but I don't see anything that'll help. I'm using wxhaskell 0.13.2.1 on Windows 8.
You need to use wxTE_PROCESS_ENTER style to have a chance of capturing the Enter key in a wxTextCtrl. If you don't use it, this key is used for activating the default dialog button -- or beeping, under Windows, if there is no such button.

How to have numeric keyboard popup to input in TextBox on Windows Mobile 6.53? (C++ vs2008)

How to have numeric keyboard popup to input in TextBox on Windows Mobile 6.53? (C++ vs2008)
When one clicks in a text box, the numeric keypad should popup - not the full keyboard.
I searched for other threads, but a solution does not seem to exist. (http://msdn.microsoft.com/en-us/library/dd183783(v=vs.90).aspx)
This code fails - it does not bring up the numeric keypad, but the full qwerty keyboard:
hwndCtl = GetDlgItem(hwndDlg, IDC_PASSWORD);
SHSetImeMode(hwndCtl, SHIME_MODE_NUMBERS);
This does not compile - it does not recognize Microsoft.WindowsCE.Forms (I am unable to find the header file to include for this, if it exists):
Microsoft.WindowsCE.Forms::InputModeEditor.SetInputMode(hwndCtl,Microsoft.WindowsCE.Forms.InputMode.Numeric);
error C2065: 'Microsoft' : undeclared identifier
Is there a way to do this without writing my own dialog?
You have the right idea, you're just missing the right import statement.
According to the documentation for InputModeEditor.SetInputMode:
Specifies the input mode on a Smartphone.
...
You can set the input mode only on a TextBox.
Its example, however, is too terse. However, according to the documentation for InputModeEditor, here's what you need to do:
using Microsoft.WindowsCE.Forms;
...
hwndCtl = GetDlgItem(hwndDlg, IDC_PASSWORD);
InputModeEditor.SetInputMode(hwndCtl,InputMode.Numeric);
To access members from the namespace you desire, you have to use it.
This documentation may also help you.
I ended up creating my own numeric keypad since I did not receive any replies for a long time.

Resources