Page 1 of 1

PB Bug or OSK.EXE Bug

Posted: Sat Nov 04, 2017 11:40 am
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

Re: PB Bug or OSK.EXE Bug

Posted: Sat Nov 04, 2017 11:56 am
by ts-soft
Run without problems on win 10!
Only the keyboard is over the stickywindow, but this should normal :wink:

Re: PB Bug or OSK.EXE Bug

Posted: Sat Nov 04, 2017 12:01 pm
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.

Re: PB Bug or OSK.EXE Bug

Posted: Sat Nov 04, 2017 12:24 pm
by mk-soft
Same on Window 10 Pro

Re: PB Bug or OSK.EXE Bug

Posted: Sat Nov 04, 2017 3:34 pm
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