Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 18 DEC 2008 03:38:14AM Simon G Wilmot wrote:

Hiya,

When using the dedicated indexer with a front end window, during the 'pause' between sweeps, is there a way to hook into a routine to auto-logoff if a certain time has been reached …

TIA

Simon


At 18 DEC 2008 08:58AM Dave Harmacek wrote:

While the windows of the dedicated workstation is in the CREATE event:

call showOpenEngine(1)

seconds=60 ;*whatever delay you deem sufficient

call Set_Bgnd_IX_TIME( seconds)

call Set_IDXSvr(1)

*setup for logout this evening

itime=iconv( '23:45','MT')

if time() lt itime then

cmd=SHUTDOWN': @fm: @fm: '23:45'
foo=Set_Property('SYSTEM', 'IDLEPROC', cmd)

end

Subroutine SHUTDOWN( arg)

declare function Utility
call Set_IDXSvr(0)
call Set_Bgnd_IX_Time(0)
call delay(30) ;*waiting for indexing process to finish (maybe not needed)
call Yield()
x=Utility("DESTROY", "SYSTEM")

return

Dave


At 18 DEC 2008 09:09AM Simon G Wilmot wrote:

Hi Dave,

Thanks for that - I had delved around a few other posts and help texts and came across pretty muchn the same solution.

Thanks,

Simon

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/719017312d3bac7985257523002f726c.txt
  • Last modified: 2023/12/28 07:39
  • by 127.0.0.1