Skip to content

Instantly share code, notes, and snippets.

@u338steven
u338steven / ContextMenuObserverUIA.cs
Created August 23, 2016 02:45
Monitoring context menu opened (UI Automation)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Drawing;
using System.Windows.Forms;
using System.Windows.Automation;
class ContextMenuObserverUIA : Form
{
[STAThread]
@u338steven
u338steven / ContextMenuObserverWin32.cs
Created August 23, 2016 02:45
Monitoring context menu opened (SetWinEventHook)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using System.Drawing;
using System.Windows.Forms;
class ContextMenuObserverWin32 : Form
import com.pokegoapi.util.PokeNames;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Locale;
import java.util.function.BiPredicate;
import java.nio.charset.Charset;
import java.nio.charset.CharsetEncoder;