Monthly Archives: February 2013

Sending a key to a window that’s not in focus (C program)

In a previous post, I showed how a C program can simulate a keystroke in Windows using SendInput. I also posted a subsequent example showing how to simulate a keypress with the Control key included (e.g. Ctrl+V). In this post … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , , , , , , , , | 10 Comments

Writing bytes to a serial port in C

This is a (relatively) simple example of a C program to send five bytes to a serial port in Windows. In this case, I’m sending the five characters “hello” via COM22 at 38400 baud, but of course the program can … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , | 36 Comments

Simple command line trick for sending characters to a serial port in Windows

I often need to send short character strings to a serial port in Windows. The sort of thing I might use this for is sending a command to a robot or other microcontroller-based device that I’m building using a USB-to-serial … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , , , , , | 61 Comments

Another Julia Set animation

Click this image to view the Julia Set animation (the gif file is about 5.3MB in size, so I didn’t want to embed it here directly): This is the Python code I used to generate the 200 individual frames in … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , | 2 Comments

Creating Julia Set images in Python

Today, I’ve been experimenting with creating Julia Set images in Python. Each of the four images above shows the same square region of the complex plane; between -2 and +2 on the real axis and between -2j and +2j on … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , | 18 Comments