yashsingh1/xdaforums huggingface dataset:
[XPERIA X1 General] mrwoll:
Loving the button mapper, but am having a little difficulty with the volume actions.

I have remapped VolumeDownLongAction to open up the task manager and VolumeUpLongAction to go to the comm manager.

The problem now is my short action triggers are mapped to "Program Files\X1BC\VolumeDownShort.Ink" and "Program Files\X1BC\VolumeDownShort.Ink". When I press the volume key, up or down, I get the following error:

"Error opening the shortcut or locating the target filename."

Are these Ink shortcuts in the X1BC folder meant to still regulate the volume? Or do I have to map them to an exe (similar to volmgr.exe - have looked but can't find anything like it) in the windows folder followed by additional parameters (-up / -down)?

As a side - I think it would also be quite helpful to add useful shortcuts in the first post, for instance:

Task Manager: "\Windows\TaskManager.cpl"

Comms Manager: "\Windows\CommManager.exe"

New blank SMS: "\Windows\tmail.exe" -service "SMS -to "" -body ""

Messaging: "\Windows\tmail.exe"

Another shortcut which would be useful is alt-tab. I know AEBbutton can do this but I am not sure what script it is running to do so?

I know file locations change for third party software but windows based commands and programs should remain pretty standard.
[XPERIA X1 General] anaadoul:
may i know how you are handling the sending button?

is it send key?

can i use the shortcuts for the Shift+ or Alt+ or any other combination as describend in MSDN regarding SendKey method?
[XPERIA X1 General] JKingDev:
Thanks! Do you mean you would like to see a & key added that sends an 'ESC' command? Will do!

Did you set the CaptureVolumeUp and CaptureVolumeDown values to 1 or 3? If you only want to change the long press function, set the value to 1. The "Program Files\X1BC\VolumeDownShort.Ink" strings are basically just place holders for you to change to what you like, but if you set the capture option to 1 you need not worry about them.

It would be nice to keep track of common shortcuts. Perhaps you could create a post and round up all the shortcuts that have been posted so far? Things like how to open quick menu like posted above and any scripts that have been posted. Just quote whoever posted it so they get credit. You could update it with anything you think people might find helpful. If you do so I will put a link to your post at the beginning of the thread. Thanks!

Are you asking how I am sending key events? That depends on what key. Do you mean the # keys? To operate those, I am using PostKeybdMessag. It can also be accomplished sending a WM_CHAR message. There is not really a well documented way of doing this in CE and these methods may not work on all devices and I actually had to get help to figure it out (from the author of mortscript actually). Perhaps if you have more specific dev questions we should continue this discussion via PM?
[XPERIA X1 General] nologin:
Yes, exactly what I want to have. Thanks.
[XPERIA X1 General] flext:
great hack but it will not work with soft keys, also it conflicts with the use of the hardware volume controll buttons
[XPERIA X1 General] JKingDev:
Please give details about the problem that you are having with softkeys. I have no issue with them. Also, if you use HTC volume control (and other HTC apps have the problem too), the problem with the volume keys is due to the fact that HTC tries to set key hooks. The only way to fix would be to hook some system calls that right now I dont know how to do.
[XPERIA X1 General] flext:
yes i am running htc volume control, and i have itje touch-it MD rom with no panels, the soft keys worked on the first 2 atempts but never after that
[XPERIA X1 General] flext:
also would it be possible to create a command to turn the backlight off with the buttons still operational
[XPERIA X1 General] tomli:
Feature request

Another cool feature would be a command to lock the X1 (standard lock feature), I know it's possible with another software that can be executed with X1BC but it would be nice to have that feature built-in.
[XPERIA X1 General] flext:
i have found that the softkeys do work but only when the buton is pressed for exactly the time that is specified, for the long button press(left and right softkeys are configured for the long button press of the left and right keys), for example i have the time set to 1000 ms for when the long button press should activate, however it only activates the softkey when i let go of the button exactly at 1000 ms or precisly before the phone vibrates?? as you can imagine it is very hard to achieve this every time i want to open a softkey
[XPERIA X1 General] flext:
is it possible to make it so a button can switch a specific today plugin on and off, e.g. i dont have panels, and touchflo uses alot of ram so i often turn it off from settings > today > items > touchflo 3D when i want to use another cpu intensive program, so it would be nice to be able to use the redundant 'x panel' button as a touchflo on / off button :)
[XPERIA X1 General] fast rock:
How can I create a shortcut to the tasks menu ? Where can I find it ?

I can access it only from top right of the task bar on today screen.

as in the attachment I added before.
[XPERIA X1 General] JKingDev:
The volume problem is a known issue with HTC programs. As for the softkeys, do they start working again if you restart the program or soft reset the device? Do you mean you can only get the short key action to activate if you hold it for just less than 1000ms? Do you get the same problem with a shorter timeout? Please tell me these reg settings:

HKCU\SOFTWARE\JKing\X1BC\CaptureLeft

HKCU\SOFTWARE\JKing\X1BC\CaptureRight

HKCU\SOFTWARE\JKing\X1BC\CaptureLWIN

HKCU\SOFTWARE\JKing\X1BC\LWINCtrlMode

That would be possible, but this sounds like something easily done with a mortscript. I dont really want to pack everything into this program as everyone has different needs. I think changing the backlight is a little bit outside the scope of this app.

Heh, I actually wrote a program to activate the lock a long time ago called OnLock. Could probably still find it on PDAPhoneHome. But yes, I can add this one. Very simple method to call the built in lock.

Hmm this is pretty specific. Not something that I would want to build into X1BC. If I have a chance I could try writing an exe to do this for you I will try and you can assign that exe to the button. Could even do it with a script. Just assign the "enabled" key for the today plugin to zero. I think this would work but would have to do some testing. When I have more time.

anaadoul, could you give more details about how to create shortcuts to the quick menu pages?

Sorry for the lack of updates. I have a good todo list for the next version. I got a little busier and I have also been playing around with another project. Wont give more details though because it may never see the light of day.

On another note, I did some testing and there is a way to distinguish between dpad and optical pad events. Hmmm... Possibilities.. Dpad mouse cursor? Press a button to toggle mouse cursor mode.. Maybe..
[XPERIA X1 General] :
Headset Button

This application is excellent. It adds features that Sony Ericsson/HTC should have added originally.

I have a feature request that seems to fit with this program nicely. The headset that comes with the X1 has a button on it. I would like to remap that button with your program.

Currently the button has 3 uses:

Press once to answer incoming call.

Double press to redial last number.

Press&Hold to run the program listed at HKEY_LOCAL_MACHINE\Software\OEM\VoiceCommand\Path

It would be nice to remap all three of those events. I sorely miss the functionality that my iPhone headset button had to play/pause/answer call/next track/previous track.

Thank you for all you have done.
[XPERIA X1 General] anaadoul:
Sure i will, i'm just waiting for SEUS to finish updating my phone and i will post here.

This is great, can you make sure if it can handle diagonal movement? as i noticed it only supports Vertical or Horizontal at a time!
[XPERIA X1 General] anaadoul:
Here is how to configure Quick Menu Shortcuts.

install Quick Menu (search the forum for the last version)

click

Start -> Quick Menu -> Options

Go to Command Tab, you will find list of commands that can be used, here are some of them

System Start Menu (Opens the Default Start Menu)

QuickMenu (Opens Quick Menu as Start Menu)

Today (Goes to today screen) (Just like minimize all on PC)

Running Tasks (a simple task manager as a Menu popup on the top left corner)

Active Next (Next Application = ALT+TAB)

select any command, click the button below and select the location.

assign X1BC to a shortcut, restart X1BC

and you are done :D
[XPERIA X1 General] Dandie:
@JKingDev

Would you consider running your App as background service? This helps reducing processes and to face the Windows Mobile max. 32 Task limit.
[XPERIA X1 General] drizztje:
Hi All,

Yesterday I started writing my first WM application, which is a simple gui for X1BC configuration. I'll see how far it goes, but don't expect something fancy :)

BTW, eVC++ is crap.
[XPERIA X1 General] drizztje:
JKing, could you add the possibility to send copy/cut/paste keys please? The keys that the sw keyboard sends when you press ctrl+c, ctrl+x,ctrl+v.
[XPERIA X1 General] 9500:
Is it possible map Sym key as Ctrl? That would be great for me, as I don't use Sym at all
[XPERIA X1 General] tomli:
Version 1.2?

Hi,

will there be a Version 1.2 one time (with the built in function to call the built in device lock) ?
[XPERIA X1 General] :
alt key

hey, maybe i missed it, but is there a way to map something like FN_A to the ALT key.

and me too would be really interested in an option changing from QWERTZ to QWERTY.

and then i have one more problem, i mapped FN_S to \, in some apps it works, but for example in putty it doesn't...
[XPERIA X1 General] hf.ken:
Is it able to "long press" OK button to minimize all program (show today) at the current version?

Thanks
[XPERIA X1 General] Sully99:
Hi

Cool, that's what i'm looking for baecause AEButtons does not work for me.

Is it possible to deactivate a Button (especially the Camera Button) or to create a dummy.exe that does nothing?

Because if I delete the Value then I get a Error Message.

And is it possible to disable autostart of X1BC at boot up?

Bye
[XPERIA X1 General] ksian:
Great program! Keep up the good work!

I have just one question: Is there any possibility to change for example the OK key so on the short press to minimize the programs, and on the long press to close them?

Thanks! :)
[XPERIA X1 General] chuma:
Thanks for great application. Most functions work on RoverN6 (SIM N3). Ofcourse buttons name are wrong. Work - VolumeDown,VolumeUP (only shortpress), GPS Button (shown like "CAMERA"), OK button, Camera Button (CAPTURERIGHT) =)

But we have few serious problem.

HKCU\SOFTWARE\JKing\X1BC\HoldFeedbackDuration do not add vibration on my non Experia devices. But add one red led signal for longpress. Its ok, but LED after that blink not work after... need reboot. =(

Please, add parameter for change signal device (changeable led color\vibro... like in Pigeon icq), or create version without vibro with longpress (like 0.4)...

With best regards, Chuma
[XPERIA X1 General] tomli:
Sent Ctrl-Chars

Hi JKing,

How can I send special Chars with the # Function?

I know that I can send an Asterik with #*, but how can I send, for example, an Ctrl-Z? Could you add an option to seny any Char with code (for example 0x1b). Even better would be the possibility to send several chars like 0x1b,0x36,0x0d,0x0a

Thomas
[XPERIA X1 General] Odeon:
How to map a hardware key to new startmenu?

I mean 'Programs Screen'.
[XPERIA X1 General] Dandie:
Looks like JKingDev has quit support for his software ...
[XPERIA X1 General] :
aww man. I was waiting for him to support multiple keyhooks. This is an excellent program
[XPERIA X1 General] JKingDev:
I havent posted here for a very long time. Quit I have not though. I do have an updated version that I am sitting on. I have not released it yet because at the moment I have no X1 to test it on. Sony has my X1 for repair. They have had it for a week now. I should get it back soon. One new feature that I have that has transformed the way I use my X1 is orientation stick mode. No flip when sliding the keyboard. I like to keep mine in landscape all the time. Waiting for the orientation switch (even if only a second) was always a pain but now a thing of the past. I basically use it like a sidekick now.

Surprise. I have something much better in the works. The version I will release when I get my X1 back will be the last release... of version 1.x. Have already started 2.0... Complete rewrite... not using keyhooks... Completely different method for trapping keys, much more reliable and no problem with hooks. I got some help from the author of AEButton+. I think I will be able to do everything I do now with them, but will be much smoother.. No more getting a long press when you short press a key. No more getting volume down when you press the ok button (I dont know if you guys ever had those issues but they happened to me more often than I liked, especially after installing hookmgr). Stay tuned. :)

Many apologies for the large delay but school and then my summer work has consumed me. Hopefully 2.0 will make up for it. Will go back through the thread and answer more questions later. Need to be at work and was working on X1BC2 till 4 last night.
[XPERIA X1 General] Odeon:
If this question is still up, I'd like to have switch off screen action.

Need it bad for Skype (I touch the screen with my ear/cheek, and the audioswitch sends sound to loudspeaker as the window active changes from SKYPE to some other).

If just press the button on the upper part of X1, it sends the phone to suspend, and Skype conversation also interrupts.

Or maybe there's some program that turns off screen? Then we could call it with X1BC via its settings easily...
[XPERIA X1 General] Lex360:
still no news on X1BC2? coz V1.1 doesnt wanna start @ all...
[XPERIA X1 General] Odeon:
Lex360

Try to re-install

JKingDev

Found a bug in X1BC. Even when Volume Up/Down are not captured, pressing them will invoke cursor up/down actions after showing volume controls for a second. So you can't use Volume buttons to up/down your sound level.

I even deleted all volume up/down registry keys from X1BC's registry settings, but it still captures volume up/down keypresses.

Does anyone have such bug? Can it be corrected somehow?
[XPERIA X1 General] JKingDev:
There may be a compatibility issue with other software on your device. What other programs do you have starting up at boot time? As far as X1BC2, development is slow but ongoing. It is working now, but does not yet have all the features of X1BC.

Odeon, if you use HTC Volume Control, this is the problem with key hooks, and the reason for rewriting the program. X1BC2 will fix this.
[XPERIA X1 General] JKingDev:
This can be accomplished with a mort script. Just write the following as your script:

ToggleDisplay(false)
[XPERIA X1 General] Angelusz:
Oh my gawd!!

I can't wait for this..! I've had all the problems described in the last few posts, getting short/long keypresses through eachother, HTCvolumecontrol not working etc.

Can you give us any ETA? Man, I'm excited! :D
[XPERIA X1 General] JKingDev:
Sorry, ETA's are a nono. I really cant promise anything these days. I have barely anytime to work on it. I know I will work on it tomorrow but it depends on whether I make enough progress to make it releasable. Also there is a small piece of missing know how I may need to fill.
[XPERIA X1 General] JKingDev:
Ok, since this is taking a long time, here is a teaser. I now use RegisterHotKey instead of setting a key hook. Right now I am still unable to get the volume keys to work but trying to fix that. I know it must be possible. FN keys, tab ctrl key, and LWIN key do not work yet. The real difference is that this is a much more reliable mechanism. You should no longer have problems with volume keys and the ok key getting mixed up and some of the above mentioned quirks. Also, other programs can now set key hooks as mine does not. The preference structure is the same. Just copy your settings from the X1BC reg key and put them in a new key called X1BC2 in the same location.

A new feature is orientation stick mode. This will stop opening and closing the KB from flipping the screen. I like to keep my screen always in landcape. This will only work if you capture the camera keys. There is one new reg DWORD value for this: "OrientationStickStartMode". If one, the program will start with orientation stick mode on. If zero it will be off. Then there is a new special key you can assign to toggle orientation stick mode: "&C". Try it out.

Other new special keys are &X for escape, &L for lock screen (using the built in WM lock; works in 6.1 and 6.5).

Place the executable wherever you want. Run it to start, run again to terminate. When terminated all keys should return to normal functionality. This is with exception to the volume and OK keys. They will not work until a soft reset. This peculiar behavior with these keys is what I still need to figure out. Why when I unbind from them they still dont work. Once this is done I can finish adding all the features already in X1BC.
[XPERIA X1 General] Angelusz:
Hmm, interesting. I'd like to see the volume keys fixed as well. Strange that WM handles those so differently from other buttons.. oh the strange quirks of windows' code!
[XPERIA X1 General] JKingDev:
Interesting indeed, though I dont think this is a MS problem. This is a HTC problem. I need to test on a ROM without HTC volume control to test this suspicion.
[XPERIA X1 General] zperetz:
Still waiting for X1BC2, as something does not give me a chance to install first version, due to key hook is already used by someone. I don't even understand by which program. But believe in X1BC2!
[XPERIA X1 General] Angelusz:
Do you have "lockmelite" or some other screen lock application installed?

Those use keyhooks to disable keys often as well.

Jking, is this kite gonna fly?
[XPERIA X1 General] zperetz:
Yeah, thanks. I really use S2U2 for locking and looks like this is the blocker. But in this case the only chance for me is X1BC2. So still waiting for JKing...
[XPERIA X1 General] pdamouse:
Disable Except on Long Button Press

Here's my question - I'd like to set the Camera button to only bring up the app if there is a long button push. Is that possible with this app?

The reason being this is that I use Pocket Player to capture the Camera button and use it as a Play/Pause control while the player is in my leather case. I also remaped the Volume Up/Down buttons to be forward and rewind respectively, and I use an inline volume control to adjust the volume - so with that I have all the basic controls for an MP3 player at my finger tips.

However, the X1 seems to randomly re-capture the Camera button on me, so that the Camera app comes up instead of the audio being paused or started - and sometimes both the Camera app and the play/pause action happen. There is no pattern (ie. on first press coming out of sleep, etc...) - its just that sometimes the X1 Camera app starts, and other times it does not. I like being able to use the Camera with the button otherwise to get to the Camera App, it coming up only on a long press would fix the problem and let me tap the button to Pause/Play otherwise.

I'm currently using the stock R3 ROM, I am planning to upgrade to something else soon but I haven't decided what yet. In this stock setup the only buttons WinMo lets me change are the Right and Left Context switches - it seems Sony decided since it labelled all the other buttons it doesn't want you to be able to customize them out of the box.

I don't mind if nothing happens if I tap the button without PocketPlayer open - but I would like the Camera app to only ever open if I hold it down.

So ya, can I do this with this program? Or do you know some other way I can accomplish this?

Thanks very much,

Peter
[XPERIA X1 General] pdamouse:
Ok I've figured out my problem - mostly.

It's the half and full press that is the problem with Pocket Player. I don't feel any difference when doing one press or the other, but for the X1 there is one. So doing a bunch of button presses with Pocket Player captured both Button 1 and 5 which seems to cover the Camera function, now it works 99% of the time when the app is in the foreground.

As for X1 Button Control, I decided to use it to change my OK to a OK/Start key, and my XPanel to an XPanel/Rotate Screen key. Of course, the XPanel change failed, since it brings up the XPanels no matter what if they are installed. So I made the right key into a right softkey/rotate key. I also have my Left key as a left softkey/Alt+Tab (thanks to SBP Button Remapper, no idea if X1BC can do alt+tab except if you write a mortscript and use X1BC as a shortcut to it...).

The only problem is that X1BC breaks Pocket Player's Button Capture if I leave it running - it can't remap one to the other, if you try it sometimes cancels both out or just does unpredictable things - but as long as I quite X1BC when I want to use the buttons in Pocket Player its ok.

So not perfect at all, but it works. I tried a bunch of different ways to get this to work, this is as close to perfection as I could come after 4 hours of trying so I'll stick with it.

P.S. Looking forward to X1BC2, I didn't try the beta on the page though since if I do need to quit it as with X1BC1.1 now, I don't want to lose the Volume Up/Down + OK functionality. Hope things are going well with JKing and those hurdles were overcome without too much trouble. Gl,

Peter
[XPERIA X1 General] melaskalany:
How to configure the OK button?!

Hi all! And thank you JKingDev for such a greay app! I'm running X1BC Version 1.1 and it's running perfectly. I'm using a UK R3A Stock Rom with no hacks or mods whatsoever.

However, I have one question. Can someone tell me how to configure the ok button to do its normal job (send ok or minimize) when short pressed and kill a program (terminates the program) when long pressed? I will much appreciate that as it will definitely make me never touch the screen or take out my stylus ever again! :D
[XPERIA X1 General] eratical:
Great

Great App !

One little thing i would love to see:

Instead of sending only 1 character with FN + Key I really need to send a whole string like "See you soon".

Maybe its already possible?
[XPERIA X1 General] ulysse84:
using your X1BC2, I set CaptureOK 1, CaptureLeft 1 and CapturePanel 1. It supposes that only long press will be counted, short press will use the default setting. However, I lose both short press default action. How can I fix that?
[XPERIA X1 General] Jeffstyle:
Same problem here :(

List of programs I have installed besides the default ones (like googlemaps and bejeweled and such)

XperiaTweak

A2DPSwitch

BTKeepAlive

VAlert

PHM Reg Editor

Advanced Configuration Tool

SKTools

SPB Mobile Shell

tnyynt SD TuneUp

Looks to me nothing that could interfere with binding keys or anything... :(
[XPERIA X1 General] JKingDev:
Well bad news. X1BC2 will not come.

Thats because something much much better is done! Details here:

http://xdaforums.com/showthread.php?t=610828

Consider this thread dead.
[XPERIA X1 General] Stonefly:
Very nice key hooking APP

I thank very good item

To manipulate the settings in the registry, it's hard to do a little bit

Use the X1BH so good

Turn Korean to English translator is to convert the contents.;)
[XPERIA X1 General] ShuriC:
Is there any ability to adapt this program to XperiaX2?

I`ve tried it. Button "Panels" doesn`t work at all. No press, no long press.

Note: I have no Panel manager and SlideView installed.

sorry for my english)