diff --git a/AppleWin/source/Applewin.cpp b/AppleWin/source/Applewin.cpp index 0fd0f73e..9d0895aa 100644 --- a/AppleWin/source/Applewin.cpp +++ b/AppleWin/source/Applewin.cpp @@ -677,7 +677,7 @@ void AppleWin_RegisterHotKeys(void) VK_SNAPSHOT // UINT vk = PrintScreen ); - if (! bStatus) + if (!bStatus && g_bShowPrintScreenWarningDialog) { 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; } + 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) { lpCmdLine = GetCurrArg(lpNextArg); diff --git a/AppleWin/source/Video.cpp b/AppleWin/source/Video.cpp index 83e52f18..ed527170 100644 --- a/AppleWin/source/Video.cpp +++ b/AppleWin/source/Video.cpp @@ -362,6 +362,7 @@ static bool bVideoScannerNTSC = true; // NTSC video scanning (or PAL) void V_CreateLookup_MonoHiRes_Colorize (); bool g_bDisplayPrintScreenFileName = false; + bool g_bShowPrintScreenWarningDialog = true; void Util_MakeScreenShotFileName( char *pFinalFileName_ ); bool Util_TestScreenShotFileName( const char *pFileName ); // true = 280x192 diff --git a/AppleWin/source/Video.h b/AppleWin/source/Video.h index 2d197e35..9784d09b 100644 --- a/AppleWin/source/Video.h +++ b/AppleWin/source/Video.h @@ -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); extern bool g_bDisplayPrintScreenFileName; +extern bool g_bShowPrintScreenWarningDialog; + void Video_ResetScreenshotCounter( char *pDiskImageFileName ); enum VideoScreenShot_e {