Cyber Cafe Project Please Help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • rexzooly
    No longer a forum member
    • Jul 2007
    • 1512

    Cyber Cafe Project Please Help

    Quote:
    Originally Posted by Worm
    Desrat is obviously skilled

    but for clarity... and my own piece of mind...

    You are wanting to run the File.Find command using the drive and folder your exe is in as the root of the search, is that correct?

    Worm hi can you help me

    i been reading on everywhere and well i must be stupid i just can't do it
    i need a text file what will hold user name and passworked just one file so like tis

    Userdata.txt /.ini
    ----File------
    Rexzooly = 36936988 t = 20
    Worm = earth t = unlimited
    carl = nipler t = 20
    ----End of File---

    the t = 20 would be the time they would have left.

    so how do it turn this

    Code:
    Name = Input.GetText("Input1");
    Pass = Input.GetText("Input2");
    
    if Name == "name" and Pass == "pass" then
    Page.Jump("Page2");
    
    else 
    
    result = Dialog.Message("Notice", "Wrong name or password!!\r\n\r\nTry again", MB_OK, MB_ICONNONE, MB_DEFBUTTON1);
    
    end
    Code:
    counter = 3 -- changed to point to text file 
    Page.StartTimer(1000)Code:
    Code:
    counter = counter -1;
    Label.SetText("Label1", counter);
    if counter<1 then
    Page.StopTimer();
    result = Dialog.Message("Cyber Soft Message", "Your time is up!! You will now be logged out", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    -- this next section will attempt to terminate currently opened apps by the customer
    
      -- firstly IE.
    
    instances_of_file = 0;
    file_to_check_for = "iexplorer.exe";
    processes = System.EnumerateProcesses();
    
    for j, file_path in processes do
        file = String.SplitPath(file_path);
        if (String.Lower(file.Filename..file.Extension)) == file_to_check_for then
            System.TerminateProcess(j);
        end
    Page.Jump("Page1");
    
    instances_of_file = 0;
    file_to_check_for = "YB.exe";
    processes = System.EnumerateProcesses();
    
    for j, file_path in processes do
        file = String.SplitPath(file_path);
        if (String.Lower(file.Filename..file.Extension)) == file_to_check_for then
            System.TerminateProcess(j);
        end
    Page.Jump("Page1");
    end
    end
    end
    Please help i have been working on the 3 days now with no rest.
    also i need to diable the winkey how do i do this i have diablekey.dll



    Sorry about the Hi-Jack worn its warm as **** here and kinda stuck and half asleep so i just posted it without thinking :(
  • Worm
    Indigo Rose Customer
    • Jul 2002
    • 3971

    #2
    Here's a quick little example of using an INI file. As for the disable keys, I've never used it.
    Attached Files

    Comment

    • rexzooly
      No longer a forum member
      • Jul 2007
      • 1512

      #3
      Originally posted by Worm View Post
      Here's a quick little example of using an INI file. As for the disable keys, I've never used it.
      i will look up the commands sometime there around i hope some where
      right lets give this a wee look thanks worm 5*

      Comment

      • rexzooly
        No longer a forum member
        • Jul 2007
        • 1512

        #4
        that would work great thanks Worm

        jus one last thing that i need to do to make to work

        is there a way to set the timer on the page so like so

        Code:
        counter = 6 -- time out demo
        Page.StartTimer(1000)
        This is what i have on the On Show Tabe and on the Time tabe i have


        Code:
        counter = counter -1;
        Label.SetText("Label1", counter);
        if counter<1 then
        Page.StopTimer();
        result = Dialog.Message("Cyber Soft Message", "Your time is up!! You will now be logged out", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
        -- this next section will attempt to terminate currently opened apps by the customer
        
          -- firstly IE.
        
        instances_of_file = 0
        file_to_check_for = "iexplorer.exe";
        processes = System.EnumerateProcesses();
        
        for j, file_path in processes do
            file = String.SplitPath(file_path);
            if (String.Lower(file.Filename..file.Extension)) == file_to_check_for then
                System.TerminateProcess(j);
            end
        Page.Jump("Page1");
        
        instances_of_file = 0;
        file_to_check_for = "YB.exe";
        processes = System.EnumerateProcesses();
        
        for j, file_path in processes do
            file = String.SplitPath(file_path);
            if (String.Lower(file.Filename..file.Extension)) == file_to_check_for then
                System.TerminateProcess(j);
            end
        Page.Jump("Page1");
        end
        end
        end

        Is there away to get the time from the ini file then save over the ini file if the user logins out with time left?

        so

        counter = String.ToNumber(INIFile.GetValue("Autoplay\\Docs\\ Simple.ini", section, "Time"));
        Page.StartTimer

        but from the right user

        Comment

        • rexzooly
          No longer a forum member
          • Jul 2007
          • 1512

          #5
          i really need some help here with the timer i need to be able to get the time from the ini file when the user logs in and then when it runs out or the user
          logs out with time left it updates the ini file

          ini file

          [User One]
          Name=Test
          Pass=demo
          Time=1800 ---In sec's

          Then the user runs out of time i want this to change to

          Name=Test
          Pass=demo
          Time=0 ---In sec's

          there for the account is diabled.

          or say they only use 800 sec's it would take
          that off.

          and i need a way to edit these users within the software
          or a secend admin software

          is this possable?

          Please help

          Thanks all and thanks to everyone that as helped so far

          Comment

          • Desrat
            Forum Member
            • Nov 2006
            • 240

            #6
            well the attached apz will do time limits in the method you describe but its not exactly the method I would have used as its extremely insecure and open to user intervention without some sort of encryption however the apz is there to steer you in at least the direction you asked and as for admin you'd need to specify the method you'd prefer to use (seperate app on same pc, from a seperate PC entirely but in the same network, hidden password protected in built admin)
            Attached Files

            Comment

            • rexzooly
              No longer a forum member
              • Jul 2007
              • 1512

              #7
              Originally posted by Desrat View Post
              well the attached apz will do time limits in the method you describe but its not exactly the method I would have used as its extremely insecure and open to user intervention without some sort of encryption however the apz is there to steer you in at least the direction you asked and as for admin you'd need to specify the method you'd prefer to use (seperate app on same pc, from a seperate PC entirely but in the same network, hidden password protected in built admin)
              erm kinda lost

              the users are just like this

              Name=Test
              Pass=demo
              Time=1700

              Name=josh
              Pass=get
              Time=30

              Name------ so on so forth
              so i need it so if Name=Test Time= ?under the test
              each user will have there own time limit

              i know about the files been unsurea but there will be on the desktop/server for the cyber caff so only staff can get to them

              and then i need someway to edit them without opening the file i want to makes a admin progran for the desktop/server what will edit the file and add users add more time things like that

              this is just a **** take lol i can't close AMS or it will take forever to get it back to work again i with i got the bleaming CD off my friend before i moved :(

              Comment

              • rexzooly
                No longer a forum member
                • Jul 2007
                • 1512

                #8
                Please say this is possable

                i am almost completed the softare
                just need this done then i can make it look pritty and complete it


                Comment

                • Desrat
                  Forum Member
                  • Nov 2006
                  • 240

                  #9
                  new apz with login and admin page
                  Attached Files

                  Comment

                  • rexzooly
                    No longer a forum member
                    • Jul 2007
                    • 1512

                    #10
                    Originally posted by Desrat View Post
                    new apz with login and admin page
                    thanks i will look at this laters

                    your all a big help here is a demo as the desktop admin panel i forgot to change the computer name so its set as \\\\(F)ucked not \\\\Desk for the server name

                    and is it possable to make the folder to be shared on install
                    i am using setup fact ..... 7
                    for the ini files and passwords for admin ?
                    :yes

                    This is the demo just the Admin on the server this will changed very soon

                    Comment

                    • rexzooly
                      No longer a forum member
                      • Jul 2007
                      • 1512

                      #11
                      Originally posted by Desrat View Post
                      new apz with login and admin page
                      hey well that kools great but when i update the a users time
                      it just says the users no there closes the window and then i reopen
                      it i just sets it back :(

                      it logs in with the time and when it logs out it don't update

                      is there something i need to add to this?

                      but this is a really nice little think thanks Desrat your a * you all are whom
                      as helped so fair.

                      Comment

                      • rexzooly
                        No longer a forum member
                        • Jul 2007
                        • 1512

                        #12
                        Originally posted by rexzooly View Post
                        hey well that kools great but when i update the a users time
                        it just says the users no there closes the window and then i reopen
                        it i just sets it back :(

                        it logs in with the time and when it logs out it don't update

                        is there something i need to add to this?

                        but this is a really nice little think thanks Desrat your a * you all are whom
                        as helped so fair.
                        Ok my silly doing that was its just that admin you can't edit lol
                        right is there a way to limit the amont of users that can be added for the
                        demo versio i want to limit to 10 users.
                        the full version will be unlimited.

                        ok this code it 100% what i needed just need to find way to end all user prosses but the cyber cafe software when user is timed out and when timed out return to login i think i can do the return to login tho.

                        Comment

                        • rexzooly
                          No longer a forum member
                          • Jul 2007
                          • 1512

                          #13
                          Originally posted by rexzooly View Post
                          Ok my silly doing that was its just that admin you can't edit lol
                          right is there a way to limit the amont of users that can be added for the
                          demo versio i want to limit to 10 users.
                          the full version will be unlimited.

                          ok this code it 100% what i needed just need to find way to end all user prosses but the cyber cafe software when user is timed out and when timed out return to login i think i can do the return to login tho.

                          just working on it now and added a time not the dialog.message
                          this kinda works
                          but the problem is i want to be able to click logout and the time will be updated and then i goes to a home login page
                          only the secand admin panel is able to shut down the software as i have
                          made 2 admin panels for the software.

                          and i am finding it hard to convert the dialog.messge logon
                          to a input login with loging button

                          Comment

                          • rexzooly
                            No longer a forum member
                            • Jul 2007
                            • 1512

                            #14
                            Ok i got the login bit to work i think but i can't out how do i do this to end the uesrs setion and return to login.

                            also need to limit users in demo version.

                            also is there way to detact if a program is running on the server (\\\\Desktop)
                            ? as i want to make a little progrom what tells the clients they can run and the app will also tell you how many pcs and there name that are running with the software.

                            Comment

                            • rexzooly
                              No longer a forum member
                              • Jul 2007
                              • 1512

                              #15
                              Please Help Before 28th 4 pm GMT +0 time (London)

                              i really could do with some help here

                              Ok here is what i need.
                              i have the time demo with the users what you made
                              but i am having a problem i what them to click logout and the time
                              save and ends that users but it don't the timer carries on i tryed
                              to added the code thats on the on exit to the logout button but i just get a error

                              and is there away to see if lets say adminT.exe is running on \\\\Desk if ture
                              run software if fales show timed dialog and end app

                              and also the adminT.exe can get the name of the pc that the cyber.exe is running on

                              so like this

                              ---------------------------------
                              Admin Panel
                              ----------------------
                              PC's Online:

                              (PC 4) Online - Loged In
                              (PC 5) Online - Loged Off
                              (PC PSev) Online - !!Cyber.exe Not Found!!
                              (Desk) Online - Admin Panel(AdminT.exe)


                              (Admin)(OK) (Exit)
                              -------------------------------------------
                              i did not have time to do a paint image lol so that one will
                              have to do hope you get what i mean.

                              also would like to send the logout command if none is on that pc
                              anymore so like

                              a button for each pc so (PC 4) would be a button and on click
                              you would get Shutdown PC 4 Logoff PC 4 and End Cyber User(logout User)

                              sorry if i am asking alot i just want to make this software work without
                              aproblem

                              Comment

                              Working...
                              X