Your halui problem may be, that you're missing a line from your config files.
You need to have "HALUI = halui" under the [HAL] section of your ini file.
If you are wanting your switch connected to parport.1.pin-10-in to run your sub program, I think I would connect it to a Halui mdi command in the [HALUI] section of the ini file.
linuxcnc.org/docs/2.6/html/config/ini_co...ml#sub:HALUI-section
In you ini
Code:
[HALUI]
MDI_COMMAND = o100 call
#if o100 is what your o sub program is called
and in you Hal post gui file
Code:
net remrun <= parport.1.pin-10-in => halui.mdi-command-00