Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Closing only one thread
#1
I have two fuctions. The first one wait for special triggers and then calls the second one. The second one does its job and ends. But I can't end just the second one. When I end it the first is ended, too.

I have tried end, ret, shutdown -7 and everytime also the first function is closed.
#2
Show the codes.
#3
I found that I don't need this anymore, but it's still annoying..

Code:
Copy      Help
str msg
rep
,IntGetFile "http://www.x.xxx/input.txt" msg
,if(len(msg)>0)    
,,if(find(msg "lock")=0)
,,,mac lock
,,,IntGetFile "http://www.x.xxx/write.php?input=nop" bin
,wait 5
Code:
Copy      Help
BlockInput2 3 ;;Locks the computer.
str controls = "3"
str e3
str pass = "1A1DC91C907325C69271DDF0C944BC72" ;;Put here the md5(hex) encoded password! (Default: pass)
str input
rep
,ShowDialog("lock_open" 0 &controls)
,input.encrypt(10 e3);
,if(input=pass)
,,BlockInput2 0 ;;Unlocks the computer.
,,end
,/out input ;;shows the encoded input
,OnScreenDisplay "Wrong password!" 2 0 0 0 30 255 2 ;;Tells that the input is wrong.
#4
Use mac "lock".


Forum Jump:


Users browsing this thread: 1 Guest(s)