Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keyboard command
Message
From
28/02/2004 01:59:17
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00881620
Message ID:
00881759
Views:
37
I'm running a "custom" PC with an 800 mhz Intel processor, Windows ME (all my other OS's are currently trashed due to various circumstances) and VFP 7 SP1.

As far as I'm concerned, the 3 lines of code I showed you "work" (the _VFP.Autoyield property is not important ... It was something I thought was a factor, but clearing the "hello" from the command window indicates it was not).

Not sure what you mean by: "how to control the behavior" ? You mean clearing "hello" from the command window ? I would look into this but only once you can reproduce "my behavior"; ie. it works with the 3 lines I showed and one clears the command window between each iteration.

In any event, in a "live" application, the command window should not be a factor.

I can mock up a simple form, read events, etc, and probably prove to you that the "3 lines of code" would work in a regular application, if you wanted me to ...



>Gerry, thanks
>
>Any clue on how to control the behavior?
>Could you give more details on what is the PC, Windows version, VFP version?
>
>>I get "hello" in the popup window and "hello" in the command window ...
>>
>>However, running the same little program repeatedly I start getting inconsistent results, UNLESS I clear the "Hello" from the command window first.
>>
>>>Just to make sure:
>>>Do you get "hello" in the popup window and "hello" on the command window?
>>>Or do you get "ello" on the command window?
>>>
>>>>Funny ... seems to work for me ... with a "clean" start of VFP 7.0.
>>>>
>>>>There may be another environment setting that is impacting you :(
>>>>
>>>>>Thank you, but still no luck.
>>>>>
>>>>>>Insure
>>>>>>
>>>>>>_VFP.Autoyield = .T.
>>>>>>
>>>>>>
>>>>>>prior to running that section of code.
>>>>>>
>>>>>>>No, it does not help.
>>>>>>>
>>>>>>>>
>>>>>>>>KEYBOARD "hello"
>>>>>>>>DOEVENTS
>>>>>>>>WAIT WINDOW "hello"
>>>>>>>>
>>>>>>>>
>>>>>>>>>Looks like this always works in revert order:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>KEYBOARD "hello"
>>>>>>>>>WAIT WINDOW "hello"
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>What should be done to delay the second line execution until keyboard is completed?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform