Newbie Keyboard Press problems

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Macca
Newbie
Posts: 8
Joined: Mon Mar 22, 2004 6:32 am
Location: Tasmania

Newbie Keyboard Press problems

Post by Macca » Mon Mar 22, 2004 6:35 am

I have been trialling Macro Scheduler all day but no way can I get it to recognise the Arrow keys or the Number Pad keys or the Function keys?

It works OK on Press Enter and Press Enter*3 but not on Press Down or Press NP3 or Press Page Down? I can't even fool it by going NumOff and the Press NP2 etc.

Any suggestions?

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Mon Mar 22, 2004 6:53 am

It is always helpful to provide an example of your script so we can help.

But it is important the Focus is set properly for the Press and Send and MouseMove functions to work properly

You should enter something like this:
SetFocus>Untitled - NotePad*
Press CTRL
Press HOME
Release CTRL
Send Character/Text>Hello World
Press ENTER
Press TAB*2
Send Character/Text>Goodbye World
Press ENTER
Send Character/Text>This is the end.
Press ENTER
Press UP*2
Send Character/Text Now is time to say
Press CTRL
Press END
Release CTRL
You should end up with something like this:
Hello World
Now is time to say......................Goodbye World
This is the end.
If you cut and paste from this forum be sure to remove all trailing spaces.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Macca
Newbie
Posts: 8
Joined: Mon Mar 22, 2004 6:32 am
Location: Tasmania

Post by Macca » Mon Mar 22, 2004 9:43 am

Many thanks Bob

I can get it to work in Notepad & Editpad by first pressing Enter on the worksheet but I still can't get it to work in my program called TK-TOOLS
Would this be because it is a Dos based program running in Windows?
When I run the script below the Cursor is supposed to Move DOWN*4 and the ENTER activates but what happens is the cursor does not move but ENTER activates OK? I think I need a Macro Scheduler that follows the actual keystrokes. BTW the Number Pad keys don't activate the Cursor either?

Mike.

// C:\PROGRAM FILES\MJT NET LTD\MACRO SCHEDULER\Hello World.scp
// Recorded on Monday, March 22, 2004, at 08:15 PM

//Recorded Events
Let>WW_TIMEOUT=5
CapsOff
MouseMove>314,347
Wait>0.01
SetFocus>TK-TOOLS
Press CTRL
Press HOME
Release CTRL
Press DOWN*4
Press ENTER

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Mon Mar 22, 2004 3:58 pm

Have you tried to insert some Wait> commands, and make the Down keys discrete, like this:
Press CTRL
Wait>1
Press HOME
Wait>1
Release CTRL
Wait>1
Press DOWN
Wait>1
Press DOWN
Wait>1
Press DOWN
Wait>1
Press DOWN
Wait>1
Press ENTER
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Macca
Newbie
Posts: 8
Joined: Mon Mar 22, 2004 6:32 am
Location: Tasmania

Post by Macca » Mon Mar 22, 2004 9:43 pm

Yes Bob

Tried that still NBGo, must be the Dos based program that stops these keys from working.

Mike.

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Mon Mar 22, 2004 9:47 pm

Is the DOS program running in a Window, or Full Screen?
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Macca
Newbie
Posts: 8
Joined: Mon Mar 22, 2004 6:32 am
Location: Tasmania

Post by Macca » Mon Mar 22, 2004 11:07 pm

It is running in a window Bob.

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Mon Mar 22, 2004 11:22 pm

Thanks, still looking for clues. Wrong answer, though. I have no problems using those commands in other DOS programs running in Windows, was hoping that Full Screen might make a difference.......

Hmmmm, someone will come up with a solution......hang in there.....
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Macca
Newbie
Posts: 8
Joined: Mon Mar 22, 2004 6:32 am
Location: Tasmania

Post by Macca » Mon Mar 22, 2004 11:59 pm

Bob

I have tried it in all sorts of configs full screen, diff screen sizes, even diff fonts, still the same recognises Press Enter but not Press Down etc etc

Mike.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts