in reply to Sample of Win32::GuiTest needed for this

Hi,

Firstly please read the Writeup Formatting Tips, as it stands your post required formatting to avoid confusion.
Secondly Win32::GuiTest looks promising for controlling this SGH.exe app, which you say does not have a CLI.
Win32::GuiTest looks like it will provide you with an interface to moving/clicking the mouse and sending key strokes to the app.

"If someone has already done something similar or has a way to do it , let me know. "

Have you searched Cpan or done a Super Search?

"As SGH.exe does not have a command line interface , I need to use TK for this."

How will TK give you a command line interface?

Hope this helps.

Martin