PB Bug or OSK.EXE Bug

Just starting out? Need help? Post your questions and find answers here.
User avatar
mk-soft
Always Here
Always Here
Posts: 6253
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

PB Bug or OSK.EXE Bug

Post by mk-soft »

Menu don´t work over keyboard (osk)
OS: Windows 7 Pro, PB v5.61

Code: Select all

If OpenWindow(0, 100, 200, 195, 260, "PureBasic Window", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget)
  
  If CreateMenu(0, WindowID(0))
    MenuTitle("&File")
    MenuItem( 1, "&Load...")
    MenuItem( 2, "&Save")
    MenuItem( 3, "Save &As...")
    MenuBar()
    MenuItem( 7, "&Quit")
    MenuTitle("&Option")
  EndIf
  
  StickyWindow(0, 1)
  
  RunProgram("osk")
  
  Repeat
    Event = WaitWindowEvent()
    Select Event    
      Case #PB_Event_CloseWindow
        Quit = 1
      Case #PB_Event_Menu
        Select EventMenu()
          Case 7
            Quit = 1
        EndSelect
    EndSelect
    
  Until Quit = 1
  
EndIf
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: PB Bug or OSK.EXE Bug

Post by ts-soft »

Run without problems on win 10!
Only the keyboard is over the stickywindow, but this should normal :wink:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: PB Bug or OSK.EXE Bug

Post by Dude »

mk-soft wrote:Menu don´t work over keyboard (osk)
OS: Windows 7 Pro, PB v5.61
[Edit] Seems to be an OSK.exe bug -- it won't work with Notepad and third-party apps for me.
Last edited by Dude on Sat Nov 04, 2017 1:08 pm, edited 1 time in total.
User avatar
mk-soft
Always Here
Always Here
Posts: 6253
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PB Bug or OSK.EXE Bug

Post by mk-soft »

Same on Window 10 Pro
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
uweb
User
User
Posts: 98
Joined: Wed Mar 15, 2006 9:40 am
Location: Germany

Re: PB Bug or OSK.EXE Bug

Post by uweb »

Windows 7 Pro x64:

If I start osk manual from "start" it starts but ends slowly - never used bevor on this computer.

;RunProgram("cmd") ; works under the inactive "PureBasic Window"
;RunProgram("explorer"); works under the inactive "PureBasic Window"
;RunProgram("Notepad") ; works under the inactive "PureBasic Window"

RunProgram("osk") ; with x64-Compiler :
works like manual start - over the inactive "PureBasic Window" - after I have changed
"Auf Tasten klicken" to "Über Tasten navigieren" in Optionen
"Click on buttons" to "Navigating via keys" in Options

;RunProgram("osk") ; with x86-Compiler :
; "Die Bildschirmtatatur konnte nicht gestartet werden" - so wie aus der Konsole
; "Could not start On-Screen Keyboard" - like from cmd

Sometimes even a blind chicken finds a grain.
:D
Please pardon my English, my native tongue is German.
Post Reply