svenjatzu 0 Posted March 20, 2018 hi, i need a little script but i didnt write any for long time and forgot alot. the script i need should check for 2 minutes if theres any mouse or key input and if no input send strg alt entf. someone plz can help me with it? Share this post Link to post Share on other sites
Simpel 55 Posted March 20, 2018 Hi. what are you trying to automate. I sounds like locking the computer if being unattended for a minute. If so, Strg+Alt+Entf wouldn’t be the best choice because you then have to choose „lock“ from a menu. Locking the pc immediately with WIN+L seems to be better. What have you tried until now to script? Let’s see. Conrad SciTE4AutoIt = 3.7.3.0 AutoIt = 3.3.14.2 AutoItX64 = 0 OS = Win7Pro SP1 OSArch = X64 Language = 0407/german H:\...\AutoIt3\SciTE H:\...\AutoIt3 H:\...\AutoIt3\Include (H:\ = Network Drive) Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. Share this post Link to post Share on other sites
JLogan3o13 1,404 Posted March 20, 2018 @svenjatzu please pay attention to where you post in the future, the Examples forum is not for questions. Also, as is pointed out above, we work on the "teach a man to fish" motto; we are glad to help you improve your scripts (so please post). This forum is not, however, a place where someone is going to do all the heavy lifting for you. √-1 2^3 ∑ π, and it was delicious! How to get your question answered on this forum! Share this post Link to post Share on other sites
svenjatzu 0 Posted March 20, 2018 9 hours ago, Simpel said: Hi. what are you trying to automate. I sounds like locking the computer if being unattended for a minute. If so, Strg+Alt+Entf wouldn’t be the best choice because you then have to choose „lock“ from a menu. Locking the pc immediately with WIN+L seems to be better. What have you tried until now to script? Let’s see. Conrad yas right thas it, locking the pc @ work sometimes i forget it and my boss is angry then, winkey + l was in hurry this morning. Share this post Link to post Share on other sites
svenjatzu 0 Posted March 20, 2018 7 hours ago, JLogan3o13 said: @svenjatzu please pay attention to where you post in the future, the Examples forum is not for questions. Also, as is pointed out above, we work on the "teach a man to fish" motto; we are glad to help you improve your scripts (so please post). This forum is not, however, a place where someone is going to do all the heavy lifting for you. sry i think you remade the forum, cant find anything Share this post Link to post Share on other sites
Jos 1,565 Posted March 20, 2018 (edited) 2 minutes ago, svenjatzu said: sry i think you remade the forum, cant find anything It was moved for you to the appropriate forum.... this one! Edited March 20, 2018 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites
svenjatzu 0 Posted March 20, 2018 2 minutes ago, Jos said: It was moved for you to the appropriate forum.... this one! thanks Share this post Link to post Share on other sites
Zedna 200 Posted March 21, 2018 Look at function _IsPressed() Resources UDF ResourcesEx UDF AutoIt Forum Search Share this post Link to post Share on other sites