Getting the Window Title? [closed] - windows

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
Ok i specify:
My problem is that I want to assign a keyboardshortcut for Dreamweaver CS4 and I have it like this: "C:\Program Files\Adobe\Adobe Dreamweaver CS4\Dreamweaver.exe" Thats ok so far.
But when I press the key it doesn't place itself infront of everything else like Outlook and Visual Studio does, instead it blinks in the taskbar, and I have to click there anyway to get back to Dreamweaver.
Is there any switch or something I can assign for Dreamweaver to get back AND have it "popup?"
OR some coding with the window title property that fixes this?

The Win32 API has a function for enumerating all top level windows on the desktop - EnumWindows ( http://msdn.microsoft.com/en-us/library/ms633497(VS.85).aspx ). Using the enumerated window handle with the Win32 API GetWindowText call ( http://msdn.microsoft.com/en-us/library/ms633520(VS.85).aspx ) would get you that information.
I am unfamiliar with the C# based methods, but I expect there is a similar way there too.
But you did not specify enough information really, what language/tool are you trying to do this within?

Windows tries very hard to prevent applications from shoving themselves in the foreground. For some reason Windows thinks that CS4 is trying to move itself to the foreground and instead of stealing the focus from the current app in the foreground, it's flashing the icon for the app to let you know that it needs attention.

Related

Mac: clicking between programs requires 2 clicks [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
This is a simple thing but I don't see it in settings.
So, I'm in my new Mac, working in a program like Safari or Firefox. I have a window in the background for another program, and it has a button. I want to click that button but have to click twice, once to switch programs and once to click the button.
I want my mouse to be "hotter" than that. Is there any way to do this?
Somewhat useful: you can hold Command and click to a non-focused window. The click will go through, however, the window will not get focus. It's useful if you have a partially covered window in the background, and you want to keep it that way, while clicking it.
BUT, if you have two windows side by side, which are not covered, it is UTTERLY frustrating that you have to click TWICE every time you want interact with them interchangeably. It would be really nice if there was an option to disable this "feature"...
This is called click-through, and guidelines for its usage are covered in Apple's Human Interface Guidelines. By default, all Cocoa controls support click-through and the feature must be turned off by the software developer. Some reasons to turn it off are covered in the Guidelines:
Avoid providing click-through for an item or action whose result might be dangerous or undesirable. Specifically, avoid enabling click-through for an item that:
Performs a potentially harmful action that users can’t cancel (for example, the Delete button in Mail)
Performs an action that is difficult or impossible to cancel (such as the Send button in Mail)
Dismisses a dialog without telling the user what action was taken (for example, the Save button in a Save dialog that overwrites an existing file and automatically dismisses the dialog)
Removes the user from the current context (for example, selecting a new item in a Finder column that changes the target of the Finder window)
To answer the actual question: No. There is no global setting for this. While it could be possible for an individual application to implement settings for itself, it's not something that I've seen.
Edit: To answer the other part of the question, is there any way to do this?, the answer is sort of. If you search for Mac focus follows mouse or Mac sloppy focus, you'll find some utilities such as Zooom/2 that focuses on each window as the mouse passes over. That is something that would annoy some people, but may work for you.

How do I recenter the active program on Windows? [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 9 years ago.
Improve this question
This may seem like a silly question, but how do I recenter the active program, or get it back on my screen when I can't click it?
Sometimes when I run skype and switch between resolutions for full-screen programs, the skype window disappears off screen, and I have no way of dragging it back.
Does anyone know how to fix this without restarting the program?
Alt+Tab until the desired window is active.
Try the following shortcuts:
Win+Left: Fills left half of display with active window.
Win+Right: Fills right half of display with active window.
Win+Up: Maximize
Win+Down: Minimize or reset to window size prior to maximize.
NOTE, the above is for Windows 7. I haven't tested it on other OS's.
Not sure if it will work on earlier versions.

I want to reverse my extended desktop monitors [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 am using a monitor and a laptop. Currently the desktop appears on the laptop screen and the monitor is the extended desktop. I want it to be the other way around but I can figure out how to do this. Is is possible to configure it so the desktop appears on the monitor and the laptop screen is the extended screen? I am using windows 7 by the way.
There is an option on the settings to set a monitor as your primary. Check that for the monitor. Your taskbar will move to this.
Right click desktop and select "Screen Resolution".
Click Identify to show numbers on screens.
Click the correct screen on the window corresponding to the monitor.
Check "Make this my default display" if not checked.
Right click your desktop and select "Screen Resolution". Select your external monitor (will usually be #2), and click the check box that says "Make this my main display", and press Apply. That should make your external monitor your primary, and move the taskbar over.

Windows Taskbar API [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Is there any API that allows to control which icons are shown in the Windows (7) Taskbar at a given time? I would like to have the processes still running, but their icons not show up on the taskbar.
See the various extended window styles in CreateWindowEx, and figure out which one suits your needs. (Many of them deal with taskbar items, it's not just one.) Then just set the style with SetWindowLong.
There's also ITaskbarList::DeleteTab, but I really don't recommend this for hiding your window.
I want the window to be hidden from view, including from the taskbar;
Hide the window. ShowWindow
ShowWindow(hwnd, SW_HIDE);
Have you considered creating an icon in the system tray or creating a windows service?
You want to create the windows using CreateWindowEx and use the WS_EX_TOOLWINDOW style to hide the window from the taskbar. Also, once you've created the window, call ShowWindow with SW_HIDE.
I'd try to send them WM_SETICON with NULL for both the big and small icons.

Move window from second screen to the main when the second screen is not visible [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 9 years ago.
Improve this question
I use a VPN and Windows remote desktop to log onto my Windows XP work computer from my Win Vista 64 home computer. The only problem is that I sometimes forget to move all my important windows over to the main screen when I leave work. Does anyone know a way I can move the windows over to the main window without being able to see them? So far the only way I know how to do this is by closing them and reopening, which is not an option for tests that has been running for multiple hours.
I have seen a few non-free desktop management tools online but I don't want to pay to solve something so simple.
Right click on window in taskbar, choose Move and use arrow keys to move the window.
Optionally you can press Alt + Space when window is in focus to bring up the same menu with Move.
Window can't be maximized in order to move but you can Restore it using same menu.
On Windows 7, start Task Manager, chooses "Applications" tab, select task, right-click with mouse, and do:
1. minimize.
2. maximize.
In my case, it brought widows that had been opening onto the second desktop, that I have disconected, onto the main desktop.

Resources