Posts: 62
Threads: 19
Joined: Jan 2007
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.
Posts: 12,073
Threads: 140
Joined: Dec 2002
Posts: 62
Threads: 19
Joined: Jan 2007
I found that I don't need this anymore, but it's still annoying..
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
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.
Posts: 12,073
Threads: 140
Joined: Dec 2002