houldy Posted December 6, 2008 Share 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? Link to comment Share on other sites More sharing options...
cageman Posted December 6, 2008 Share 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 Link to comment Share on other sites More sharing options...
houldy Posted December 6, 2008 Author Share Posted December 6, 2008 Can u write here what should I add? HotkeySet(q), and what next to wait 1 minute? Link to comment Share on other sites More sharing options...
Developers Jos Posted December 6, 2008 Developers Share 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. Link to comment Share on other sites More sharing options...
cageman Posted December 6, 2008 Share 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 Link to comment Share on other sites More sharing options...
houldy Posted December 6, 2008 Author Share 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? Link to comment Share on other sites More sharing options...
Developers Jos Posted December 6, 2008 Developers Share 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. Link to comment Share on other sites More sharing options...
houldy Posted December 6, 2008 Author Share Posted December 6, 2008 I rode help and tried made this script by myself, but it always doesn't works... I'm getting confused. Link to comment Share on other sites More sharing options...
toonboon Posted December 6, 2008 Share 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] Link to comment Share on other sites More sharing options...
Tomb Posted December 6, 2008 Share Posted December 6, 2008 While 1 Send("Q") sleep(60000) WEnd Link to comment Share on other sites More sharing options...
Xav Posted December 6, 2008 Share Posted December 6, 2008 (edited) i think your funny question can work with "Control"... "ControlSend"... search for it. Edited December 6, 2008 by Xav Link to comment Share on other sites More sharing options...
houldy Posted December 6, 2008 Author Share Posted December 6, 2008 Thanks Tom ur script works. Also thanks to all who tried to help me. Link to comment Share on other sites More sharing options...
Tomb Posted December 6, 2008 Share Posted December 6, 2008 no problem 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