#ifndef MONITOR_INFO_H
#define MONITOR_INFO_H
#include <Windows.h>
#include
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef DELAY_H | |
#define DELAY_H | |
#include <chrono> | |
#include <thread> | |
class Delay | |
{ | |
private: | |
Delay(){}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading.Tasks; | |
namespace CountdownTimer | |
{ | |
class Program | |
{ | |
public static async Task Main( string[] args ) | |
{ | |
int delay = 500; // Default delay |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Windows.h> | |
// == MOUSE ACTIONS == | |
// Uses absolute coords where the primary display starts at 0,0 | |
// That works well with enumerated monitors structures and their reported coords. | |
#define SET_MOUSE_MOVE mip.mi.dwFlags = MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_MOVE; | |
#define SET_MOUSE_RCLICK_HOLD mip.mi.dwFlags = MOUSEEVENTF_RIGHTDOWN; | |
#define SET_MOUSE_RCLICK_RELEASE mip.mi.dwFlags = MOUSEEVENTF_RIGHTUP; | |
#define SET_MOUSE_LCLICK_HOLD mip.mi.dwFlags = MOUSEEVENTF_LEFTDOWN; | |
#define SET_MOUSE_LCLICK_RELEASE mip.mi.dwFlags = MOUSEEVENTF_LEFTUP; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <QCoreApplication> | |
#include <QDebug> | |
#include <QFile> | |
int main(int argc, char *argv[]) | |
{ | |
QCoreApplication a(argc, argv); | |
qDebug() << "Folder is detected as file?" << QFile::exists("C:/config.folder"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <QGuiApplication> | |
#include <QScreen> | |
#include <Qpixmap> | |
#include <QDebug> | |
int main(int argc, char *argv[]) | |
{ | |
QGuiApplication a(argc, argv); | |
QList<QScreen *> screens = QGuiApplication::screens(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Screen 0 : | |
height: 1080 | |
width: 1920 | |
rect: QRect(0,0 1920x1080) | |
size: QSize(1920, 1080) | |
cacheKey: 4294968376 | |
depth: 32 | |
isQBitmap: false | |
isNull: false | |
defaultDepth: 32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Screen 0 : | |
height: 1080 | |
width: 1920 | |
rect: QRect(0,0 1920x1080) | |
size: QSize(1920, 1080) | |
cacheKey: 4294968376 | |
depth: 32 | |
isQBitmap: false | |
isNull: false | |
defaultDepth: 32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <QGuiApplication> | |
#include <QScreen> | |
#include <Qpixmap> | |
#include <QDebug> | |
int main(int argc, char *argv[]) | |
{ | |
QGuiApplication a(argc, argv); | |
QList<QScreen *> screens = QGuiApplication::screens(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== Verbose logging started: 10/2/2017 15:18:47 Build type: SHIP UNICODE 5.00.10011.00 Calling process: C:\windows\system32\msiexec.exe === | |
MSI (c) (E0:7C) [15:18:47:227]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg | |
MSI (c) (E0:7C) [15:18:47:227]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg | |
MSI (c) (E0:04) [15:18:47:242]: Resetting cached policy values | |
MSI (c) (E0:04) [15:18:47:242]: Machine policy value 'Debug' is 0 | |
MSI (c) (E0:04) [15:18:47:242]: ******* RunEngine: | |
******* Product: SetupProject1.msi | |
******* Action: |