Developer Portal Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    How to show a virtual keyboard?

    How to show a virtual keyboard?

    AlexRodry
    Established Member

    Hello,

    Currently I am working in a view where I have a Mod_HtmlView with a specfic url.

    The problem appears when I have to write something in the web showed in that view. The Virtual Keyboard doesn't appears.

    Is there any solution to be able to write in these views?

    Many thanks.

    Example.png

     

    5 REPLIES 5

    AlexRodry
    Established Member

    Hello,

    I found a solution opening the windows keyboard from a Command Line but I am not able to open the windows keyboard of the default windows folder.

    AlexRodry_0-1647935534784.png

    I had to copy the .exe file to Desktop and now it works.

    Example_Opening_Keyboard.gif

    I dont know if there is a better solution opening the Nexeed Keyboard like the following picture that appears automatically when clicking:

    AlexRodry_1-1647935656827.png

    Many thanks.

     

     

    nexidator
    Community Moderator
    Community Moderator

    I can confirm that there is no way to show the Nexeed keyboard from within the browser window. Another approach might be to activate the Windows keyboard on OS level, but it is well possible that it would interfere with the Nexeed keyboard in the other parts of the HMI. So I guess the way you found out may be the closest you can get. Thanks for sharing!

    AlexRodry
    Established Member

    Hello everybody,

    I have been trying this solution in a PLC but it doesn't work... When testing in my computer running locally twincat and a HMI it worked but now I have the following errors:

    AlexRodry_7-1651593578474.png

     

    1: The system cannot find the file specified

    2: The operation was canceled by the user

    I have been trying the following things:

    a) Running a desktop shortcut of osk.exe

    AlexRodry_0-1651591045309.png

    I received the error Nº2.

    b) Running command osk.exe

    AlexRodry_1-1651591110384.png

    I received the error Nº1.

    c) Running shortcut of osk.exe from another folder:

    AlexRodry_2-1651592989278.png

    I received the error Nº1

    d)  Running osk.exe from System32 folder:

    AlexRodry_3-1651593069793.png

    I received the error Nº1

    e)  Running a .bat file that executes osk.exe

    I received the error Nº1

    AlexRodry_4-1651593132215.png

    However, if I execute manually .bat file or any shortcut or even the osk.exe directly from System32 folder I can open the keyboard.

    AlexRodry_6-1651593551817.gif

    Any idea?

    Many thanks.

    Logfiles:

    1: (The system cannot find the file specified)

    2022-05-03 17:02:31 (A:1568268kB M:23941kB) [Error] <Application>
    Unhandled exception occured:
    System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
    at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Bosch.OpCon.HMI.Modulo.Shared.Commands.ExecuteCommandLine.Execute()
    at VisiWinNET.Commands.CommandCollection.ExecuteCommands()
    at VisiWinNET.Forms.EventAgent.OnEvent(Object sender, EventArgs e)
    at System.EventHandler.Invoke(Object sender, EventArgs e)
    at System.Windows.Forms.Control.OnClick(EventArgs e)
    at VisiWinNET.Forms.Internals.ButtonBase.OnClick(EventArgs e)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at VisiWinNET.Forms.Internals.ControlBase.WndProc(Message& m)
    at Bosch.OpCon.HMI.Modulo.Forms.Mod_Button.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    2: (The operation was canceled by the user)

    2022-05-03 17:02:34 (A:1568204kB M:20573kB) [Error] <Application>
    Unhandled exception occured:
    System.ComponentModel.Win32Exception (0x80004005): The operation was canceled by the user
    at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Bosch.OpCon.HMI.Modulo.Shared.Commands.ExecuteCommandLine.Execute()
    at VisiWinNET.Commands.CommandCollection.ExecuteCommands()
    at VisiWinNET.Forms.EventAgent.OnEvent(Object sender, EventArgs e)
    at System.EventHandler.Invoke(Object sender, EventArgs e)
    at System.Windows.Forms.Control.OnClick(EventArgs e)
    at VisiWinNET.Forms.Internals.ButtonBase.OnClick(EventArgs e)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at VisiWinNET.Forms.Internals.ControlBase.WndProc(Message& m)
    at Bosch.OpCon.HMI.Modulo.Forms.Mod_Button.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    nexidator
    Community Moderator
    Community Moderator

    Looks like this has something to do with the HMI being a 32 bit application running on 64 bit Windows. In this case, the System32 folder is redirected to SysWOW64 and you need the virtual folder Sysnative to access System32.

    It still didn't work though when I tried starting osk directly using the Sysnative Path.

    No idea why, but for some reason this command line seems to work:

    C:\Windows\Sysnative\cmd.exe /c start osk.exe

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist