window

Use of undefined constant SIGTERM - > assumed 'SIGTERM'

拜拜、爱过 提交于 2019-12-20 02:42:20
问题 Currently running PHPUnit with Codeception on my Windows machine gives me an error: [PHPUnit_Framework_Exception] Use of undefined constant SIGTERM - assumed 'SIGTERM' As far as I know is that SIGTERM is a constant provided by PCNTL, which is not supported in Windows. In that way this CONSTANT shouldnt be used for a test running on Windows env. at all. My PHP setup: PHP 5.6.17 (cli) (built: Jan 6 2016 13:28:38) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015

Can Java display a dialog without changing the active window?

爷,独闯天下 提交于 2019-12-20 02:24:07
问题 I'd like to display a modal (progress) dialog above a Frame , even if that Frame isn't the active window. However, displaying a dialog causes it or its owner to become the active window. Is there a way to display a dialog without it or its owner becoming the active window -- specifically, on a Windows platform? The reason I'd like to do this is: periodically my Frame refreshes itself and displays its modal progress dialog while refreshing. Right now my application only refreshes while it's

C# print screen active window

萝らか妹 提交于 2019-12-19 10:33:25
问题 I am currently trying to print screen an active window using Visual C#. I have this code: SaveFileDialog saveImageDialog = new SaveFileDialog(); saveImageDialog.Title = "Select output file:"; saveImageDialog.Filter = "JPeg Image|*.jpg|Bitmap Image|*.bmp|Gif Image|*.gif"; //saveImageDialog.FileName = printFileName; if (saveImageDialog.ShowDialog() == DialogResult.OK) { // Set the bitmap object to the size of the screen bmpScreenshot = new Bitmap(this.Bounds.Width, this.Bounds.Height,

How to test if STDIN is terminal in batch?

不问归期 提交于 2019-12-19 09:14:10
问题 In shell I can do this: if test -t 0 ; then echo stdin is a tty exit 0 fi How can I do this in batch? 回答1: EDITED - Thank you to all the testers. @echo off timeout 1 2>nul >nul if errorlevel 1 ( echo input redirected ) else ( echo input is console ) The timeout command tries to directly get access to the console, and this will fail if the batch file is executed as myBatchFile.cmd < input.txt echo something | myBatchFile.cmd Tested on Windows XP (timeout from W2003 Resource Kit), 7 and 8.1. 来源

How to get current URL for chrome current version

牧云@^-^@ 提交于 2019-12-19 04:55:53
问题 I want get the current URL of chrome current version. so, I tried using this way. (http://www.codeproject.com/Questions/648906/how-to-get-current-URL-for-chrome-ver-29) This method works now. But, Possible only when the tab is clicked. I want get the chrome URL that click anywhere. It is possible?. thanks. 回答1: This is an old issue, but it's asked often around here so I'll offer my solution. The problem with the link you provided is that EVENT_OBJECT_VALUECHANGE is not the only event you

How can I get properties of controls contained in a popup message box using VB.Net

孤街浪徒 提交于 2019-12-19 04:55:31
问题 I'm working on a VB.Net project where in part of it I catch a pop up message box when it's displayed and handle it in some way. My problem is that I have to know what buttons are included in this pop up window (their captions mainly). Is this possible? Can someone please tell me how this can be done? A sample would be much appreciated. Thanks. Update: Since I got a down vote, and Ed Cottrell told me that this is because of not adding any code related to my question. Now I have the answer to

Programmatically send key strokes to a window program in Groovy or bat script

*爱你&永不变心* 提交于 2019-12-19 04:55:24
问题 Backstory: I need to programmatically find the differences between two files. I want to use WinMerge to generate a report (Tools -> Generate Report) that I can parse to get the differences between two files. I need this done using either a Groovy script or a bat script. I was hoping that WinMerge would offer command line options to generate the report and then I could just use a Groovy Process object to execute WinMergeU.exe with the arguments. No such luck according to the command options I

Java JNA focus a specific Window

一世执手 提交于 2019-12-19 04:52:28
问题 I am trying to give my application the power to focus another Window (Notepad in this case) My Class is looking like this public static class Win32WindowUtils { public interface User32 extends StdCallLibrary { User32 INSTANCE = (User32) Native.loadLibrary("user32", User32.class, W32APIOptions.DEFAULT_OPTIONS); HWND GetParent(HWND hWnd); HWND FindWindow(String lpClassName, String lpWindowName); HWND SetFocus(HWND hWnd); HWND FindWindowEx(HWND hwndParent, HWND hwndChildAfter, String lpszClass,

Electron : Create a window above all the others (even fullscreen) and hide taskbar

被刻印的时光 ゝ 提交于 2019-12-19 04:45:14
问题 As the title of my question may be sufficiently understandable, I'll explain anyway. I'm working on a personal project with Electron, and I'm facing a frustrating issue which is : I'd like to create a small window (50x50 px) which would be above every other window, even when those are fullscreen. I mean, even if I'm on Youtube with Chrome and I enter fullscreen, my window would stay on top of it. Basically, I've succeeded in making my window above all the others, a simple setAlwaysOnTop(true)

How do I get the size of a pygtk window?

杀马特。学长 韩版系。学妹 提交于 2019-12-19 04:08:19
问题 I'm trying to use gtk.window.get_size(), but it always just returns the default width and height. The documentation says The get_size() method returns a tuple containing the current width and height of the window. If the window is not on-screen, it returns the size PyGTK will suggest to the window manager for the initial window size. The size obtained by the get_size() method is the last size received in a configure event, that is, PyGTK uses its locally-stored size, rather than querying the