hyuri Posted November 29, 2004 Share Posted November 29, 2004 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?? Link to comment Share on other sites More sharing options...
hyuri Posted November 29, 2004 Author Share Posted November 29, 2004 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 Link to comment Share on other sites More sharing options...
hyuri Posted November 29, 2004 Author Share Posted November 29, 2004 (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 November 29, 2004 by hyuri Link to comment Share on other sites More sharing options...
hyuri Posted November 29, 2004 Author Share Posted November 29, 2004 (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 November 29, 2004 by hyuri Link to comment Share on other sites More sharing options...
hyuri Posted November 29, 2004 Author Share Posted November 29, 2004 (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 November 30, 2004 by hyuri Link to comment Share on other sites More sharing options...
erebus Posted November 30, 2004 Share Posted November 30, 2004 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. Link to comment Share on other sites More sharing options...
killaz219 Posted November 30, 2004 Share Posted November 30, 2004 (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 -Aaron Edited November 30, 2004 by killaz219 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