Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
setting program to display always on top of other windows without having the focus?
#17
(05-20-2024, 07:39 PM)madscijr Wrote:
(05-20-2024, 07:24 PM)Steffan-68 Wrote: Do both programs have to be in the same place on the monitor?
Yes, see below for why... 

(05-20-2024, 07:28 PM)SMcNeill Wrote: Sorry.  I didn't notice the need for _SCREENCLICK.   What you're looking for is:
https://qb64phoenix.com/qb64wiki/index.php/SCREENX
https://qb64phoenix.com/qb64wiki/index.php/SCREENY

Thanks for the info. Now I'm going to switch gears and show you what this was all for:
reading multiple mice from QB64PE

Basically, I have 2 programs running, where program A is just for reading separate input from multiple mice plugged into the computer,
but doesn't display anything to the screen. It needs to have the focus and be positioned directly under the other window, 
Program B, which is the main program gets the mouse coordinates from program A, and displays stuff on the screen.
It needs to be on top, but can't have the focus, or else program A won't work.
The two windows need to be sitting on top of each other so the user's mouse movements line up with the display.

(I would like to get everything working in one program, but to do that Spriggsy thought that both would have to have the same window handle registered, but we never really figured that out. So I came up with this kludgey 2-program solution!)

@madscijr I have to ask. Why are you using 2 mice at once? LOL! My brain can barely handle 1 mouse at a time. This sounds fascinating and I'm really curious why you'd want to do this. Your ingenious approach is fascinating as well. Goes to show where there is a will there is a way.
grymmjack (gj!)
GitHubYouTube | Soundcloud | 16colo.rs
Reply


Messages In This Thread
RE: setting program to display always on top of other windows without having the focus? - by grymmjack - 05-21-2024, 04:04 AM



Users browsing this thread: 5 Guest(s)