Continuous check for new files and processing possible? [message #92705] |
Thu, 11 February 2016 08:13  |
rogass
Messages: 200 Registered: April 2008
|
Senior Member |
|
|
Hi folks,
I'd like to do the following. My application should check every second for new files, read the content (csv), process it, display it (maybe inside a widget_window?) until a button is pressed. Unfortunately, there is another software that runs in parallel, produces those files and may 'steal' the focus.
Maybe somebody had a similar problem and can help?
Thanks in advance
Chris
|
|
|
Re: Continuous check for new files and processing possible? [message #92706 is a reply to message #92705] |
Thu, 11 February 2016 08:23   |
wlandsman
Messages: 743 Registered: June 2000
|
Senior Member |
|
|
This is not a full answer but you might want to look at the FOLDERWATCH object introduced in IDL 8.4
On Thursday, February 11, 2016 at 11:13:44 AM UTC-5, rog...@googlemail.com wrote:
> Hi folks,
> I'd like to do the following. My application should check every second for new files, read the content (csv), process it, display it (maybe inside a widget_window?) until a button is pressed. Unfortunately, there is another software that runs in parallel, produces those files and may 'steal' the focus.
>
> Maybe somebody had a similar problem and can help?
>
> Thanks in advance
> Chris
|
|
|
Re: Continuous check for new files and processing possible? [message #92707 is a reply to message #92706] |
Thu, 11 February 2016 08:28   |
rogass
Messages: 200 Registered: April 2008
|
Senior Member |
|
|
Am Donnerstag, 11. Februar 2016 17:23:24 UTC+1 schrieb wlandsman:
> This is not a full answer but you might want to look at the FOLDERWATCH object introduced in IDL 8.4
>
> On Thursday, February 11, 2016 at 11:13:44 AM UTC-5, rog...@googlemail.com wrote:
>> Hi folks,
>> I'd like to do the following. My application should check every second for new files, read the content (csv), process it, display it (maybe inside a widget_window?) until a button is pressed. Unfortunately, there is another software that runs in parallel, produces those files and may 'steal' the focus.
>>
>> Maybe somebody had a similar problem and can help?
>>
>> Thanks in advance
>> Chris
This is a nice function. Do you think that it is possible to integrate this into a widget_window 'approach'?
Cheers
Chris
|
|
|
Re: Continuous check for new files and processing possible? [message #92708 is a reply to message #92707] |
Thu, 11 February 2016 10:56   |
wlandsman
Messages: 743 Registered: June 2000
|
Senior Member |
|
|
I've actually not used FOLDERWATCH. When I tried to do something similar before, I instead used widget timer events
http://www.harrisgeospatial.com/docs/working_with_widget_eve n.html#widget_techniques_4218446668_96233
so that every 20 seconds I could perform a file_search() to see if any new files appeared. If a new image appeared I would read it and display it in a widget window.
it looks like one can do the same with FOLDERWATCH using the callback procedure given in the Init method. You could have the callback procedure display the new file in a WIDGET_WINDOW or whatever other method you use for diplaying static images. --Wayne
On Thursday, February 11, 2016 at 11:28:38 AM UTC-5, rog...@googlemail.com wrote:
> Am Donnerstag, 11. Februar 2016 17:23:24 UTC+1 schrieb wlandsman:
>> This is not a full answer but you might want to look at the FOLDERWATCH object introduced in IDL 8.4
>>
>> On Thursday, February 11, 2016 at 11:13:44 AM UTC-5, rog...@googlemail.com wrote:
>>> Hi folks,
>>> I'd like to do the following. My application should check every second for new files, read the content (csv), process it, display it (maybe inside a widget_window?) until a button is pressed. Unfortunately, there is another software that runs in parallel, produces those files and may 'steal' the focus.
>>>
>>> Maybe somebody had a similar problem and can help?
>>>
>>> Thanks in advance
>>> Chris
>
> This is a nice function. Do you think that it is possible to integrate this into a widget_window 'approach'?
>
> Cheers
> Chris
|
|
|
Re: Continuous check for new files and processing possible? [message #92714 is a reply to message #92705] |
Mon, 15 February 2016 03:12  |
rogass
Messages: 200 Registered: April 2008
|
Senior Member |
|
|
Am Donnerstag, 11. Februar 2016 17:13:44 UTC+1 schrieb rog...@googlemail.com:
> Hi folks,
> I'd like to do the following. My application should check every second for new files, read the content (csv), process it, display it (maybe inside a widget_window?) until a button is pressed. Unfortunately, there is another software that runs in parallel, produces those files and may 'steal' the focus.
>
> Maybe somebody had a similar problem and can help?
>
> Thanks in advance
> Chris
Dear Wayne,
thanks a lot.
Cheers
Chris
|
|
|