Changeset 38
- Timestamp:
- Mar 14, 2018, 8:51:47 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/gotcha.cpp ¶
r36 r38 34 34 PFNWP OldFrameWP, wpOldButton; 35 35 PSETTINGS pset; 36 BOOL g_f Quiet = FALSE, g_fIdle = FALSE, g_fSetPathName = FALSE;36 BOOL g_fIdle = FALSE, g_fSetPathName = FALSE; 37 37 HWND g_hwndMenuSSW; 38 38 HMODULE g_hmod = NULLHANDLE; … … 52 52 for (USHORT i = 1; i < argc; i++) 53 53 { 54 // quiet orbatch mode55 if ((stricmp (argv[i], "- q") == 0) || (stricmp (argv[i], "-a") == 0))54 // batch mode 55 if ((stricmp (argv[i], "-a") == 0)) 56 56 { 57 57 if (pset->QuerySaveStyle () != FSS_FORCEFILE) 58 58 pset->SetFileSaveStyle (FSS_NUMFILES); 59 60 if (stricmp (argv[i], "-q") == 0)61 {62 pset->SerialCapture (FALSE);63 g_fQuiet = TRUE;64 }65 else66 59 fAuto = TRUE; 67 60 … … 72 65 pset->SetFileSaveStyle (FSS_NUMFILES); 73 66 pset->SetNumSaveDir (argv[i]); 74 g_fSetPathName = TRUE;75 67 } 76 68 } … … 117 109 if ((Version() < 1)) 118 110 { 119 DisplayError("GOTCHDLL.DLL TO OLD",111 DisplayError("GOTCHDLL.DLL TOO OLD", 120 112 "The file gotchdll.dll is to old for this version of " 121 113 "Gotcha! Quiet As you should have received a sufficiently " … … 162 154 CaptureWindow (HWND_DESKTOP, HWND_DESKTOP, NULL, TRUE); 163 155 pset->SetFileSaveStyle(pset->saveStyle); 156 pset->SetNumSaveDir (pset->pNumSaveDir); 164 157 delete pset; 165 158 WinDestroyMsgQueue (hmq); … … 182 175 SWP_SHOW | SWP_MOVE); 183 176 184 // init the quiet mode 185 //if (g_fQuiet) 186 //{ 177 187 178 #ifdef _QUIET_ 188 //#if 1189 DebugHereIAm();190 179 InitDLL (hab, hwndFrame); 191 180 StartInputHook (); 192 181 #endif 193 194 //CHAR ach[61];195 //WinQueryWindowText (hwndFrame, sizeof (ach), ach);196 //strcat (ach, RSTR (IDS_QUIETMODE));197 //WinSetWindowText (hwndFrame, ach);198 //WinSetWindowPos (hwndFrame, NULLHANDLE, 0,0, 0,0, SWP_MINIMIZE);199 //HSWITCH hswitch = WinQuerySwitchHandle(hwndFrame, 0);200 //WinRemoveSwitchEntry(hswitch);201 //}202 182 203 183 // position snapshot window … … 226 206 227 207 // Set priorty to unless user set regular since running -q sets it to idle in the ini 228 if (g_fIdle || g_fQuiet) {208 if (g_fIdle) { 229 209 pset->SetFlag (SEI_IDLEPRIORITY, pset->idleSetInIni); 230 if (g_fQuiet) {231 pset->SetFileSaveStyle (pset->saveStyle); // changed with -q232 pset->SerialCapture (pset->bSerialCapture); // changed with -q233 }234 210 } 235 211 // Don't change the ini stored paths if the paths were set from the command line … … 252 228 253 229 #ifdef _QUIET_ 254 //#if 1255 230 if (fPrtScr || !rc) { 256 231 PrfWriteProfileData(HINI_USERPROFILE, "PM_ControlPanel", "PrintScreen", 257 232 &fPrtScr, sizeof(bool)); 258 233 } 259 //if (g_fQuiet) 260 StopInputHook (); 234 StopInputHook (); 261 235 #endif 262 236 … … 290 264 } 291 265 266 // saymsg2 was adapted from code in FM/2 292 267 APIRET saymsg2(int DefaultButton, HWND hwnd, PCSZ pszTitle, PCSZ pszFmt, ...) 293 268 {
Note:
See TracChangeset
for help on using the changeset viewer.