Make a program come to foreground but not clickable [closed] - windows

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm pretty new to programming and I wanted to create a new project.
I have something in mind, but before I start learning how to program it, I need to know something.
I want the program to be able to stay on the foreground, so it always visible when active, but I want it to be only clickable when a certain key-combo (or something like it) is entered.
So it stays visible, but not clickable unless a specific key is tapped, when you go back to the other program (for example while watching a movie) it becomes unclickable again.
Is this possible? And if so, what language you advise me to start this project in?
EDIT: let's say only Windows for now, can I use java for this? How do I approach this problem?

My C++/Win32 API approach:
The "not clickable" part: just throw away any messages your application receives prior to whatever key combination you're looking for has been pressed. The trickier part is if you want a message aimed at your window to pass through and go to the window behind yours - you would first obtain the HWND of the window behind, and then use the SendMessage function to forward all unwanted messages to that window.
The "stays at the top" part is even easier. Use the extended window style WS_EX_TOPMOST in your call to CreateWindowEx and it'll stay at the top no matter what.
Here's a good Win32 API tutorial if I made your brain explode.

Related

Track content and simulate key press [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I would like to know if it would be too hard to implement the routine below with *.bat file on Windows:
1) detects when an input/textarea (on a Chrome browser) contains a certain word (like "word123")
2) fires a custom physical keypress on the keyboard so the key pressed gets displayed in the input/textarea where the caret is positioned.
This is a very specific use case in a hospital system where we need to detect some special words in medical record where doctors are typing in any page they are browsing.
One suggestion is to use something like AutoHotKey, which can certainly do the monitoring and simulate a physical key press. However, if you're triggering based on the word being entered, then the physical key press would happen right away (as soon as the '3' is released in your example). Agree that this isn't really a programming question yet - if you give AutoHotKey a try and run into issues, come back and post some code.

Typing speed to become a coder for a company [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 8 years ago.
Improve this question
I know it may be a lame question, But i have to ask it what should be the minimum typing speed necessary to code for a company.
Currently I have a typing speed of 30 words per minute. Would it suffice?
You Must
•be able to type without looking at the keyboard.
•not be thinking about where which key is which on the keyboard (most of the time).
•be free to watch what is happening on the screen as you type/mouse around.
You May
•be able to type in both Qwerty and Dvorak, but it is annoying when pairing and I try to use your keyboard and it is in Dvorak. ;-)
I Will
•go mental if I have to watch and wait for you to hunt and peck with your two pointiest fingers.
•be fine if you don't bring up that I can't type quite as fast as you can.
Please
•learn the key-bindings in the software you use .
•do not use the mouse to navigate to the edit menu to cut and paste.
•do not click the go button in your web browser when you just finished typing in the url.
•find out how to move more than one character at a time when using a console/terminal
•on unix learn what the readline library is and learn to recognize its presence in the different tools you already use.
When driving a car that has a standard transmission, one should not have to look down to find where in the gear box you are going to shift gears to. It may be acceptable to look to find reverse though.
I don't think you need to be a fast typist, just a competent one.

Win32 api programming - wm_paint after resizing [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 months ago.
Improve this question
I want to redraw window on every window resize, but I dont want to call WM_PAINT until resizing is finished. I tried it using WM_EXITSIZEMOVE message, but I unsuccessfully. Is there any way to, for example paint TextOut on every resize (on every mouse up after resizing)?
Thanks
When you receive WM_EXITSIZEMOVE, simply Invalidate() the window and let Windows generate a new WM_PAINT message on its own scheduling.

What's the recommended way to use "question mark" icon? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I develop a desktop application, and I'd like to add a "question mark" icon besides one of the textbox (that describes the meaning of that textbox).
My question is what's the common way to use the question mark:
Should I show the text when hovering on the question mark? e.g. using a tooltip?
Should I show the text just after clicking on the question mark?
Thank you!
I suggest you show the tooltip on hover. That is one click less for me as a user.
That aside another thing to consider while constructing a forms based user interface is to label the controls descriptively enough such that users don't need any further help beyond the component label. If the tooltip is your primary means of conveying the meaning of the control, you definitely have to rethink the form design. Basically don't use tooltips as an affordance, a placeholder with 2-3 words as additional description is a better first choice.
The only place where I see click to reveal tool-tips being really useful is in a touch interface.

Breakpoint isn't breaking [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Trying my hand at Mac Cocoa for the first time. Lion and XCode 4.1.
My little app is supposed to save a date and a task. I'm using 2 buttons, a scroll view, and an array controller. One button is for adding, the other for deleting.
The add button has no effect, and execution doesn't stop at a breakpoint in the handler. I know it's a broad question, but can anyone point me at what to look at? I think it's all wired correctly, but obviously not.
Make sure you actually connected your buttons to an action, either on a specific desired target or on the First Responder.

Resources