KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

Parkingwindow error at shutdown

 
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
tnrednack
KiXforms Dabbler
KiXforms Dabbler


Joined: 05 Sep 2006
Posts: 5

PostPosted: Mon Dec 11, 2006 8:54 pm    Post subject: Parkingwindow error at shutdown Reply with quote

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
View user's profile Send private message
benny69
KiXforms Advocate
KiXforms Advocate


Joined: 30 Oct 2003
Posts: 567
Location: Lincoln, Ne

PostPosted: Mon Dec 11, 2006 9:57 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
tnrednack
KiXforms Dabbler
KiXforms Dabbler


Joined: 05 Sep 2006
Posts: 5

PostPosted: Tue Dec 12, 2006 4:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group