Alias Snippets

This Applescript take the selected file in Finder and open it with Sublime Text 2 (~/bin/subl). Using Alfred you can bind a global hotkey for this script, so you can edit your files with just a keypress, without worrying about the default editor.

09 February, 2012   

Syntax for both the column and table aliases

The following code snippet shows how to execute standard Control Panel applets (Display Properties, Reginal Settings, Mouse Properties, and more) from Visual Basic code.

22 October, 2012   

The following code snippet shows you how to create an alternative DoEvents function by using Win32 API calls. Be aware that accelerator keys won't work properly with this alternative function.

'The following code snippet displays the "Shut Down Windows" dialog. 'Is uses undocumented API function in shell32.dll

10 November, 2012   

Visual Basic code example for creating a Global Hotkey (active throughout Windows)

Visual Basic Source Code to Get Active window caption and work on active window. Author: Kailash Chandra Vaishnav

The following code snippet shows how to draw a rotated text on a form.

12 July, 2014   

This block finds all employees whose monthly wages (salary plus commission) are higher than $2000.

Many applications, such as CuteFTP and Outlook Express, allows you to enter a password and use it when it is needed. However, if you forget your password, you cannot see it, because it's hidden behind asterisks ('****') characters. The following code snippet scans all windows on the screen and reveals the passwords behind the asterisks...

26 November, 2011   

In jQuery $ is an alias for jQuery, so you can use jQuery() for accessing the jQuery methods. The following code example shows how you can use other libraries with jQuery:

In some circumstances, you use the CreateObject function to create an object from an ActiveX class. The CreateObject function receives the class name as argument, and creates the object for you. In order to create the object, it loads and uses the right library or executable file that contains the interface for that object. For Example: set...

24 May, 2015   

Shows how to access the navigator.* variables.

16 January, 2013   

Example for adding items into combo by using Win32 API. Written by Nir Sofer

The following code snippet shows you how to open special Explorer windows, like My Computer, Control Panel, Printers, Fonts and more... Written by Nir Sofer