houldy Posted December 6, 2008 Posted December 6, 2008 Hello, I'm new here and I'm using this program first time. I need a script which still press Q on my keyboard, with pauza of 1 minute. And also got funny question. If I have 2 users on my computers, on 1 user i will run autoit and start script, will it still be working?
cageman Posted December 6, 2008 Posted December 6, 2008 HotkeySet() to call a function after a certain keypress , gl. dont know the answer to the funny question for sure but its probably a yes
houldy Posted December 6, 2008 Author Posted December 6, 2008 Can u write here what should I add? HotkeySet(q), and what next to wait 1 minute?
Developers Jos Posted December 6, 2008 Developers Posted December 6, 2008 (edited) Let me guess: you want this for a game. you haven't open the helpfile. you haven't search the forum for the answer. you want somebody to code it all for you. Am I close? Edited December 6, 2008 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
cageman Posted December 6, 2008 Posted December 6, 2008 (edited) HotKeySet("q", "Wait") while 1 sleep(100) Wend func Wait() sleep(60*1000) Endfunc this will let the script sleep 1 minute if you press q and it will keep being active since it will stay in an endless while loop. gl. but like jos says.. try to look in the helpfile and look if you understand the script i just gave you since you wont get a free script all the time. autoit is pretty simple ( i learned coding the basics like this in a couple of hours) Edited December 6, 2008 by cageman
houldy Posted December 6, 2008 Author Posted December 6, 2008 Just tried it in notepad and it doesn't work. I quess my script stop, but im not sure. When I tried it to use in game it wasn't working too, and also blocked this hotkey. What I'm doing wrong? Should I first open notepad and next start script, and to keep it working should I press Q?
Developers Jos Posted December 6, 2008 Developers Posted December 6, 2008 (edited) I am pretty sure you wanted the script to press the Q for you in stead of it working as a Hotkey... What about you first try to understand how to script in AItoIt3 and what the posted script does? Edited December 6, 2008 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
houldy Posted December 6, 2008 Author Posted December 6, 2008 I rode help and tried made this script by myself, but it always doesn't works... I'm getting confused.
toonboon Posted December 6, 2008 Posted December 6, 2008 post whatever you have so far. And do you want the script to write 'Q' or to react on when you press 'Q' ? [right]~What can I say, I'm a Simplistic person[/right]
Xav Posted December 6, 2008 Posted December 6, 2008 (edited) i think your funny question can work with "Control"... "ControlSend"... search for it. Edited December 6, 2008 by Xav
houldy Posted December 6, 2008 Author Posted December 6, 2008 Thanks Tom ur script works. Also thanks to all who tried to help me.
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