InTouch Application Script Query

jaichains

Member
Join Date
Jul 2005
Location
Rotherham
Posts
46
Hi

I am running an Intouch Application script to display a pop-up window when a bit (x14)is true. This script runs every second.

When the bit (x14) is true, the pop up window appears (which it should). I have a close pop-up button in the pop up which closes the pop up window.

The problem is as soon as I press the close pop-up button, the pop-up window closes but the script runs again and displays the pop up again.

I am looking for something which dispalys the pop up once only when the bit (x14) is true and not while true. Please help. Thx.
 
Use a condition script, (type = on true) to call your pop-up window
 
what is stopping you having a separate condition script just to call the pop-up?
 
One shot the window showing:

if (bitx14 == 1) and (window_has_been_shown == 0) then
showwindow bit14window
window_has_been_shown = 1
endif

if bitx14 == 0 then
window_has_been_shown = 0
endif
 
I would use a condition script to show the window (ON TRUE) as well. But I like the way theDave2 does it. If you don't want to use a condition script you could put Daves script in the Application Script or even the Quick Function you are already using.

That's the thing about programming there are so many ways to do things that half the time you stumble on the good ones by accident and form your own standards.
 
You can use a condition script (ON TRUE) to call the Quickscript you have already created.
 

Similar Topics

Can someone give a clear explanation of the IOSetAccessName for an Intouch Application Script? - Thanking everyone in advance. The setup is 1 No...
Replies
0
Views
1,134
Hello Everyone, I am facing a peculiar problem with intouch...The problem is PLC Fault alarm comes and communication losts between intouch and...
Replies
23
Views
12,215
Good morning to all, I have the following issue, I installed everything of intouch including the patch, it is the 2023 version. The...
Replies
0
Views
284
I restore a galaxy in another machine via the cab backup, but when I deploy the project in the new station it seems that the text object and some...
Replies
2
Views
956
Hello, M using intouch 11.0 with AB, M new to intouch. I have read some pdf regarding uploading downloading editing of in touch application...
Replies
0
Views
1,512
Back
Top Bottom