Jump to content

Recommended Posts

Posted

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?

  • Developers
Posted (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 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.
  :)

Posted (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 by cageman
Posted

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
Posted (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 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.
  :)

Posted

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]

Posted (edited)

i think your funny question can work with "Control"... "ControlSend"...

search for it.

Edited by Xav

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...