yashsingh1/xdaforums huggingface dataset:
[XPERIA X1 General] dingolino:
I will send later a picture from sk tools. As far as I understood the starting order is not alphabetical, sk tools is offering to rearrange the starting order.

I figured out now that it is making a difference for the battery usage in which starting order the programs are in the startup folder. (also the boot up is smoother or not so smooth depending on the order)

Do you have no

paneldefault.exe

panelmanager.lnk

??

Can you give wktask a try?

http://soft.photoracer.net/docs/wktask_en.html

I tested it having it at the end of the queue and in front and have seen different battery drainage. (if you test it I give you later my findings, not to influence anything... :D)

Best regards

dingolino
[XPERIA X1 General] Angelusz:
Cheers, just small scripts though. :D

cmEX landscape is an application that chalid created, based on secondtoday and rltoday, to add a fully functional landscape mode to the X1 with TF3D.

Though, when I got into mortscript yesterday, I got into a coding frenzy and now created my own - improved - version of said landscape APP. I'm fixing some bugs at the moment and it will be ready to release soon.

On the camera button, my landscape mode uses a registry key to make the transition from portrait to landscape look much better. However, that registry key tells the phone that the camera app is active, whilst it's not, rendering the HW camera button useless. If X1BC is able to catch the HW camera button, I could incorporate X1BC in my APP's cabinet file, and have it catch and replace the camera button, pointing towards the camera application!

The circle would be complete. ;)

Also, I've been testing X1BC and haven't found any bugs! So you have done an absolutely awesome job. It does (almost) everything I want and slows down my phone much less than does AE Button plus.

Keep up the good work!

EDIT: Found one minor issue. I mapped the right key under the screen to a mortscript. When I press the key whilst the screen is slightly darkened (requiring a tap to go to normal brightness, activating the screen), it acts as the windows key instead of starting my script. (opening the start menu)

Also, to prevent the camera button from being caught by X1BC while in the camera application, you can just check for the camera application process, if active, don't catch, if not, do.
[XPERIA X1 General] toucam:
Works flawlessly! This program is a godsend, so glad I can assign the XPanel button. Thank you so much for your efforts.
[XPERIA X1 General] Angelusz:
Hey Jking, how's it going? I would love to see a status update.

I'm particularly interested to know if you think you can catch the camera button.

Also, would you mind if I pack your APP into my landscape mode? (to add functionality) Naturally, credit will be given.
[XPERIA X1 General] JKingDev:
Thank you for your kind words. Hopefully improvements will come soon.

I am really sorry for the lack of updates. Yes, you absolutely may package my app with your landscape solution. Thank you for writing that. I plan to finish the tab ctrl button, then attempt adding camera key mapping, then add fn key mapping. Also, I will make it an option for a key to send keystrokes directly (so for instance you could make fn+G send an underscore, ect; what a waste of so many keys without fn keystrokes). Also, I want to add vibrate feedback when a key is pressed and held. Once again, sorry for the lack of updates but school has really taken over. Will work at the next chance I get. Thanks for understanding.
[XPERIA X1 General] Angelusz:
Cheers! Keep us posted. :)
[XPERIA X1 General] tomli:
WinKey

Hi JKing,

X1BC is great and works very well. I'm currenly remap LeftLongAction to CommManager, RightLongAction to Free42 and OKLongAction to Vibrate toggle. I also remapped Win to Ctrl key. Unfortunately, I can't send Win Key now. How do I need to configure X1BC to have the WinKey act as Ctrl Key and LWINLongAction as Win Key? I tried it with a MortScript containing SendSpecial("win") but this script only works if I terminate X1BC (It seems that the Win Key MortScrips sends is captured by X1BC again)
[XPERIA X1 General] Angelusz:
Any status updates possible? I really hope you will find the time to finish this app. :)
[XPERIA X1 General] JKingDev:
Yes, your conclusion that X1BC is also intercepting the win key sent by the script is correct. The next version of X1BC will have the capability to send key events including the Win key, so this issue will be fixed. Also, the next version will have the ability to make the tab key a ctrl key, and the tab key will work better. It will function as both tab and ctrl at the same time. Two modes of operation. 1.) A pressing tab sends a tab character while holding tab and pressing a key sends a ctrl character. 2.) A short press of tab toggles ctrl mode while press and hold sends a tab chr.

I have finished the tab ctrl key. Next I will work on capturing the camera key. I get off work at 5 today and will work on this after. Hopefully the next version will be today.
[XPERIA X1 General] JKingDev:
Angelusz, so far I can detect the camera button but I cannot prevent the system from knowing it was pressed. The camera app comes up even if I handle the key press event. You said you know of a program that can successfully capture the camera button?
[XPERIA X1 General] JKingDev:
New version to be posted tomorrow. It will be 1.0. I have improved the WIN ctrl key, added the tab ctrl key, added vibrate feedback on key hold action, added fn key mapping for a,s,d,f,g,z,x,c, and v, and have added support for sending characters and special keys (right now the only special key that can be sent is WIN, but more can be added if requested) directly. This means you could say make the panel button send an 'X' character if you wanted. I have the fn+G set to send a '_' character, fb+S sends a '$' ect. Tomli, you will now be able to send a win key.

If I can figure out how to capture the camera key and support other key hooks that will be 1.1, 1.2 ect. But I think this has reached a v1.0 standpoint. I am posting tomorrow because I need to writeup all the new reg settings, ect. It is late and I have class early tomorrow, so you will have to wait just a little bit longer. :P
[XPERIA X1 General] dingolino:
sounds great!

please have also "only" a exe file like last time to safe the existing settings.

I do not know whether it is easy for you to adress: On the german system the name of the program folder is "Programme" - I had a little trouble before I realized that the presetting which was coming from your cab was wrong for my german system ... :)

dingolino
[XPERIA X1 General] Angelusz:
Lookin' good, can't wait to try the new version. =]
[XPERIA X1 General] JKingDev:
Please do. New version is up. :)
[XPERIA X1 General] JKingDev:
I just went back and noticed this. I didnt see this before. Why not just do this:

If(Screen("portrait"))
Rotate(270)
Else
Rotate(0)
EndIf

Also please tell what registry value you were using. Might help find out why the camera comes up even if I trap the key.

You may now send a win key. To do so, set the key action to "&W" Cheers! :)

Release in CAB and exe form. :) Though I would suggest backing up your settings, installing the new cab, then restoring settings. That way it creates the new reg values for you. Also, I was able to fix the language directory now. It should preset the strings to the correct directory on any language.

Enjoy the new version and let me know of any problems. If you would like me to add more special keys let me know. If anyone has info that could help prevent the camera app from opening please let me know. Also, I still dont quite know how to allow other apps to set key hooks. This will involve API hooking, and I dont know how to do that. Could anyone help? If you know someone who might be able to help please point them to this thread/post. Thanks!
[XPERIA X1 General] fast rock:
Hello, I used v1.0

Can you help me with some actions?

If I want to execute "Quick Menu" and "Start Menu" what pathname should I write in the String?

And I want to assign Softright key to the Right button (because TF3D overwrite it to Today screen), what should I write in String?

Thanks :)
[XPERIA X1 General] Angelusz:
Added answers in green.

I've not tested it extensively yet, but it seems to be doing exactly what I would like it to. :) I like the vibration feedback, makes it much better.

Only things left now are the deep camera button and the multiple keyhooks.

I'll give you some info on how the registry key that I gave earlier works;

When the key is set to "1", the software thinks that the camera app is active. This means that the screen will no longer rotate when the keyboard is slid out (because it normally is already in landscape in the camera app). It will also stop the camera button from launching the camera app, for it is then used inside the app itself.

You could use this by having it set to 1 before the assigned action is executed and back to 0 afterwards. Just check it out. :)

I'll test some more and let you know what I find.
[XPERIA X1 General] tomli:
&W

Hi JKing,

I've just upgraded to Version 1.0 and it works great! Thank you very much for this piece of Software. To have a ctrl key makes the X1 even more useful. And the modifier "&W" works perfect! The WIN Key is back! I'm just thinking what I could use the Fn-Letter for...

BTW: This is a short Mortscript I wrote to switch Bluetooth Mode (OFF-ON-VISIBLE), I've put it on the VolumeUpLongAction. It needs the VJ Switcher Tool I found on this board.

btwert = RegRead("HKCU","Software\Microsoft\Bluetooth\Settings","ScanMode")
vibrate(200)
Switch(btwert)
case(0)
Run("\Programme\vijay555\VJVolubilis\VJVolubilis.exe", "-blueon")
case(5)
Run("\Programme\vijay555\VJVolubilis\VJVolubilis.exe", "-bluediscoveron")
case(7)
Run("\Programme\vijay555\VJVolubilis\VJVolubilis.exe", "-blueoff")
EndSwitch
[XPERIA X1 General] dingolino:
>Release in CAB and exe form. Though I would suggest backing up your >settings, installing the new cab, then restoring settings. That way it creates the >new reg values for you. Also, I was able to fix the language directory now. It >should preset the strings to the correct directory on any language.

It is working GREAT! Many thanks.

I was backing up my reg setting, but it was not neccessary to use it because of the idea with the lnks in the program directory all I have to do is just changing the setting from 0 to 1 to activate the long press for the keys I want, start X1 Button and voila it works as before.

(ok I have at the moment only 2 keys so this was easy)

Best regards

dingolino
[XPERIA X1 General] nurps:
If i use this while running an application will it stay in foreground or is it switching to the homescreen and i have to go back to my app in the taskmanager?

And how does the built in windows screen rotation work ,that i can set for one of the 2 softkeys? It works without mortscript..cant i just map that command to another key or long press?
[XPERIA X1 General] Angelusz:
Use the normal screenrotate. It will only rotate your screen if you have mortscript installed. And yes, the app will stay on top.

It works exactly the same, but now you can map it to any button you like.
[XPERIA X1 General] nurps:
But why not just use the built in function then, or isnt it possible to add this to the registry settings of this program?
[XPERIA X1 General] Angelusz:
The answer is contained in my previous post.. read!
[XPERIA X1 General] nurps:
Dont see it.

Ah and the most important part. If TF3D is installed the right button is always set to jump to the today screen, if i use this program..can i override TF3D there and get it to do something else?
[XPERIA X1 General] Angelusz:
*sigh*

The built in rotate can not be done without a script no. With a tad of common sense, you could have deducted as much - why else would I create the script, if it were obsolete?

And yes, you can overwrite the built-in functions, as this app catches the keypress before it gets processed.
[XPERIA X1 General] anaadoul:
Great application mate,

but there is one small thing to fix

by default the fn+letter is assigned to shortcut in the settings, if the file doesn't exist there (which is the default) will result in a message showing that the shortcut is not there and my phone freezes!

Great work, i really like your application. the vibrate on long is awesome, also camera and X Panel buttons capture are great.
[XPERIA X1 General] JKingDev:
You should be able to open the start menu with &W as the string. For quick menu, I am not sure what the exe is. Do you mean HTC quick menu? I could disect a cab for it to determine where the exe is. Can you point me to where I can find the CAB? As far as the softkey buttons, I will add some special keys for left and right softkey buttons. &Q and &E (I just chose these because they are left and right of W)

Do you mean to say a script like the one I wrote will not work properly in some apps? I dont see why it would keep looping. Its just an if statement. How do you mean it would not work? When you set that reg key to 1, does it force the screen to rotate to landscape?

Hmm.. Perhaps if as soon as I detect a half press I set that reg value to 1 so that if it is full pressed nothing will happen. I will try this and see.

I use the fn keys to add more symbols to the keyboard. What was SONY thinking to leave off things like forward slash, underscore, and dollar sign with so many keys with no fn function? Very annoy to slide out the KB to type and still need to call up the symbol SIP for those common characters. For me, fn+G="#_", fn+D="#\", and fn+S="#$".

Thanks for sharing your script!

As Angelusz posted, scripts run silently in the background (unless your script has some form of UI or launches a GUI app, ect). I don't believe there is a way to call the built in screen rotation. It can only be assigned to a button using the control panel, which is no help if you are using this app. Hmmm.. I have an idea. I will add screen rotation as a special key. &R will be added.

Ah, I know why it is doing that. A key hook procedure is not supposed to block the system. It needs to do what it does and return to the system as quickly as possible. Normally when a key is pressed I send a notification to the main thread, and the main thread does the calling of the assigned app. For the Fn keys however, I call the assigned program directly from the key hook. Therefore, if that "file does not exist" dialog pops up, the system will freeze because my hook procedure does not return until the dialog is dismissed. I will fix this in the next release.
[XPERIA X1 General] fast rock:
By "Quick Menu" I mean the menu if you click on X button in the Today screen, I think it is called "SPB task manager" I'm not shore.

So there is no Softright or left key until now?
[XPERIA X1 General] Dandie:
Just a hint: Press - and aü key afterwards and you'll get _ Press / + aä key and you'll get \

Don't know about the $ though, but at least this gives you back some of the Fn Combos.
[XPERIA X1 General] JKingDev:
Camera button success! Using this reg key, I can stop the camera app from opening up. The only problem is that even if you set the key to capture long press only the camera will still not come up. The only way to launch the camera is to manually assign the key to "\Program Files\XperiaCamera\CameraRunner.exe". Other than that, works flawlessly! I have short full press assigned to HTC album, and long full press assigned to camera.

Is this SPB's menu, or the HTC task manager quick menu? Do you know where the executable for the menu is? If it belongs to SPB pocket plus, I heard there is a pack you can download from SPB that gives you executables to perform common tasks. If they make an executable for that, this could be a solution. Is this SBP or HTC task manager? I dont use quick menu so I am not sure which one you mean. Could you post a screen shot of it? Currently no soft keys but I will try that next. May not work though. If Touchflo captures the right softkey, I dont know if I can send a soft key event without touchflo knowing.

Ah, did not know about that one. Thanks. :) Still though, one less key to type, eh?

&R for rotate has also been added. Also there is a new reg setting to choose landscape orientation. Will be in next version (1.1).
[XPERIA X1 General] ewok666:
Great App, works very well. Just two things....Like already stated above, when it tries to run a non-existant link it freezes the phone and required a reset. Also the LWIN Ctrl on 2 doesn't seem to work for me, i.e. short press brings up the Start Menu and long press acts as Ctrl........it just never acts as Ctrl. For the tab button this works just fine.

Also love the vibration feedback when the long button action has been kicked off!

Thanks
[XPERIA X1 General] JKingDev:
Thanks! I have noted that the LWIN Ctrl on 2 setting does not work. Will take a look at it. The missing link freeze is fixed now.

I have added two special keys &Q and &E for left and right softkey respectively. Please try them. If this does not work around the touchflo 3d issue I don't know what can. If touchflo captures all softkey events I can't really bypass it.

New version. Rotate, left softkey, and right softkey special keys are added. Freeze on missing link for the fn keys is fixed. And most importantly, full control of the camera button. Please thank Angelusz for this. I dont think I would have figured out this way without his help.

Please note the change in registry settings for the camera button. DWORD "CaptureHalfCamera" and DWORD "CaptureFullCamera" are gone. Replaced with just DWORD "CaptureCamera". I did this because there is no way to capture long full press without also capturing short full press. Half press does not do anything to begin with. See the second post for the options. The cab will preset the short and long full press to "\Program Files\XperiaCamera\CameraRunner.exe" for convenience.

Let me know of problems. I would like to support multiple key hooks but still don't know how to do so. If anyone can help with API hooking or knows of someone who can help please let me know. Have fun. :)
[XPERIA X1 General] fast rock:
Hi JKingDev,

The Softright key works great Thank you, but if I add 3 in string it captures short press only and the long press doesn't do any thing.

And the quick menu that I mean is in attachments.
[XPERIA X1 General] anaadoul:
there is one main thing you have to do in the next releas.

i noticed that when the mobile is locked and a key is pressed (x1bc monitored) the phone freezez!

i noticed this when ci mapped the half camera press short and long assigned, short is assigned to phone application and long to next process like alt tab in windows.

when the phone is on and awaiting for the password, pressing the camera (short or long) will prevent me from returning to the password screen.

possibly you can check if the device is locked to ignore the command?

keep up the good work.

regards
[XPERIA X1 General] ewok666:
Might be specific to the camera button. Doesn't freeze for me monitoring Left and Right soft keys.

Cheers
[XPERIA X1 General] anaadoul:
@ewok666

maybe, im not sure!

i tried other buttons but they doens't seem to have a problem, i will try remapping the same application of the camera button to another button and try if it cause any problem.
[XPERIA X1 General] anaadoul:
@fast rock

Why don't you try Quick menu, in it's options you can create a shortcut to a tasks menu (it will be open on the top left) which will contain the list of open applications and then assign that shortcut to a mapped button.

i mapped it to Right soft key long press and working great ;)

here is my configuration now.

- Long press TAB key as Control

- Left soft Key Long Press to Quick Menu (opens customized start menu).

- Right Soft Key Long Press to Processes List (by Quick Menu).

- OK long Press to CommManager.

- fn_G to _ (Underscore)

- fn_D to \ (back slash)

- fn_Z to Navigation Application.

- Camera Half Short to Phone.

- Camera Half Long to switch running application (like ALT+TAB in windows) using Quick Menu.

Others are default :D
[XPERIA X1 General] toucam:
Some how the camera button just doesn't work for me, does anyone have the same problem?
[XPERIA X1 General] J-Pro:
Thank you very much! It's very-very useful program! Great work!

I've translated all your description into russian and posted it here(4pda.ru). Just in case if you ever need it.

and one more thing. Would be nice if special symbol list would include russian letter 'ё'. It's absent on the hardware keyboard. And I doubt it's possible to specify it in registry string as '#ё'

Thank you very-very much!
[XPERIA X1 General] xUniversal:
Map Y/Z buttons

Hello,

I have problem with QWERTY/QWERTZ. Would it be possible to make an option for binding: Z -> #y, Y -> #z, Shift + Z -> #Y, Shift + Y -> #Z? I really used to QWERTZ keyboard.

What do you think about this idea? Would it be usable? Would it be too complicated?

Anyway, your piece of software is just awesome. Thanks very much for it and for considering my idea.
[XPERIA X1 General] JKingDev:
Are you adding 3 in the string or in the DWORD option? Please look on your device and give me the value you have for these reg options:

HKCU\SOFTWARE\JKing\X1BC\CaptureLWIN

HKCU\SOFTWARE\JKing\X1BC\LWINShortAction

HKCU\SOFTWARE\JKing\X1BC\LWINLongAction

HKCU\SOFTWARE\JKing\X1BC\LWINCtrlMode

HKCU\SOFTWARE\JKing\X1BC\CaptureRight

HKCU\SOFTWARE\JKing\X1BC\RightShortAction

HKCU\SOFTWARE\JKing\X1BC\RightLongAction

As for the quick menu issue, did anaadoul's tip (quoted below) help?

For the next version I will add exceptions. You will be able to add exceptions that for certain windows send no keys or allow all keys through. Also, if I am able to support other key hooks this might be related. Still researching that. Thanks!

Thanks for the tip! fastrock, did this work for you? And thanks for sharing your config. I also add fn_S as $ sign. :)

Are you still having this problem? If so please look on your device and tell me exactly what are the values for the following reg values:

HKCU\SOFTWARE\JKing\X1BC\CaptureCamera

HKCU\SOFTWARE\JKing\X1BC\HalfCamShortAction

HKCU\SOFTWARE\JKing\X1BC\HalfCamLongAction

HKCU\SOFTWARE\JKing\X1BC\FullCamShortAction

HKCU\SOFTWARE\JKing\X1BC\FullCamLongAction

Remember, there was a change from 1.0 to 1.1. There is nolonger CaptureHalfCamera and CaptureFullCamera Values. There is only CaptureCamera. See the second post for details.

Wow, thanks for the translation! As for the 'ё', have you tried putting "#ё" into the registry? Strings stored in the registry are stored in wide character format, so unless I am mistaken accented keys should work fine. Try it and let me know if it works. If not, I can add it. Thanks again for your comments!

I will try adding a swap Y and Z option in the next version. Thanks for the comments!
[XPERIA X1 General] J-Pro:
Just tried: "#ё" works perfect, thank you very much! I missed that letter :)
[XPERIA X1 General] nologin:
Great program, thanks a lot JKingDev. :)

It works perfectly on my device.

btw, may I request to add "Esc" functionality? Because I use telnet to connect to my linux box, sometimes Esc is useful to exit programs.