window

Batch - minimize window while running a loop command (not start minimized)

感情迁移 提交于 2019-12-17 20:52:54
问题 I'm wondering if there is a way to minimize a batch window after it runs a certain command. I already know start /min and tricks to START the window minimized but what about while it's running a loop or timeout? Let's say: echo Hello! timeout /t 100 :COMMAND TO MINIMIZE WINDOW WHILE TIMEOUT IS RUNNING Right now i'm calling an autoit script in the bat file to hide the window while the command is running with : WinSetState($application_name, "", @SW_HIDE) but i'm looking for a pure batch

custom round skin gui

我的梦境 提交于 2019-12-17 20:42:48
问题 In looking for a starting place to how to create a round interface. I have tried looking into the docs and tried looking into other plugins for Eclipse. I'm just starting to build gui's with java and everything I find is either asking for me to be a part of a company to use their product or want a few hundred dollars. I'm just a humble coder trying my hand at gui's and a personal project I'm working on wants a round gui skin. 回答1: There are, at least, two ways you might achieve this... You

Bring to forward window when minimized

风格不统一 提交于 2019-12-17 20:35:51
问题 I want to know how to bring forward a particular window. SetForegroundWindow works when the window is not minimized!! but when a minimize the window, SetForegroundWindow doesn't work... this my code: int IdRemoto = int.Parse(textBoxID.Text); Process[] processlist = Process.GetProcessesByName("AA_v3.3"); foreach (Process process in processlist) { if (!String.IsNullOrEmpty(process.MainWindowTitle)) { if (IdRemoto.ToString() == process.MainWindowTitle) SetForegroundWindow(process

Printing of WPF Window on one page

▼魔方 西西 提交于 2019-12-17 19:44:59
问题 I am able to print the current Window using the following code: PrintDialog printDialog = new PrintDialog(); if (printDialog.ShowDialog().GetValueOrDefault(false)) { printDialog.PrintVisual(this, this.Title); } However if the Window does not fit the page it get truncated. How do I make the Window fit the Page ? I guess I need to make a graphics element first and check if this graphics fits the page, but I have found nothing so far. 回答1: There is one solution out there that lots of people are

Jquery $(window).height() function does not return actual window height

匆匆过客 提交于 2019-12-17 18:52:20
问题 I have a page that I need to dynamically load ajax content when the user scrolls to the bottom. The problem is that JQuery is not returning the correct window height. I have used this function before and have never seen it fail, but for some reason it will return the same value as the document height. I have the test page here: bangstyle.com/test-images I have coded the alert to display at page load, and also whenever the user scrolls 500px below the top: function scroller() { if($(window)

How to Get a Window or Fullscreen Screenshot in Python 3k? (without PIL)

浪尽此生 提交于 2019-12-17 17:52:29
问题 With python 3, I'd like to get a handle to another window (not part of my application) such that I can either: a) directly capture that window as a screenshot or b) determine its position and size and capture it some other way In case it is important, I am using Windows XP (edit: works in Windows 7 also). I found this solution, but it is not quite what I need since it is full screen and more importantly, PIL to the best of my knowledge does not support 3.x yet. 回答1: Here's how you can do it

Qt 4: Move window without title bar

坚强是说给别人听的谎言 提交于 2019-12-17 16:23:18
问题 I have a Qt::Popup flagged window (which does not have a title bar and close etc buttons) and would like to move by dragging\clicking on the non-title bar area.... On Win32, the solution could be WM_NCLBUTTONDOWN but my requirement is crossplatform. 回答1: Try this to move the window manually: void PopupWindow::mousePressEvent(QMouseEvent *event){ mpos = event->pos(); } void PopupWindow::mouseMoveEvent(QMouseEvent *event){ if (event->buttons() & Qt::LeftButton) { QPoint diff = event->pos() -

How to open a new window on a browser using Selenium WebDriver for python?

孤者浪人 提交于 2019-12-17 16:13:36
问题 I am attempting to open a new tab OR a new window in a browser using selenium for python. It is of little importance if a new tab or new window is opened, it is only important that a second instance of the browser is opened. I have tried several different methods already and none have succeeded. Switching to a window that does not exist with hopes that it would then open a new window upon failure to locate said window: driver.switch_to_window(None) Iterating through open windows (although

How do I find position of a Win32 control/window relative to its parent window?

别来无恙 提交于 2019-12-17 16:03:40
问题 Given handle of a Win32 window, I need to find position of it relative to its parent window. I know several functions (e.g.; GetWindowRect() and GetClientRect()), but none of them explicitly return the desired coordinates. How do I do this? 回答1: The solution is using the combined power of GetWindowRect() and MapWindowPoints(). GetWindowRect() retrieves the coordinates of a window relative to the entire screen area you see on your monitor. We need to convert these absolute coordinates into

What is the correct way to dispose of a WPF window?

巧了我就是萌 提交于 2019-12-17 15:59:22
问题 I have a WPF window which I am creating from another window by calling Show() , then letting it Close() itself. When the window closes, I expect it to die, call its destructor, and delete all its child elements (such as timers..). What is the correct way of invoking such an action? 回答1: Close() releases all unmanaged resources, and closes all owned Window s. Any other managed resources you need deterministic disposal of should be handled from the Closed event. Reference (note: deleted