Mmmm, not 100% sure what you mean but I'll take a stab here. If you want a script to run every time Konsole then if it were me, I'd put it in my ~/.$SHELLrc file. For most standard installs it'd be ~/.bashrc so try there.
Second, that GUI thing you're talking about. Sounds to me like Xdialog which is nice enough but if it's for your own personal use then go Kdialog, then all the widgets will look native
Xdialog would be installed on more distros by default though so if you're planning on sharing your script then use Xdialog. If you want you could even be tricky and test to see if Kdialog is installed, if it is use that else use Xdialog. They're made to be compatible so it shouldn't be too hard.