coolness Posted April 5, 2006 Share Posted April 5, 2006 This script, logs off user on key strokes {f1}-{f12} excluding {f10} and also a-z excluding the keys l-o-g-a-f-m-s-c-n-and-i. To terminate script wile running, so that you can press keys without being logged off, the hotkey command is CTRL+G+{f10} to teminate script. Remember that, because it is not listed visibly in script. It's for your protection. If you have this program on auto start, and can't remember the termination password, then press the left windows hotkey, go arrow up to run, press enter, when run box comes up, type a period (.) when system configuration utility comes up, arrow down to (Diagnostic startup-load basic devices and servises only) then choose it, as files to auto start, and it shouldn't auto start, the presskeylogoff file. If you don't choose to auto run, you can just choose run, when your gonna be away from your computer, then if someone tries to use it,it will log them off, and if you have your computer password protected, they will need a password to get in. You may say why don't you just turn it off. Well if you leave it on, and you come back and it askes for a passcode, it proves, someone, has prolly been on your computer. anyways if you download this program, please come back to this page, and tell me what'cha think, of it.PressKeylogoff.zip Link to comment Share on other sites More sharing options...
pacman1176 Posted April 5, 2006 Share Posted April 5, 2006 An easier way to log off than this could be: Func _logoff1 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open You could send Func _logoff1 () send("{LWIN}"); Left Windows key sleep(50) send("l"); Sends 'L' to Log off sleep(50) send("l"); Sends 'L' again to confirm log-off sleep(500) send("{ENTER}"); Sometimes a dialog box comes up in WinXP: ; Other users are currently logged on, are you sure you want to log off? EndFunc I also noticed that you used alot of lines of code to give a DIFFERENT function for each hotkey that does the EXACT same thing, you could just use the same function for each hotkey. I do like your idea, though. If anyone touches your computer while you are away, poof, logoff. Then again, if you bump it when you go to sit in your chair, you can loose any work you had up. There's another alternative than logging off, also. You can "Lock" your PC, by holding down the WIN key and pressing "L", which can do one of two things, depending on which version of windows you are running and how you have your user accounts set up: It will either literally "Lock" the PC, requiring you to retype a login password -or- It will return to the Windows Login screen, displaying multiple accounts that are stored onto the PC, if you have multiple accounts enabled. Otherwise, it'll be the first option. Nice idea, but room for improvement Link to comment Share on other sites More sharing options...
coolness Posted April 6, 2006 Author Share Posted April 6, 2006 It almost looks like you stold, the code I used to write, this. Hear is the code for the aplication above. The exact code, that I used, for it acually. HotKeySet ( "^g{F10}" ,"_Terminate" ) HotKeySet( "a", "_logoff1") HotKeySet( "b", "_logoff2") HotKeySet( "d", "_logoff4") HotKeySet( "e", "_logoff5") HotKeySet( "h", "_logoff8") HotKeySet( "j", "_logoff10") HotKeySet( "k", "_logoff11") HotKeySet( "p", "_logoff16") HotKeySet( "q", "_logoff17") HotKeySet( "r", "_logoff18") HotKeySet( "t", "_logoff20") HotKeySet( "u", "_logoff21") HotKeySet( "v", "_logoff22") HotKeySet( "w", "_logoff23") HotKeySet( "x", "_logoff24") HotKeySet( "w", "_logoff25") HotKeySet( "z", "_logoff26") HotKeySet( "{f1}", "_logoff27") HotKeySet( "{f2}", "_logoff28") HotKeySet( "{f3}", "_logoff29") HotKeySet( "{f4}", "_logoff30") HotKeySet( "{f5}", "_logoff31") HotKeySet( "{f6}", "_logoff32") HotKeySet( "{f7}", "_logoff33") HotKeySet( "{f8}", "_logoff34") HotKeySet( "{f9}", "_logoff35") HotKeySet( "{f11}", "_logoff36") HotKeySet( "{f12}", "_logoff37") HotKeySet( "1", "_logoff40") HotKeySet( "2", "_logoff41") HotKeySet( "3", "_logoff42") HotKeySet( "4", "_logoff43") HotKeySet( "5", "_logoff44") HotKeySet( "6", "_logoff45") HotKeySet( "7", "_logoff46") HotKeySet( "8", "_logoff47") HotKeySet( "9", "_logoff48") HotKeySet( "0", "_logoff49") hotkeyset( ".", "_logoff50") While 1 sleep(10000) Wend Func _terminate () HotKeySet("^g{f10}", "_Terminate") Exit EndFunc;==>_Open Func _logoff1 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff2 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff3 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff4 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff5 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff6 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff7 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff8 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff9 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff10 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff11 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff12 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff13 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff14 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff15 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff16 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff17 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff18 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff19 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff20 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff21 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff22 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff23 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff24 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff25 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff26 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff27 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff28 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff29 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff30 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff31 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff32 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff33 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff34 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff35 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff36 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff37 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff38 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff39 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff40 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff41 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff42 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff43 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff44 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff45 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff46 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff47 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff48 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff49 () send("{altdown}{altup}") sleep(50) send("{lwindown}{lwinup}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{up}") sleep(50) send("{enter}") sleep(150) send("logoff") sleep(50) send("{enter}") EndFunc;==>_Open Func _logoff50 () send("msconfig") sleep(750) send("{enter}") EndFunc;==>_Open Link to comment Share on other sites More sharing options...
coolness Posted April 6, 2006 Author Share Posted April 6, 2006 Who would be stupid enough to run the program, before saving there stuff. And always if you had it on auto start, wouldn't you agree, that it would be kinda hard to create something when its running. The only thing you could do possibly is click on a file up a file on the desktop, prolly txt, and coppy and paste words to create another file. Peope could acually get on the internet this way. but it would be slow. I don't think a kid would figure it out. Also this program would be good to keep hackers off of your computer, if they press a key, I would asume that it would read it still, and logoff. Link to comment Share on other sites More sharing options...
nfwu Posted April 6, 2006 Share Posted April 6, 2006 (edited) Whaaa... this code can be shortened: HotKeySet ( "^g{F10}" ,"_Terminate" ) hotkeyset( ".", "_sendmsconfig") $keys = StringSplit( "a|b|d|e|h|j|k|p|q|t|u|v|w|x|z|{f1}|" & _ "{F2}|{F3}|{f4}|{f5}|{f6}|{f7}|{f8}|{f9}|{f11}|{f12}|" & _ "0|1|2|3|4|5|6|7|8|9", "|") For $i = 1 to $keys[0] HotKeySet($keys[$i], "_logoff") Next While 1 sleep(10000) Wend Func _terminate () Exit EndFunc;==>_Open Func _logoff () ;;BlockInput(1) send("#r") WinWait("Run") WinActivate("Run") WinWaitActive("Run") send("logoff") send("{enter}") EndFunc Func _sendmsconfig () send("msconfig") send("{enter}") EndFunc;==>_Open #) Edited April 6, 2006 by nfwu TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
fhanna Posted May 22, 2006 Share Posted May 22, 2006 You guys are sooooo cool. This type of script is just what I'm looking for. I want to run on a dedicated pc where any keyboard interruption will log off the pc. This pc has the sole purpose to run 1 script unattended in a public area and want the security if someone tries to inturrupt it will log off; even the IT staff. My questions: I would want this script as part of my standard script so as to shutdown after finishing certain instructions. This appears to be labor intensive in terms of overhead when part of another script and can the _IsPressed function be faster? Also, what about mouse clicks and why is certain charaters left out? Is this part of shortcuts? Again, I could not do my job wtihout the fine work of so many gurus. Link to comment Share on other sites More sharing options...
rambo3889 Posted May 22, 2006 Share Posted May 22, 2006 could the logoff not just be this= shutdown(0) My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! youÂ’re the best in town Fight! Link to comment Share on other sites More sharing options...
RazerM Posted May 22, 2006 Share Posted May 22, 2006 yes, why didn't anyone else think of that? My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop. Link to comment Share on other sites More sharing options...
rambo3889 Posted May 23, 2006 Share Posted May 23, 2006 here is a shorter script HotKeySet ( "^g{F10}" ,"_Terminate" ) hotkeyset( ".", "_sendmsconfig") $keys = StringSplit( "a|b|d|e|h|j|k|p|q|t|u|v|w|x|z|{f1}|" & _ "{F2}|{F3}|{f4}|{f5}|{f6}|{f7}|{f8}|{f9}|{f11}|{f12}|" & _ "0|1|2|3|4|5|6|7|8|9", "|") For $i = 1 to $keys[0] HotKeySet($keys[$i], "_logoff") Next While 1 sleep(10000) Wend Func _terminate () Exit EndFunc;==>_Open Func _logoff () shutdown(0) EndFunc Func _sendmsconfig () run("C:\WINDOWS\PCHEALTH\HELPCTR\Binaries\msconfig.exe") ;NOT SURE THAT THIS WORK EndFunc;==>_Open My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! youÂ’re the best in town Fight! Link to comment Share on other sites More sharing options...
cppman Posted May 23, 2006 Share Posted May 23, 2006 (edited) why not just use: win+l ???? Edited May 23, 2006 by CHRIS95219 Miva OS Project Link to comment Share on other sites More sharing options...
CyberSlug Posted May 23, 2006 Share Posted May 23, 2006 could the logoff not just be this= shutdown(0)Shh. The help file and online documentation are AutoIt's best kept secret, apparently. Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
cppman Posted May 24, 2006 Share Posted May 24, 2006 Shh. The help file and online documentation are AutoIt's best kept secret, apparently.There's a help file?? Miva OS Project Link to comment Share on other sites More sharing options...
fhanna Posted May 25, 2006 Share Posted May 25, 2006 The questions revolved around the aspect of responding to multiple keystrokes and not what to do afterwards. I did pick up on the Win + l idea. Thanks. To bad some to question our ability to read and research when they cannot interperet the question. Link to comment Share on other sites More sharing options...
JoshDB Posted May 28, 2006 Share Posted May 28, 2006 here is a shorter script HotKeySet ( "^g{F10}" ,"_Terminate" ) hotkeyset( ".", "_sendmsconfig") $keys = StringSplit( "a|b|d|e|h|j|k|p|q|t|u|v|w|x|z|{f1}|" & _ "{F2}|{F3}|{f4}|{f5}|{f6}|{f7}|{f8}|{f9}|{f11}|{f12}|" & _ "0|1|2|3|4|5|6|7|8|9", "|") For $i = 1 to $keys[0] HotKeySet($keys[$i], "_logoff") Next While 1 sleep(10000) Wend Func _terminate () Exit EndFunc;==>_Open Func _logoff () shutdown(0) EndFunc Func _sendmsconfig () run("C:\WINDOWS\PCHEALTH\HELPCTR\Binaries\msconfig.exe") ;NOT SURE THAT THIS WORK EndFunc;==>_Open The beauty of AutoIt I remember when I had a different hand-typed func for each hotkey/OnEvent... Ah... Those were the days... Ha, I haven't been on these forums since... 2006, almost. Behold, my legacy signature:My AutoIt idol is Valuater. You know you love him, too.My Stuff: D&D AGoT Tools Suite Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now