mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-23 02:14:55 -05:00
Layout changes to make controlling the checkboxes less confusing. Added variable support for the winddow title selection. Previously window title matching was mandatory, which is now optional. This would make it difficult to set up condition which are independent of the window title. For example, a condition wich triggers on focus window change. Add support for configuring the regex options used for the window title options. Also adds the option to check the content displayed in a given window using the Windows API as an alternative to the OCR of the video condition.
32 lines
1.0 KiB
C++
32 lines
1.0 KiB
C++
#pragma once
|
|
#include <vector>
|
|
#include <string>
|
|
#include <QStringList>
|
|
#include <chrono>
|
|
#include <optional>
|
|
|
|
namespace advss {
|
|
|
|
enum class HotkeyType;
|
|
|
|
// TODO: Implement for MacOS and Linux
|
|
extern std::chrono::high_resolution_clock::time_point lastMouseLeftClickTime;
|
|
extern std::chrono::high_resolution_clock::time_point lastMouseMiddleClickTime;
|
|
extern std::chrono::high_resolution_clock::time_point lastMouseRightClickTime;
|
|
|
|
void GetWindowList(std::vector<std::string> &windows);
|
|
void GetWindowList(QStringList &windows);
|
|
void GetCurrentWindowTitle(std::string &title);
|
|
bool IsFullscreen(const std::string &title);
|
|
bool IsMaximized(const std::string &title);
|
|
std::optional<std::string> GetTextInWindow(const std::string &window);
|
|
int SecondsSinceLastInput();
|
|
void GetProcessList(QStringList &processes);
|
|
void GetForegroundProcessName(std::string &name);
|
|
bool IsInFocus(const QString &executable);
|
|
void PressKeys(const std::vector<HotkeyType> keys, int duration);
|
|
void PlatformInit();
|
|
void PlatformCleanup();
|
|
|
|
} // namespace advss
|