Copyright © 2010-2019 Ted Burke, All Rights Reserved.
Blog Stats
- 1,434,269 hits
- My Tweets
-
Recent Posts
- Moving statue of David Foster Wallace
- TU Dubuntu 19.10 – a customised live USB version of Xubuntu Linux 19.10 for TU Dublin
- Using Canon EOS 70D DSLR as a USB web cam in Xubuntu Linux 19.04
- TU Dubuntu – a customised live USB version of Xubuntu Linux 19.04 for TU Dublin
- Using the PHP command line web server to transfer files between devices on a local network
- €5 PPG – photoplethysmogram amplifier / Arduino circuit
- Clap detector circuit / AirSpell typing system
- AirMouse – control mouse pointer in Linux using one switch or by blowing on microphone
- Some RGB fractal doodles
- How to display USB webcam as live video on desktop using mplayer
- Ronan Byrne’s ultra low-cost brain-computer interface
- H-bridge control example for Arduino Nano (ATmega328) – two phase-displaced square waves
- An offcut from the Fraktalismus pattern factory
- Cafe Terrace at Starry Night
- €2 Robots in DIT
- A brief introduction to binary numbers…
- Can the PIC12F675 drive motors directly from its GPIO pins?
- Minimum Viable Program for PIC12LF1572
- dsPIC30F Quadrature Encoder Interface (QEI) – Basic Example
- Simple example program for the PIC12F675 microcontroller
- A simple way to read and write audio and video files in C using FFmpeg (part 2: video)
- A simple way to read and write audio and video files in C using FFmpeg (part 1: audio)
- Fraktalismus Outtakes: Sea Monsters
- Fraktalismus – my presentation at Dublin Maker 2016
- Example code from presentation: Ways of Seeing Julia Sets
- C or Python? Comparison of execution time for Mandelbrot image generation
- Julia Set Explorer
- (no title)
- What I’m working on right now…
- Simple 2-channel hardware PWM example for the MSP430G2452 microcontroller
- RoboSlam @ Dublin Maker – only two days away!
- Generating antiphase PWM signals with the dsPIC30F4011
- Very simple Python / Tkinter GUI to send selected keystrokes via serial port
- Using a dsPIC30F4011 to generating 4 PWM signals with equal duty cycles but at 90 degree phase increments
- Faster Mandelbrot image generation using numpy in Python
- Fractal variations using Python
- Using SendInput to type unicode characters
- Three PWM outputs with three different frequencies using the dsPIC30F4011 microcontroller
- 8-channel PWM with the MSP430G2553
- Simple Phaser Framework example – Flappy Words
- Installing Microchip XC16 in CrunchBang Linux
- Low-cost motor control by displaying coloured shapes on a phone or PC screen
- Phasor diagrams in GNU Octave
- 2D Room Mapping With a Laser and a Webcam
- Motion Tracking on the Cheap with a PIC
- Big Foot Magic Hands
- Keyboard shortcut to simulate a mouse right-click in CrunchBang Linux
- Real-time analysis of data from BioSemi ActiveTwo via TCP/IP using Python
- Programming the PIC16F819 on an LCD03 adapter using a PICkit 2
- Simple communication with a TCP/IP device using Python
Recent Comments
Maram Alanhhas on Clap detector circuit / AirSpe… Orit Malki on A simple way to read and write… Orit Malki on A simple way to read and write… Tim-Felix on Running CommandCam from Excel… Benjah on Simple command line trick for… Archives
- November 2019 (2)
- July 2019 (1)
- June 2019 (1)
- May 2019 (1)
- April 2019 (3)
- January 2019 (1)
- September 2018 (1)
- May 2018 (1)
- April 2018 (1)
- February 2018 (1)
- January 2018 (1)
- May 2017 (1)
- April 2017 (4)
- February 2017 (3)
- August 2016 (1)
- July 2016 (1)
- February 2016 (2)
- January 2016 (3)
- November 2015 (1)
- July 2015 (1)
- April 2015 (1)
- March 2015 (2)
- November 2014 (1)
- October 2014 (2)
- September 2014 (1)
- April 2014 (1)
- March 2014 (2)
- February 2014 (4)
- January 2014 (5)
- December 2013 (2)
- November 2013 (3)
- October 2013 (1)
- September 2013 (1)
- June 2013 (2)
- May 2013 (1)
- April 2013 (4)
- March 2013 (4)
- February 2013 (5)
- January 2013 (5)
- December 2012 (6)
- November 2012 (7)
- October 2012 (7)
- September 2012 (2)
- August 2012 (8)
- July 2012 (1)
- June 2012 (2)
- May 2012 (4)
- April 2012 (7)
- February 2012 (5)
- January 2012 (1)
- December 2011 (2)
- November 2011 (11)
- October 2011 (3)
- August 2011 (1)
- July 2011 (1)
- May 2011 (1)
- April 2011 (4)
- December 2010 (4)
- November 2010 (2)
Tag Archives: MinGW
Using SendInput to type unicode characters
I received a query from reader Partha D about generating unicode keystrokes using the SendInput function in Windows. As I understand it, Partha wants to generate one or more unicode keystrokes when a particular keyboard shortcut is pressed. The following … Continue reading
Posted in Uncategorized
Tagged basic, C, character, dwFlags, example, gcc, INPUT, INPUT_KEYBOARD, keyboard event, keystroke, MinGW, SendInput, simple, simulate, unicode, wScan, wVk
2 Comments
Creating a shadow template of a PGM image
I’ve just been cleaning up a scanned copy of a line drawing on paper. The background of the scanned image is quite dark and the shadowing is a bit uneven over the full image region, which makes it difficult to … Continue reading
Posted in Uncategorized
Tagged background, C, fclose, fopen, fprintf, fscanf, gcc, greyscale, image processing, MinGW, PGM, plain text, shadow
1 Comment
Simulating a Ctrl-V keystroke in Win32 (C or C++) using SendInput
This short example program simulates pressing Ctrl-V on the keyboard (the Windows shortcut for “Paste”) once every second. It’s a modified version of an earlier example I posted on keystroke simulation using the Win32 SendInput function. What’s different this time … Continue reading
How a console application can set the size of its window
This is an example of a Win32 console application that sets the size of the window it’s running in. When you run it, it sets the size of the console window to 640 x 400 pixels. It actually seems to … Continue reading
Posted in Uncategorized
Tagged console, gcc, GetConsoleWindow, MinGW, move, MoveWindow, resize, Win32, window
2 Comments
Simulating a keystroke in Win32 (C or C++) using SendInput
This program is a simple example of using the Win32 SendInput function to generate a simulated keystroke. When you run this program, it simply waits 5 seconds and then simulates a press and release of the “A” key on the … Continue reading
Posted in Uncategorized
Tagged gcc, keybd_event, keystroke, MinGW, SendInput, simulating, Win32
79 Comments
SerialSend – a Windows program to send a short text string via serial port
NOTE (18-12-2012): Since posting this, I have updated SerialSend to add some additional useful features and make more robust. The updated version is available from the SerialSend page. When I’m building robots, I sometimes find it useful to send short … Continue reading
Posted in Uncategorized
Tagged baud rate, cl, COMMTIMEOUTS, CreateFile, DCB, g++, gcc, MinGW, serial port, Win32, Windows, WriteFile
29 Comments
Writing Bitmap Files in Windows
This is a bitmap file writing example. I compiled it with MinGW (gcc). It generates the following image and saves it as a bitmap file called “image.bmp”. Here’s the source code:
Posted in Uncategorized
Tagged bitmap, BITMAPFILEHEADER, BITMAPINFOHEADER, bmp, C, gcc, MinGW
Leave a comment