mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-08-15 18:27:29 +00:00
[ Feature Request #5715 ] Added new cmd-line option -no-printscreen-dlg to suppress the warning if the PrintScreen key can't be grabbed.
This commit is contained in:
@@ -677,7 +677,7 @@ void AppleWin_RegisterHotKeys(void)
|
|||||||
VK_SNAPSHOT // UINT vk = PrintScreen
|
VK_SNAPSHOT // UINT vk = PrintScreen
|
||||||
);
|
);
|
||||||
|
|
||||||
if (! bStatus)
|
if (!bStatus && g_bShowPrintScreenWarningDialog)
|
||||||
{
|
{
|
||||||
MessageBox( g_hFrameWindow, "Unable to capture PrintScreen key", "Warning", MB_OK );
|
MessageBox( g_hFrameWindow, "Unable to capture PrintScreen key", "Warning", MB_OK );
|
||||||
}
|
}
|
||||||
@@ -827,6 +827,10 @@ int APIENTRY WinMain(HINSTANCE passinstance, HINSTANCE, LPSTR lpCmdLine, int)
|
|||||||
{
|
{
|
||||||
g_bDisplayPrintScreenFileName = true;
|
g_bDisplayPrintScreenFileName = true;
|
||||||
}
|
}
|
||||||
|
else if (strcmp(lpCmdLine, "-no-printscreen-dlg") == 0) // Turn off the PrintScreen warning message dialog (if PrintScreen key can't be grabbed)
|
||||||
|
{
|
||||||
|
g_bShowPrintScreenWarningDialog = false;
|
||||||
|
}
|
||||||
else if (strcmp(lpCmdLine, "-spkr-inc") == 0)
|
else if (strcmp(lpCmdLine, "-spkr-inc") == 0)
|
||||||
{
|
{
|
||||||
lpCmdLine = GetCurrArg(lpNextArg);
|
lpCmdLine = GetCurrArg(lpNextArg);
|
||||||
|
@@ -362,6 +362,7 @@ static bool bVideoScannerNTSC = true; // NTSC video scanning (or PAL)
|
|||||||
void V_CreateLookup_MonoHiRes_Colorize ();
|
void V_CreateLookup_MonoHiRes_Colorize ();
|
||||||
|
|
||||||
bool g_bDisplayPrintScreenFileName = false;
|
bool g_bDisplayPrintScreenFileName = false;
|
||||||
|
bool g_bShowPrintScreenWarningDialog = true;
|
||||||
void Util_MakeScreenShotFileName( char *pFinalFileName_ );
|
void Util_MakeScreenShotFileName( char *pFinalFileName_ );
|
||||||
bool Util_TestScreenShotFileName( const char *pFileName );
|
bool Util_TestScreenShotFileName( const char *pFileName );
|
||||||
// true = 280x192
|
// true = 280x192
|
||||||
|
@@ -123,6 +123,8 @@ bool UpdateHiResCell (int x, int y, int xpixel, int ypixel, int offset);
|
|||||||
bool UpdateDHiResCell (int x, int y, int xpixel, int ypixel, int offset);
|
bool UpdateDHiResCell (int x, int y, int xpixel, int ypixel, int offset);
|
||||||
|
|
||||||
extern bool g_bDisplayPrintScreenFileName;
|
extern bool g_bDisplayPrintScreenFileName;
|
||||||
|
extern bool g_bShowPrintScreenWarningDialog;
|
||||||
|
|
||||||
void Video_ResetScreenshotCounter( char *pDiskImageFileName );
|
void Video_ResetScreenshotCounter( char *pDiskImageFileName );
|
||||||
enum VideoScreenShot_e
|
enum VideoScreenShot_e
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user