83

I hope this is the right place for the following issue: my question got only one non-helpful comment. Now two months later, I have still not been able to come up with a solution on my own.

As I have little experience and thereby few reputation points I can not offer a bounty.

What do I do in a situation like this?

  1. Post a duplicate (and risk being punished for that, right?)?
  2. Do I simply add a comment to the question to make the question appear active?
  3. Do I give up trying to get help on SO for this question?
30
  • 12
    It's possible that adding the winapi tag would help your question reach people with the proper background to answer it. But your question may have already been answered here.
    – beaker
    Commented Aug 7, 2022 at 15:11
  • 7
    If you can access the Stack Overflow chat (you can) and your question is old enough (it is) you can also ask for help in the Python chat room. See the room rules first, though. FWIW, I think this is less of a Python and more of a Windows issue, so your milage may vary when approaching this as the former and not the latter. Commented Aug 7, 2022 at 15:44
  • 7
    And, for the record, you're probably not going to get an answer. Accessing the alternative desktop screensavers run in is non-trivial, depends on the version of windows, and just generally a bad idea. I'm not even sure it's possible without elevation. Commented Aug 7, 2022 at 16:09
  • 8
    Without knowing it, you're asking how to cross the security boundary into the session the screensaver runs in. Crossing security boundaries can lead to security issues .. the barriers are sometimes there for a reason, after all. Elevation here means UAC elevation, allowing your script to run with administrator privileges. Commented Aug 7, 2022 at 17:08
  • 5
    @Gimby the OP obviously confuses comments and answers. There no answer on this question, deleted or not. Commented Aug 8, 2022 at 10:20
  • 7
    The initial comment was not helpful in solving the question. It just says that someone doesn't understand why someone else would want to do that programmatically. Commented Aug 8, 2022 at 10:25
  • 6
    @MartinSmith which is actually helpful in solving the question, just not the question that the OP asked but the underlying problem: why do you need to do this.
    – Braiam
    Commented Aug 8, 2022 at 10:49
  • 8
    If they didn't need to do it why would they be motivated to ask the question and still be looking for an answer 2 months later? Commented Aug 8, 2022 at 10:51
  • 12
    @MartinSmith have you not seen someone so entrenched on their apparent solution that doesn't try to look for an alternative? I've seen people on this very site for years trying to get SE to implement another sorting for answers, and when they finally get it, it doesn't solve the underlying problem: answers are still obsolete and in need of an update.
    – Braiam
    Commented Aug 8, 2022 at 10:52
  • 2
    The answer "get out of screensaver mode manually" is presumably what they have been doing in the interim and finding inadequate Commented Aug 8, 2022 at 10:55
  • 11
    I remember there was somebody on the internet who claimed questions are not to be asked on stackoverflow because all the answers are here already. I say ignore the haters and risk the punishment, eventually you get an answer.
    – zyrup
    Commented Aug 8, 2022 at 13:08
  • 7
    @RohitGupta, I'd question why someone would open a 2nd account, then work to get enough points to put a bounty on a question from their 1st account when they could have just done the work on the 1st account. Especially when the "2nd" account is 14 days older than the question being asked about. And both accounts have been active pretty much the whole time, and not participated on similar topics except for Python. Commented Aug 8, 2022 at 15:16
  • 4
    @mortpiedra, unfortunately, not reading a question and making assumptions is kind of common. I asked a question nearly 2 years ago that the only person commenting on it suggested 3 articles I had in the question. When I made them aware of this, their comments and my question was deleted. Commented Aug 8, 2022 at 22:18
  • 9
    @Braiam and others - overapplication of the XY principle is extremely unhelpful. The original question is clear and precise: "how can I interrupt the screen saver". If the answer is "you can't", explain why; if the answer is "I don't know how to do that", remain silent and let others help. The OP's design decisions about why he/she wants to interrupt are out of scope. Commented Aug 8, 2022 at 22:20
  • 3
    @KenWilliams Care to explain/define exactly what "overapplication of the XY principle" means (to you)? It's extremely common to be able to quickly understand the issue with solution Y an OP is asking about, and asking why they are trying to do that or getting to the root issue X is a great way of getting to provide an answer "...you can't. Here's why... This is what you can do instead...".
    – Drew Reese
    Commented Aug 9, 2022 at 1:02

6 Answers 6

6

I posted a possible answer to your question, though as I pointed out in the answer, it's not a general answer. It might work for your use case, and if it does, that's great. Notably, it doesn't work for me, I had to test it out in a VM, since my machine is sufficiently locked down there is no real way to disable the screen saver from code and return to the active session .. by design.

What do I do in a situation like this?

Answering this meta question is hard. Really, at the heart of things, we have an XY problem. I try to answer for the general case on Stack Overflow. For the general case for your question the answer is "don't do that. Use SetThreadExecutionState to prevent the screen saver from running, show a full-screen top-most window to act as a screen saver and make it flash or otherwise alert the user when your condition is meet"

That's however super not satisfying when you expect the answer to be a simple "call foo() to move the mouse cursor and disable the screen saver". You just need to know what "foo()" is! And to make matters worse, there is a "foo()", I showed you one possibility of it after all. The other answer around terminating a process works too, albeit in a way that's a bit like using a bomb to open a jar of pickles.

I know I personally struggle to know when to answer these sort of questions as is, and not worry about the inherent XY problem, and when to go into little dissertations about the XY problem and solve the underlying problem. It's a balancing act, and sometimes things are missed, since I tend to just skip over things that make me struggle internally since previous encounters with others has taught me people just want answers, not more problems.

I'm open to suggestions here.

0
59

I'll answer generally rather than regarding your specific post.

  1. post a duplicate?

No, definitely not.

  1. Do I simply add a comment to the question to make the question appear active?

Mmm... that's a bit spammy... I wouldn't recommend it, and I doubt it would be useful.

  1. Do I give up trying to get help on SO for this question?

Perhaps. It's not inconceivable that your question may just fall between the cracks. But - don't give up until you've tried a few other things:

  1. Invest some time in improving your question:

    • Find and apply more appropriate tags
    • Add a concrete example if applicable
    • Improve phrasing and grammar.
    • Shorten sentences.
    • Add relevant context, e.g. via links.
    • Explain what you've tried.
  2. Enter a chat room relevant to your question (e.g. the language-specific rooms), ask if someone can help you with your question about XYZ; add a link and perhaps repeat the gist of the question briefly.

9
  • 86
    You missed the approach which was successful for the OP: post about the situation here.
    – skomisa
    Commented Aug 9, 2022 at 5:01
  • 64
    @skomisa: I intentionally avoided recommending that. Don't think we want that to become a popular custom.
    – einpoklum
    Commented Aug 9, 2022 at 6:24
  • 25
    @skomisa He had a good attitude and wasn't complaining. That's why it worked. And the question wasn't bad. It could have easily backfired in any number of ways.
    – TheMaster
    Commented Aug 9, 2022 at 9:40
  • @TheMaster: That might be true for OP, but I said I was offering a general answer.
    – einpoklum
    Commented Aug 9, 2022 at 10:28
  • 1
    To be fair "general answers" are already at the "general post" i.e. How do I get attention for one of my own questions without a good answer? - Meta Stack Exchange. Anyway... thinking about it what exactly is bad about bumping question (without any progress)? (I mean it gives you unfair advantage against those who do not bump, but if everyone does that they you don't really get anything)
    – user202729
    Commented Aug 9, 2022 at 14:13
  • Will edits/improvents on a question make at visible in the overview again? Otherwise I see how 4. would help..
    – NotX
    Commented Aug 10, 2022 at 15:06
  • @NotX: Well, it will still be a question with no answer, I think those come up in review queues, don't they? Also, remember that at some point other people will find this question, even if OP has abandoned it, and it's good to have good questions :-)
    – einpoklum
    Commented Aug 10, 2022 at 15:56
  • 1
    @einpoklum: Well, tbh. my impression is: if a question wasn't answered by first day, it's lost. The only chance it has then is that somebody else has this very question and stumbles upon the exisitng one, comes up with an own solution later on and provides it.
    – NotX
    Commented Aug 10, 2022 at 16:54
  • @NotX: 1. tag subscriptions. 2. Review queues - look at Triage and First Questions specifically.
    – einpoklum
    Commented Aug 10, 2022 at 18:53
36

I started a bounty on your question because your use case sounded interesting. It kind of reminded me of the time (a long time ago) I tried to mess with my screensaver to read Yahoo! Messenger messages.

Although it’s none of my business, I’m curious to know what kind of data you receive.

5
  • 7
    And for the record, I only know this because ages ago I dug into the madness of how Screen Savers work since I wanted a feed reader to be able to pop up messages over the screen saver. That code is long gone, but apparently the pain isn't. Commented Aug 9, 2022 at 4:01
  • 4
    While this is certainly kind, and is perhaps a one-off solution to the OP's problem, this doesn't actually solve the meta-problem of "how can SO better highlight the real gaps in information / burning questions if these questions are posted by people with relatively little SO experience?" The meta answer within your question would essentially be to rely on the innate curiosity of people with reputation but not direct experience to elevate your question to greater attention, which isn't really satistying / realistic in most cases
    – DerekG
    Commented Aug 9, 2022 at 15:43
  • 2
    interesting how this worked out. the bounty got some attention and a decent answer. wonder if people might spend a bit more time to answer these answerless questions after a certain period of time if there was reputation reward? Commented Aug 10, 2022 at 0:02
  • @dangel what, you don't think the Necromancer badge is enough? Commented Aug 10, 2022 at 2:59
  • 2
    @dangel You're suggesting something like a low-level automatic bounty for answerless questions of some age? It's a neat thought, though I imagine it'd be a hard sell for the SO devs.
    – samuei
    Commented Aug 10, 2022 at 14:05
16

If you've really tried for two months, you have experience. Use that experience to help others. There's always someone with lesser experience than you. Focus on other user's problems and submit well written answers. If that's not possible, improve other user's posts by submitting edits. You'll gain reputation and use that reputation to offer a bounty.

3

When I google the error message from your question, I find results. Is the answer to your question in there? I don't know. But it seems like there are other things that you can try:

  1. Use ctypes.windll.user32.SetCursorPos(x, y) instead of win32api.
  2. Run as admin.
  3. Surround the command with a try to get more debugging information.

What happens when you try those? Add that information to your original question (as an edit, not a comment). Unless it works. If it works, post that as a self-answer.

Similarly, you might check out these results. Because apparently it's not moving the cursor that you want but just to interrupt the screen saver. Does this help? It seems to suggest that moving the cursor won't work and proposes VB/C# that would. Again, if you get more negative information, edit your question. If you figure it out, post an answer.

Or look at this. It's aimed at Delphi, but there might be a Python version of GetDesktopWindow() that would take the same WM_SYSCOMMAND/SC_SCREENSAVE message. Linking to a few posts like this might help other people work out something for your problem.

Posting a duplicate is unlikely to change anything. Adding new information, particularly the debugging information from catching the exception, might allow someone to understand what is happening.

0
3

What do I do in a situation like this?

You earn reputation points by answering questions, and then you use those points to start a bounty on your question.

Regardless, you can't expect your question to be answered. You are not owed anything; this is a network where people help each other for free.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .