Page 1 of 1

Re: logout after specific time period

Posted: Mon Oct 16, 2017 3:32 pm
by admin
Dear Sir,
you can use this code:

Code: Select all

Function void mainLoopCheckActivity()
#startup

    while (WindowIsOpen())

        // If no activity for 2 -> user logout
        if ((GetUserName() != "") && (GetUserInactivityTime() > 120)) then
            Logout();
        end

        Sleep(1000);
    end
end
Best regards