Sign in to follow this  
Followers 0
Snickers

Send Arrow key, stop at certain time.

14 posts in this topic

Hello:) I made a code that makes the arrow key go up. but i want it to stop after X seconds (X=amount of seconds)

Send("{UP down}") ;Holds the UP key down

That's the code:P if someone could help that would be great!

Share this post


Link to post
Share on other sites



So, you mean to say you have read this last post in your previous topic: ?

Tell me this is NOT for a game and that you have done your research?

If so where did you get stuck?

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                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

Deleted my post. If it is confirmed that this is not for a game I will repost my answer.


My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

MY PROJECTS


Active: IRC UDF, WindowEx UDF
Discontinued: GithubBubbleSort UDF

Share this post


Link to post
Share on other sites

Nooo, this is not for a game. OMG why do u guys always think its for a got damn game?!?! im just here to evolve my skills in Au3.. I feel really offensed when i just ask for some help and you JOS, always comes attacking me :)

Share this post


Link to post
Share on other sites

Find Sleep() in the Help file (if you've found that..). So your code might look like this:

;UP key down
Sleep(X)
;UP key up

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

And i know what the SLeep(X) command is, but i want the arrow key to stop going up after X amount of seconds..EDIT: Oh i tried that before, but i didn't seem to get it working. but isn't there any command that like makes the script stop after for example 3-4 seconds. But thanks! this works too!!

Edited by Snickers

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Sure, there are really many programs were simulating the UP key is applicable.

As to me now chasing your ass: You elected to ignore me and several others when asked what you really wanted.

I told you to do your own work first and you still seem to be incapable of doing that.

Act normal and you won't find me on your path... your choice.

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                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

Hey alohha, seeing how you want to learn, did you try taking AutoIt 1 2 3?

umm no:P actually i just went straight to the homepage and downloaded it :) so i guess im working with autoit 3

Share this post


Link to post
Share on other sites

Autoit 1 2 3 is a tutorial on how to script in the program, I'd suggest looking at it and the help file.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

This is what MPH is referring to - Autoit-1-2-3.

Edited by somdcomputerguy

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

umm no:P actually i just went straight to the homepage and downloaded it :) so i guess im working with autoit 3

Glad you agreed being a lazy bugger....

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                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

Bye bye ban evader person thingy.

2 people like this

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0