Jump to content
Sign in to follow this  
Guest arena

Need Help Writing A Script

Recommended Posts

Guest arena

I need to know the script language for performing the following functions:

1. alt and i simultaneously

2. wait less than a second

3. the + above the enter on the numpad (right side of keyboard)

4. wait less than a second

5. the enter above the shift key

6. wait less than a second

7. the up arrow of the four directional keys (not the numpad)

8. wait less than a second

9. the enter above the shift key

10. wait less than a second

11. esc key

so far i think it is suppossed to look like this, but i dont really know what im doing:

Send ("!i");

Sleep(0250);

Send ("{NUMPADADD}"); (<---- what should i type for the numpad +?)

Sleep (0250);

Send ("{ENTER}");

sleep(0250);

xxxxxxxxxxxxxxxxx (<---- this is the up arrow, completely lost here)

sleep(0250);

Send ("{ENTER}");

sleep(0250);

Send ("{ESCAPE}");

Sleep (0250);

EndFunc

any help on translating this to autoitv3 language would be greatly appreciated.

Edited by arena

Share this post


Link to post
Share on other sites
vickerps

AutoItSetOption ( "SendKeyDelay", 100 )

AutoItSetOption ( "SendKeyDownDelay", 50 )

Send ("{ALTDOWN}{i}{ALTUP}")

Send ("{+}")

Send ("{ENTER 2}")

Send ("{ESCAPE}")

Share this post


Link to post
Share on other sites
GrahamS

AutoItSetOption ( "SendKeyDelay", 100 )

AutoItSetOption ( "SendKeyDownDelay", 50 )

Send ("{ALTDOWN}{i}{ALTUP}")

Send ("{+}")

Send ("{ENTER 2}")

Send ("{ESCAPE}")

Err, I think that it is Send("{NUMPADADD}") to get the plus key on the numeric pad.

Send("!i") is fine for Alt+i

The {UP} does the up arrow

Finally you can put it all in the same send command

My modification of the above script is

AutoItSetOption ( "SendKeyDelay", 100 )

Send ("!i{NUMPADADD}{ENTER}{UP}{ENTER}{ESCAPE}")

GrahamS

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.