[Batch/Bash] [Autohotkey] - Afk Protection 1.0

Dieses Thema im Forum "Projekte / Codes" wurde erstellt von DerNasendieb, 7. September 2009 .

  1. 7. September 2009
    Zuletzt von einem Moderator bearbeitet: 15. April 2017
    [Autohotkey] - Afk Protection 1.0

    programm in der art, weiß nicht ob ich in der richtigen section bin zählt vielleicht als "Billigprogramm" wusste aber nicht wo ich das sonst posten soll

    unbenanntbr.png
    {img-src: //img44.imageshack.us/img44/7534/unbenanntbr.png}

    aufzeichnenkopie.jpg
    {img-src: //img34.imageshack.us/img34/1453/aufzeichnenkopie.jpg}


    bei bewegung der maus oder sonstiger aktion bei aktivem programm
    wird nach einem passwort gefragt, wird dieses nicht in der geforderten zeit eingegeben
    wird der pc herunter gefahren

    ganz nützliche sache wenn man systempartition verschlüsselt hat und pc laufen lassen will

    übernehme keine haftung dass das ganze sicher ist oder so aber naja einfach mal selber testen , sollte schon reichen

    einstellungen kommen in die config.ini die erstellt wird

    autohotkey scripts werden teilweiße als virus angezeigt , wems nicht passt einfach selber compilieren oder es einfach lassen

    exe:
    No File | xup.in

    autohotkey source:[/url]
    Code:
    #NoTrayIcon
    
    IfNotExist, config.ini
    {
    IniWrite, 15, config.ini, settings, pwtime
    IniWrite, test, config.ini, settings, pw
    IniWrite, 1, config.ini, settings, testmode
    fileappend, `n`; pwtime = time you got to enter the password once the notification did popup, config.ini 
    fileappend, `n`; pw = the password to prevent the programm from restarting, config.ini 
    fileappend, `n`; testmode = if testmode is set to 1 testmode is on`, if not testmode is off`n`n`; testmode means the system won't shutdown`, it will just show a messagebox instead, config.ini 
    
    msgbox, , Info!, This is the first time you did run this tool, a file config.ini has been created you need to modify it now
    exitapp
    }
    
    iniread, pwtime, config.ini, settings, pwtime ;// DONE
    iniread, pw, config.ini, settings, pw ;// DONE
    iniread, testmode, config.ini, settings, testmode ;// DONE
    
    
    if(testmode = 1)
    {
    MsgBox, , WARNING!, this is the testmode which means system _WON'T_ shutdown`nedit the config.ini file to disable the testmode
    }
    
    warnlevel = 0
    
    loop
    {
    prevtime = %A_TimeIdle%
    sleep 1000
    
     ;// DID DO SOMETHING
     if prevtime >= %A_TimeIdle%
     {
     warnlevel := warnlevel+60
     } else {
     warnlevel := warnlevel-20
     
     if warnlevel < 0
     warnlevel = 0
     }
    
     
     if warnlevel > 100
     {
     goto, didmove
     }
    }
    
    
    
    
    
    didmove:
    ;// gui, add, text, , enter the password:
    gui, add, edit, w180 venteredpw password , 
    Gui, Add, StatusBar,, %pwtime% seconds left to enter the pw
    gui, show, , Protection
    
    settimer, check, 50
    count = 0
    settimer, count, 1000
    return
    
    guiclose:
    return
    
    count:
    count := count+1
    gui,show
    SB_SetText(pwtime-count . " seconds left to enter the pw")
    If(count = pwtime)
    {
     if(testmode = 1)
     {
     MsgBox, , SHUTDOWN!, system would shutdown now`ntestmode is on though, so programm will just exit now
     exitapp
     } else {
     Shutdown, 4
     exitapp
     }
    }
    return
    
    check:
    gui,submit,nohide
    if(enteredpw = pw)
    {
     count := 0
     settimer, count, off
     exitapp
    }
    return
    
     
  2. 7. September 2009
    AW: [Autohotkey] - Afk Protection 1.0

    Meiner Meinung nach sinnlos, da ich das Programm innerhalb der Zeit ohne Probleme mit dem Taskmanager killen kann! Zudem würde es auch herunterfahren wenn ich nicht da bin und jemand (Haustier o.ä.) berührt eine Taste. Wintaste + L sperrt den Rechner auch und ohne PW ist nurnoch herunterfahren möglich.
     
  3. 7. September 2009
    Zuletzt von einem Moderator bearbeitet: 15. April 2017
    AW: [Autohotkey] - Afk Protection 1.0

    Da gibt es hier schon ein viel besseres Tool. Das verwende ich sogar heute noch^^
    [C/C++] PC Security v3.0

    Schade das es nicht open-source ist und bonsai es (scheinbar) nicht weiterentwickelt.
     
  4. Video Script

    Videos zum Themenbereich

    * gefundene Videos auf YouTube, anhand der Überschrift.