Omega Owners Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Please play nicely.  No one wants to listen/read a keyboard warriors rants....

Pages: [1]   Go Down

Author Topic: Win10 question  (Read 681 times)

0 Members and 1 Guest are viewing this topic.

TD

  • Omega Knight
  • *****
  • Offline Offline
  • Gender: Male
  • Swindon
  • Posts: 1235
    • Nowt!
    • View Profile
Win10 question
« on: 02 May 2016, 17:14:14 »

Ive managed to break it somehow..

Before if I had Edge open and then started another program, the new program (ie calc) used to open over the top of edge.

Now the new app opens behind Edge.....so to get to it I have to minimize Edge to see it....

Its like Edge has a setting 'Always on top', but I cannot find any such setting  :-\

What have I managed to do??
Logged

TheBoy

  • Administrator
  • *****
  • Offline Offline
  • Gender: Male
  • Brackley, Northants
  • Posts: 105935
  • I Like Lockdown
    • Whatever Starts
    • View Profile
Re: Win10 question
« Reply #1 on: 02 May 2016, 18:42:44 »

There are fancy utilities to do this, so check running processes.

AFAIK, no setting in the core OS
Logged
Grumpy old man

zirk

  • Omega Queen
  • *****
  • Offline Offline
  • Gender: Male
  • Epping Forest
  • Posts: 11431
  • 3.2 Manual Special Saloon ReMapped and LPG'd and
    • 3.2 Manual Special Estate
    • View Profile
Re: Win10 question
« Reply #2 on: 02 May 2016, 22:43:51 »

Calculator, here you go -

      Option Explicit
      Dim THandle As Long

      Private Declare Function BringWindowToTop Lib "user32" (ByVal _
         hwnd As Long) As Long

      Private Declare Function FindWindow Lib "user32" Alias _
         "FindWindowA" (ByVal lpClassName As Any, ByVal lpWindowName _
         As Any) As Long

      Private Sub Form_Load()
         Command1.Caption = "Run the Calculator"
         Command2.Caption = "Find Calculator's Handle"
         Command3.Caption = "Bring Calculator To The Top"
         Command2.Enabled = False
         Command3.Enabled = False
      End Sub

      Private Sub Command1_Click()
         Dim X As Long
         X = Shell("Calc.exe", 1)
         If X <> 0 Then
            Command2.Enabled = True
         End If
      End Sub

      Private Sub Command2_click()
         THandle = FindWindow(vbEmpty, "Calculator")
         If THandle = 0 Then
            Command3.Enabled = False
            MsgBox "Sorry, the calculator is running"
            Exit Sub
         End If
         Command3.Enabled = True
      End Sub

      Private Sub Command3_click()
         Dim iret As Long
         iret = BringWindowToTop(THandle)
      End Sub

 ;D ;D :D :D ;D ;D
Logged

TD

  • Omega Knight
  • *****
  • Offline Offline
  • Gender: Male
  • Swindon
  • Posts: 1235
    • Nowt!
    • View Profile
Re: Win10 question
« Reply #3 on: 03 May 2016, 08:00:20 »

A reboot fixed it  :y

But that doesn't explain why  :-\
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.