Flash CS6 AS3 Selected Device Language - actionscript-3

I am trying to detect the current language that the user select each time to his keyboard but i cannot. The only information that i can retrieve with Capabilities.languages is the installed languages on the device e.g en-US, en-GB. This is not enough to me because i had to know the current selected language, and the new language every time the user change his selection.
Thanks in advance!

Related

How to select keyboard in Tizen/HTML5 for Wearables

I have two system wide keyboards pre-installed on my Tizen Wearable device, the first one is a stock Samsumg's keyboard, the second one - Custom. The first one is a user's default selected in Settings.
I don't want to change the system's default, but I want my application to use the Custom keyboard.
In native API I've seen Tizen::Ui::InputConnection object that can be used as a property in Edit or TextArea controls, but I didn't see anything like this in HTML5 API. Searching Tizen's forum didn't help.
I've also seen in Tizen's SDK IME's WebHelperClient example a number of undocumented commands used to talk to a Tizen's service through a websocket. Probably there is a command to select an active keyboard, but I didn't find it.
Any leads are appreciated.
IMO that is not possible for either web apps or native apps.
Reason:
1. In gear, simultaneously two Keyboard can't be active at the same time.
Also, suppose there is an API available which you can use to change to custom keyboard while your app is running, but what if you close your application not using the normal hardware exit(i.e. Swiping down), rather you close it from "Recent Applications" then the custom keyboard that you activated for your app will be set for other applications as well.
Also the documentation available here doesn't explain anything which you are asking
https://developer.tizen.org/documentation/guides/web-application/tizen-features/ime-application

How to determine current SIP language on WP

Is there a way to determine current SIP language on WP platform? I want to switch input control - for example TextBox to RTL when user chooses Hebrew language. I know that it is possible because native apps can do that and third party (foursquare) can do that with ease also.
These apps aren't determining anything based on the "SIP language" (and you can't actually query anything about the SIP - you can only set a scope).
What they're almost certainly doing is querying System.Globalization.CultureInfo.CurrentUICulture to determine the language that the user has set for the phone.
This is based on the assumption that this hasn't been overridden and will normally be configured on start up. Take a look at the InitializeLanguage() method in App.xaml.cs to see how this is set.
For more on adding localization to your app see Globalization and localization for Windows Phone on MSDN.

Shortcut directly to Voice Search in Chrome Browser

I am helping someone recovering from an accident that makes it difficult for her to type and control the mouse with much precision. I'm not familiar with scripting languages used within browsers but would like to know if the following is possible:
A keyboard shortcut or function key is pressed that will, 1) create a new tab and open google.com in it and then, 2) Automatically "select" the microphone to start Voice Search without the user having to either select it directly or use the "Shift-CMD-." shortcut so she can start talking in the search command with no further keyboard interaction.
The computer being used is a mac running OS X 10.8.x and the browser is Chrome. I've searched for chrome extensions that do this but haven't been able to find any that would help.
Any ideas are much appreciated.
Thank-you.
Have you considered programmable keypads? For someone with limited dexterity / precision these devices may offer the solution you require and simplify keyboarding by limiting the number of keys to a small subset mapped to specific functions.
This 24-key keypad offers complete programability, though some reviewers remarked it is complicated to program.
http://www.amazon.com/XK-24-USB-Programmable-Keypad-Windows/dp/B003MB780E/
A cheaper option, which may be simpler to program, is to look at keyboards with a few programmable hot keys. A benefit of this keyboard it that it can pair with 3 devices and works with Macs, iPad/ods, Win PCs, etc. So, if your friend is also having difficulty using a phone as well this could be a huge help.
http://www.amazon.com/Logitech-Bluetooth-Illuminated-Keyboard-Smartphones/dp/B0099SMFVQ/

AS3: Get name of computer login

Just a quick question, I googled around for a bit but everything resulted in other AS3 tidbits.
Is it at all possible to access a user's computer logon name from AS3? I wouldn't have assumed so but given we can access other information directly from the computer (eg date), I just wondered if it was possible.
Thanks!
Harry.
On the web, I believe you can't get such an info.
If you are working on the desktop with AIR, you may retrieve the user's directory with
File.userDirectory
and its name which should be the same as the user's
File.userDirectory.name
I'd love to know the login of the user, but also his password.
I think it's not desirable to be able to get such information, especially from a client-side script. This is possible with ASP.NET using Windows Authentication. When the user is authenticated you can use User.Identity.Name. It should be possible to write that name to the front-end, and you can pass that to Flash using ExternalInterFace
If you are using Adobe Air, it is easier to grab the users name, since you have access to the users filesystem. See Get the current logged in OS user in Adobe Air.
Btw, on the web, it is not an unusual question to ask the user what his (user)name is.

Change or override the behavior of a USB keyboard to a more generic controller

Changing the keystrokes of a USB keyboard
My question is very similar to the one above... (to which there was no clear answer)
I have a nice USB keyboard that I would like to use to control an audio/visual program I am writing. I can't have the USB keyboard input interfere with the regular operating system interface -
Therefore I need to have the OS recognize it as a generic HID device of some kind, or a MIDI device, or something that sends OSC messages.
I am writing the program on OSX but would like to figure out a cross platform solution that doesn't involve me hacking the hardware of the keyboard - hopefully some sort of program or script that I can use. The reason for this is I'd like to distribute this program for others to use easily.
Any ideas on where to start? I'm thinking I'll probably need to write a separate program for users to select a USB device and reroute that into my program...
Any language is fine - I write code in Python, sometimes C, and Java / Processing.
Unfortunately you're going to find this EXTREMELY difficult to do: most modern operating systems will automatically detect the HID profile and load the drivers for it, and generally speaking make it very difficult to override that default behavior.
Without hacking the hardware you would need to somehow override the OS's default behavior for that specific USB VID (vendor ID) and PID (product ID) and instruct the OS to load your own custom kernel extension? I'd suggest starting with source of the AppleUSBKeyboard drivers at http://www.opensource.apple.com/source/IOUSBFamily/IOUSBFamily-206.4.1/AppleUSBKeyboard/ and then figuring out how to install your custom build as the preferred USB driver for your specific keyboard's VID and PID. After that it should be the messy messy messy issue of only sending the keys to your app and not to anything else.
Would it be possible to write a
function that disables regular
operating system keyboard input for
all keys except something like ESC if
my program is in focus? – jeffrey May
24 at 21:59
Yes this should be quite possible, I dont know about Mac but on Win32 you want a global keyboard hook (look up SetWindowsHookEx)