mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-10 13:29:56 +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:
parent
3f8691cae4
commit
5fec1609e6
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user