Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GotFocus Event for Procomm

Status
Not open for further replies.

GOLDENSGC

MIS
Sep 14, 2005
2
US
I would say I'm a novice, but I don't want to overstate my credentials.
I want to run a very small sendkey script (checking for capslock & turning it on/off) when a procomm window is the top window. I've looked for a gotfocus type event to no avail.
Any help would be greatly appreciated.
Thanks,
George
 
Hi George, you can check if Procomm is the current window by seeing if the system variable $FOCUSWIN is the same as the Procomm window ID, like this:

if $FOCUSWIN == $PWMAINWIN



 
Thanks for your response, Knob.
I essentially want this script to be running anytime Procomm is opened. Is it a problem to have a continually looping state checking script?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top