Hi Gerhard, Tuesday, August 23, 2005, 11:07:20 AM, you wrote: > Olin Lathrop wrote: >> I admit I've never attempted to program one of these with an ICD2. I've got >> rather a large number of programmers floating around that can be made to >> program the chip automatically from a build script if I want. There is no >> reason to put up with the annoying clickety-click interface of the ICD2 for >> programming. > For the ones who are not so lucky, AutoIt3 may do the trick. This is a > scripting language that allows scripting of Windows GUI applications with > reasonable ease. With this, you can add a command line interface to most > GUI-only applications. > I just tried it (integrated Norton Ghost backups into my maintenance > script), and it's really easy to use. > Gerhard I agree. Thanks to someone here on the PIClist (perhaps it was you, Gerhard?) I started using AutoIT on my Windows machine. I wrote the following code to save the current file in my text editor and switch to MPLAB with the ICD2 and send an "Enter" to accept reloading the source code, then sending an F5 - to stop the debugger, then sending F10 to compile and run. Sometimes it appears MPLAB doesn't respond to F5. I had added code to have the computer beep if it compiles, but it didn't work every time, so I left it out of this listing. Func CompileMPLABs() Opt ("WinWaitDelay", 500) Opt ("WinTitleMatchMode", 4) Opt ("WinDetectHiddenText", 1) Opt ("MouseCoordMode", 0) Send("^s") ; Save source code Sleep(100) WinActivate("MPLAB IDE v7.10") Send("{Enter}") ; reload source code in MPLAB Sleep(500) Send("{F5}") ; ...in case the debugger is running - this doesn't always work, Sleep(500) ; as pressing F5 manually doesn't always halt the debugger. Send("{F10}") ; Compile and run. EndFunc ;==>CompileMPLABs As you can see, it doesn't take much time to write AutoIT code; the above code was assigned to a keyboard shortcut; I wrote another to stop the debugger and switch back to my editor as well. -- Best regards, Patrick Murphy James Valley Colony -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist