Windows Apis Snippets


Delphi snippet details dynamically calling windows apis with encryption.

23 January, 2013   

Adjusted for daylight saving or standard time as appropriate.

It's an unfortunate necessity that you need to write different code for windows sometimes or at the very least load different libraries since there is no fork(), etc. This is how you can tell.

Shows how to focus a control in a Windows Form. If you are working with Web forms it is very simple, you just use "WebControl.Focus()" but this does not work for Windows Forms.

06 July, 2013   

Draws angled text on a canvas at position X,Y.

03 January, 2013   

Choose a color scheme as found in the Display control panel applet

Here's how to invoke a click on a Windows Start button from code.

19 June, 2012   

Adjusts the brightness of a color by a specified amount in range -255..255.

10 December, 2013   

VB.Net code for Fullscreen

13 December, 2011   

You can use to find and replace text in a variable. This script created by Bruce Phillips, one of the leading posters at MacScripter.

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

This tip shows how to extract the associated icon and draw it into a small area of the form (e.g. Notepad icon)

01 June, 2013   

How to Embed code for Windows Media

Delphi code example for Hide minimized MDI child windows

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 December, 2012   

This cron will do the same on Windows as session management works on Linux

20 August, 2015   

Basic setup code for jQuery, linking to Google APIs for the jQuery library.

24 November, 2012   

Color header for Windows that integrates with count source code

01 March, 2011   

Mouse Move Paint . A simple program for drawing using mouse move event in vb.net 2005 version... This code is compatible with : VB 2005, VB 2008, VB 2010 Steps For Creation:- --------------------------- 1. Change the background color of the form1 as white. 2. Then, double click the form and change the event as mouse move click event. 3. Now,...

01 August, 2013   

Example Java code for Fast File Copy using NIO