View previous topic :: View next topic |
Author |
Message |
tnrednack KiXforms Dabbler

Joined: 05 Sep 2006 Posts: 5
|
Posted: Mon Dec 11, 2006 8:54 pm Post subject: Parkingwindow error at shutdown |
|
|
Hey guys i have a question maybe one of you can answer for me and maybe help me find a fix for it. i have a kixform that starts at logon. All it does is look for mouse movement and key strokes. basicly a idle timer. this works fine but what i am having a problem with is that when i shut down my computer i get a parkingwindow error. and it stops the computer from shuttind down. Does any one know what would cause this?
And is there a fix for it.. here is the code for the script.
Code: |
break on
$System = CreateObject("Kixtart.System")
while not @error
$tick = $System.Environment.LastUserInput
$lastinput = val(left(@ticks,-3)) - val(left($tick,-3))
? $lastinput
if $lastinput > 5400 run "kix32.exe mess.kix"
endif
sleep 1
loop
|
Perhaps i am over looking something, anyhow thanks for the help you all. |
|
Back to top |
|
 |
benny69 KiXforms Advocate


Joined: 30 Oct 2003 Posts: 567 Location: Lincoln, Ne
|
Posted: Mon Dec 11, 2006 9:57 pm Post subject: |
|
|
I think what you are seeing is that the "Kixtart.System" Object and maybe even this script is still running. At some point you should tell the "Kixtart.System" Object to 'Quit'. That command is 'Quit'. _________________ Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta) |
|
Back to top |
|
 |
tnrednack KiXforms Dabbler

Joined: 05 Sep 2006 Posts: 5
|
Posted: Tue Dec 12, 2006 4:36 pm Post subject: |
|
|
i had a feeling that would be the problem since it has no real end. but the problem is that i need that to run the entire time the computer is up. do you have any sugestions on how to fix that? i not sure how i would manage to get it to terminate at log off with out this error. since this is a contunious loop that only runs another script, i am not sure how i woudl manage to end it.... |
|
Back to top |
|
 |
|