Posted: . At: 11:06 AM. This was 3 years ago. Post ID: 15026
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.



Sponsored



Very useful and obscure computing tips.


A disturbing amount of people do not know you can reopen your last tab in the Firefox browser with Control+Shift+T.

If you use Windows you can drag and snap windows so you can work on stuff side by side.

Apparently, pressing F5 on notepad.exe adds a timestamp to the current text file.

This is the code from Notepad that inserts the date and time into Notepad.

npdate.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/* npdate - Code for getting and inserting current date and time.
 *   Copyright (C) 1984-1995 Microsoft Inc.
 */
 
#include "precomp.h"
 
/* ** Replace current selection with date/time string.
 *    if fCrlf is true, date/time string should begin
 *    and end with crlf
*/
VOID FAR InsertDateTime (BOOL fCrlf)
{
   SYSTEMTIME time ;
   TCHAR szDate[80] ;
   TCHAR szTime[80] ;
   TCHAR szDateTime[sizeof(szDate) + sizeof(szTime) + 10] = TEXT("");
   DWORD locale;
   BOOL bMELocale;
   DWORD dwFlags = DATE_SHORTDATE;
 
   //  See if the user locale id is Arabic or Hebrew.
   locale    = GetUserDefaultLCID();
   bMELocale = ((PRIMARYLANGID(LANGIDFROMLCID(locale)) == LANG_ARABIC) ||
                (PRIMARYLANGID(LANGIDFROMLCID(locale)) == LANG_HEBREW));
 
   locale = MAKELCID( MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), SORT_DEFAULT) ;
 
   // Get the time
   GetLocalTime( &time ) ;
 
   if (bMELocale)
   {
       //Get the date format that matches the edit control reading direction.
       if (GetWindowLong(hwndEdit, GWL_EXSTYLE) & WS_EX_RTLREADING) {
           dwFlags |= DATE_RTLREADING;
           lstrcat(szDateTime, TEXT("\x200F")); // RLM
       } else {
           dwFlags |= DATE_LTRREADING;
           lstrcat(szDateTime, TEXT("\x200E")); // LRM
       }
   }
 
   // Format date and time
   GetDateFormat(locale,dwFlags, &time,NULL,szDate,CharSizeOf(szDate));
   GetTimeFormat(locale,TIME_NOSECONDS,&time,NULL,szTime,CharSizeOf(szTime));
 
   if( fCrlf )
       lstrcat(szDateTime, TEXT("\r\n"));
 
 
   lstrcat(szDateTime, szTime);
   lstrcat(szDateTime, TEXT(" "));
   lstrcat(szDateTime, szDate);
 
   if( fCrlf )
        lstrcat(szDateTime, TEXT("\r\n"));
 
   // send it in one shot; this is also useful for undo command
   // so that user can undo the date-time.
   SendMessage(hwndEdit, EM_REPLACESEL, TRUE, (LPARAM)szDateTime);
 
}

Press Shift-F10 in Windows or Linux to open a context menu on the selected item. This is the same as right-clicking on the interface item.

Use Control-Alt+Arrow keys to switch virtual desktops in the MATE desktop on Linux.

Press F2 on a selected file in the Caja file manager on Linux Mint MATE or Ubuntu and the file can be renamed.

Press Win-E on Ubuntu when using the MATE desktop to open the Caja file manager.

The Control-Shift-Esc key combination opens the task manager in the MATE desktop on Linux. This also works on Windows.

Pressing Shift-Alt-Tab allows a user to cycle through active windows in the opposite order. This works in Linux Mint MATE and Windows.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.