Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CHALLENGE: Find a Way to Activate a Window
#3
I'll pass on that rabbit hole. Look up "active window" for Windows and all you get is ways to focus it. That might be true for Linux / Mac, too.

If there is any QB/QB64 trick, that would be great, but off the top of my head, I can't think of one that works. For example: (_SCREENHIDE / _SCREENSHOW are not listed as non-x-platform, but they won't activate a window either.)

Now if QB64 would allow whatever Linux/Mac needs to get the window handle, maybe the min/restore trick would work.

Minimizing a window

xdotool:

xdotool windowminimize <window_id>

Un- minimizing a window

wmctrl:

effectively un- minimizing is done by:

wmctrl -ia <window_id>

I just have zero exposure to these OS so this is just me poking around at possibilities. Whatever support those command functions would need to communicate to the OS is beyond me.

Pete
Shoot first and shoot people who ask questions, later.
Reply


Messages In This Thread
RE: CHALLENGE: Find a Way to Activate a Window - by Pete - 12-09-2022, 05:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Feature Request: Limit Scope of a "Find" and "Change" hanness 5 729 06-21-2025, 11:21 PM
Last Post: SMcNeill
  personal coding challenge results James D Jarvis 4 633 06-20-2025, 03:20 PM
Last Post: James D Jarvis
  calculating ratios to find optimal grid layout madscijr 16 2,637 02-21-2025, 10:24 PM
Last Post: madscijr
  QB64PE programming challenge? auto-convert image to photoreal etch-a-sketch drawing madscijr 9 1,889 02-14-2025, 05:49 PM
Last Post: madscijr
  Steve's Programming Challenge: Weights and Measures SMcNeill 23 4,016 08-16-2024, 08:49 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)