Skip to content

Instantly share code, notes, and snippets.

#NoTrayIcon
#Persistent
DefaultBusyTime := 1000
SetSystemCursor("IDC_WAIT")
If %0% > 1
SetTimer,RestoreSystemCursor,-%1%
Else
SetTimer,RestoreSystemCursor,-%DefaultBusyTime%
Return
@aboveaboutbelow
aboveaboutbelow / MultiIndexedListBox.cs
Created September 8, 2017 23:50
WPF ListBox with SelectedIndices property
using System.Collections.Specialized;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
public class MultiIndexedListBox : ListBox
{
public IList<int> SelectedIndices { get; private set; }