Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4109180
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T21:45:42+00:00 2026-05-20T21:45:42+00:00

I’m trying to find a way to draw something on the screen that will

  • 0

I’m trying to find a way to draw something on the screen that will show on top of anything else that is running (even full screen applications), but will not steal focus, or act like a normal application or window. It should be purely visual and not interfere in any other way.

Python is preferable.

What I’m aiming for is to be able to have my python script display a notification on the screen, possibly just some text (transparent background), and for it to show in front of whatever else you are doing at the time.

I’ve tried wxpython, but either the window steals focus, or I use the trick to not steal focus and it doesn’t appear in front of my full screen applications. It feels like wxpython isn’t really made for what I want to do, seeing as it’s not supposed to be a GUI, it just supposed to be a notification that appears temporarily and takes no user input.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T21:45:43+00:00Added an answer on May 20, 2026 at 9:45 pm

    In general, you cannot write an application which guarantees to stay on top of other applications which want to stay on top of other applications.

    • http://blogs.msdn.com/b/oldnewthing/archive/2011/03/10/10138969.aspx

    Since a full-screen application is window which is topmost, there is no way for the OS to know that your topmost window needs to be topmoster than the other topmost window.

    Ideally, you should find some way of cooperating with the other application.

    However here are some tricks you can try, which may work for some situations:

    • You are probably going to have to use the Win32 API directly.
    • Don’t activate your window using SetActive, just use SetWindowPos with SWP_NOACTIVATE
      and HWND_TOPMOST to move it to the front without activating.
    • Try setting your window to disabled, then it can’t steal the focus, which is half the problem.
    • You may have to set SPI_SETFOREGROUNDLOCKTIMEOUT in SystemParametersInfo to a small value.
    • You may have to try for foreground repeatedly until you get it.

    Please note that these tricks will not help if the other window is doing the same thing.

    Useful documentaion here:

    • SetWindowPos: http://msdn.microsoft.com/en-us/library/aa931583.aspx
    • SetForegroundWindow: http://msdn.microsoft.com/en-us/library/ms633539(VS.85).aspx
    • SystemParametersInfo: http://msdn.microsoft.com/en-us/library/ms724947(VS.85).aspx
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Seemingly simple, but I cannot find anything relevant on the web. What is the
I need a function that will clean a strings' special characters. I do NOT
I'm trying to create an if statement in PHP that prevents a single post
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.