mortenfuglsang
Member
Hi.
I would like to do a scheduled operation in a flexible that are running on a PC.
I have a page in the project that shows a graph. The graph shows logged temperatures from the last 24 hours.
I would like to automaticly print this graph once a day at 11.59 PM.
My idea was to create a scheduled opereation that changes to the screen with that graph, and then run a script that pints the screen.
But i a not very good at making scripts, so i was hoping that you could help me making the script.
My problem is that when the screen is loaded, then there has go go some time until the screen is printet. But how can i put a timer into my script??
I have an idea of what the scrpt should do:
1) start timer
2) when timer is gone, then print screen
3) change screen to previous
I have tried to create a "timer" by creating a internal tag called "count_1" and then write:
Do
Count_1 = Count_1+1
Loop Until Count_1=30000
PrintScreen
Count_1=0
ActivatePreviousScreen
But the "count_1" gets =30000 way to fast. I need the time to be about 30 seconds, cause the trend on the page is taking some time to be loaded. And first after that i need to print screen..
Can you please help me creating a script that works, or maby tell me a better way of solving my problem - change screen at 11.59 PM, and print screen???
Hope to hear from you
Best regards
Morten
I would like to do a scheduled operation in a flexible that are running on a PC.
I have a page in the project that shows a graph. The graph shows logged temperatures from the last 24 hours.
I would like to automaticly print this graph once a day at 11.59 PM.
My idea was to create a scheduled opereation that changes to the screen with that graph, and then run a script that pints the screen.
But i a not very good at making scripts, so i was hoping that you could help me making the script.
My problem is that when the screen is loaded, then there has go go some time until the screen is printet. But how can i put a timer into my script??
I have an idea of what the scrpt should do:
1) start timer
2) when timer is gone, then print screen
3) change screen to previous
I have tried to create a "timer" by creating a internal tag called "count_1" and then write:
Do
Count_1 = Count_1+1
Loop Until Count_1=30000
PrintScreen
Count_1=0
ActivatePreviousScreen
But the "count_1" gets =30000 way to fast. I need the time to be about 30 seconds, cause the trend on the page is taking some time to be loaded. And first after that i need to print screen..
Can you please help me creating a script that works, or maby tell me a better way of solving my problem - change screen at 11.59 PM, and print screen???
Hope to hear from you
Best regards
Morten