Does anyone know how to send keys like PgUp, PgDn, down arrow, up arrow in a DOS window. I can send a carraige return using %CR%, but don't know how to use the others.
Alistair
Using other than ascii keys in DOS window
Moderators: JRL, Dorian (MJT support)
-
- Junior Coder
- Posts: 22
- Joined: Wed Nov 16, 2005 3:58 am
- Location: Gold Coast, Australia
-
- Junior Coder
- Posts: 22
- Joined: Wed Nov 16, 2005 3:58 am
- Location: Gold Coast, Australia
This works for me using Windows XP.
Paste the following into a new macro, make sure you remove any trailing spaces. Assign the macro a hotkey. Open a fresh DOS window. Make sure that it has focus ( that it is the foreground window) Then execute the script by using the hotkey (mine was set to CTRL + Shift + p)
Here is the macro:
Wait>1
Send>c:
Wait>0.5
Press Enter
Wait>0.5
Send>cd \
Wait>0.5
Press Enter
Wait>0.5
Send>dir
Wait>0.5
Press Enter
Wait>2
Press Up
Wait>1
Press Enter
Wait>2
Press Right
Wait>1
Press Right
Wait>1
Press Right
Wait>1
Press Enter
Hope this works for you.
Dick
Paste the following into a new macro, make sure you remove any trailing spaces. Assign the macro a hotkey. Open a fresh DOS window. Make sure that it has focus ( that it is the foreground window) Then execute the script by using the hotkey (mine was set to CTRL + Shift + p)
Here is the macro:
Wait>1
Send>c:
Wait>0.5
Press Enter
Wait>0.5
Send>cd \
Wait>0.5
Press Enter
Wait>0.5
Send>dir
Wait>0.5
Press Enter
Wait>2
Press Up
Wait>1
Press Enter
Wait>2
Press Right
Wait>1
Press Right
Wait>1
Press Right
Wait>1
Press Enter
Hope this works for you.
Dick
-
- Junior Coder
- Posts: 22
- Joined: Wed Nov 16, 2005 3:58 am
- Location: Gold Coast, Australia
- CyberCitizen
- Automation Wizard
- Posts: 724
- Joined: Sun Jun 20, 2004 7:06 am
- Location: Adelaide, South Australia