Sign in to follow this  
Followers 0
hyuri

some commands plz

7 posts in this topic

hi ppl,

well i am quite new in this so sry.

i want to write a macro with crimson editor which presses a few keys for me,

but i need certain delays for pressing the keys and certain delay for holding the

keys, can anyone help me out??

Share this post


Link to post
Share on other sites



sry..

well i write in crimsoneditor:

send ("{up}") does this mean it presses the "up" key 1 time?

sendkeydowndelay ("{up}, 2000)

does this hold the key for 2 secs ?

thats what i am lokking for

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

thx for help

another questions

1.do i have to write this in crimson editor or is it enuf to use notepad for example

2.how can i tell autoit to repeat the task ? with loop(10000000) ?

mfg hyuri

Edited by hyuri

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

well it should repeat it my task 10000000000

until i stop myself

and another thing:

when i want autoit to hold a key for 2 seconds, whats the command for it?

Edited by hyuri

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

thx loop works fine

how do i have to use this

Opt("SendKeyDownDelay", 10000)

to let autoit hold a key for 10 secs?

Edited by hyuri

Share this post


Link to post
Share on other sites

Haven't tested but I assume that this will affect all the {key down} commands in your script.

The Opt function changes the operation of many other AU3's functions. So I don't believe that this is your case, since you can control the delay individually within each command in your script (I don't really think you need an overall setting; I may be wrong though).

In any case try to test a bit by yourself and read the helpfile's references.. What you ask is really obvious in the helpfile..

Check the Opt, SendKeyDelay, and SendKeyDownDelay references for more info.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

well i write in crimsoneditor:

Eh.. I don't like Crimson Editor. I tried it once, as my first thing other than notepad, but then I found JdeB's SciTe for Autoit. I highly recommend you use that instead.

Edit: Link if you want :idiot:

-Aaron

Edited by killaz219

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