Change Radio Button on a FoxPro program

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
RogerE
Newbie
Posts: 4
Joined: Wed Oct 19, 2005 2:33 pm

Change Radio Button on a FoxPro program

Post by RogerE » Fri Apr 20, 2007 1:40 pm

We are using an older (7.3) version of MSched, to run some overnight tasks on a commercial system built using FoxPro.

There is one part of the system that shows 2 radio buttons and a push button. Unfortunately there is no keyboard shortcut to change the radio button, so it has to be done by highlighting the relevent button and clicking with a mouse. The up and down arrows move between the 3 buttons, but the radio buttons themseves are not selected until clicked. Pressing Enter causes the push button to "fire".

As you can guess the default is to show the wrong radio button!

Is there a way to let MSched change the radio buttons?

Many thanks

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Fri Apr 20, 2007 1:50 pm

Can you use

MouseMoveRel>X,Y
Lclick

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 » Fri Apr 20, 2007 1:57 pm

Some thoughts:

1. Have you tried using PushButton> ?

2. Have you tried MouseMoveRel> and LClick to activate the Radio Button Group so that you can then use Tab/Shift-Tab to move between the buttons, then press Space and Enter?

3. Can you have someone change the aplication default using FoxPro so this does not even need to be done?

4. Or can it be modified to make a hot key assigned to the button values.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

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