On 5/12/2022 6:18 AM, panagiotis m via use-livecode wrote:
Hello Paul,

Does Alt+A9 work for you?

Cheers,
Panos
--


No. Alt+A9 does not work. I checked my Registry (per https://quality.livecode.com/show_bug.cgi?id=18702#c15) and in Computer\HKEY_CURRENT_USER\Control Panel\Input Method there is no "EnableHexNumpad". There is only "(Default)" and "Show Status" and a "Hot Keys" sub key list.

I thought I would be clever and write a bit of LC script (see below) using listRegistry, queryRegistry, and setRegistry. However, none of the registry functions appear to be working in the IDE under LC 9.6.7 and I vaguely recall that they now only work if the application executing them has Administrative privileges? Is that correct?

I guess the larger question is: For a person developing an LC based app who's users what to enter Unicode characters, what is the "best practice" for doing this? Is it always copy and paste from some web site or the "Character Map" accessory on Windows or what? If there some bit of working code a person can put in their application to set the Registry key IF the user checks a preference option or clicks a button or something?

For NEXT MONTH's Livecode Global troubleshooting session, how would one address this? :-)


on mouseUp pMouseButton
  if platform() = "Win32" then
    put listRegistry("Computer\HKEY_CURRENT_USER\Control Panel\Input Method") into tList

    answer "Keys at 'Computer\HKEY_CURRENT_USER\Control Panel\Input Method':"&cr&tList&cr&"On my computer I should see 1 key: 'Show Status'" -- DEBUG

    if "EnableHexNumpad" is not among the lines of tList then
      -- no registry key exists
      put empty into tData -- flag teh key does not exists
    else
      -- a key exists, now check its value
      put queryRegistry("Computer\HKEY_CURRENT_USER\Control Panel\Input Method\EnableHexNumpad\") into tData
    end if
    if tData <> 1 then
      put "<p><b>Your Windows system is not configured for keyboard entry of Unicode characters!</b></p><p>" into tPrompt       put "<p>The value of Registery Key 'Computer\HKEY_CURRENT_USER\Control Panel\Input Method\EnableHexNumpad\' is:"&&tData &"." after tPrompt
      put "A reboot will be required.</p>" after tPrompt

      answer warning tPrompt with "Confgured" or "Skip"
      if it = "Configure" then
        if not setRegistry("Computer\HKEY_CURRENT_USER\Control Panel\Input Method\EnableHexNumpad",1) then
          -- an error occured
          answer error (the result)
        else
          answer warning "<p><b>Please reboot your computer.</b></p>"
        end if
      end if
    end if
  end if
end mouseUp

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to