Sir i unable to attach screenshot. Actually there is main screen in which have many .gif images. On clicking any of the .Gif images a popup will be open where i have six button as
Auto, Manual,Start,Stop,Alarm Ack and Alarm Reset.
Each button has equivalent Entry as Tagname in the database table having name as Auto,Manual,Start,Stop,Alarm Ack,Alarm Reset. Now suppose When i click Auto Button then its equivalent TagName as Auto in Database table should change value from 0 to 1. And after wait for 1 second the value of that same tagname should changes from 1 to 0. Also i do not want to use sleep function.