×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

VFP -> Checkout -> WSH
22

VFP -> Checkout -> WSH

VFP -> Checkout -> WSH

(OP)
I am trying to send Ctrl+Enter to the dialog that appears when the VFP Project manager files object checks out a module.

The checkout dialog is inside the vfp window, so AppActivate does not see it appear.

Anyone know how?

Mike Yearwood - Former Microsoft Visual FoxPro MVP award winner. TWICE

RE: VFP -> Checkout -> WSH

From the thread title, can we assume you are using Windows Scripting Host's SendKeys method to do this? If so, the relevant string is:

CODE -->

^{ENTER} 

You might also try:

CODE -->

^~ 

That's a caret followed by a tilde.

But I don't know if it will work in the Project Manager dialogue you mentioned. But worth a try.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: VFP -> Checkout -> WSH

12

Quote (Mike Yearwood - My god, you really think I'm stupid don't you? I already know I need to send ^{Enter})


Mike Yearwood: - unfortunately I don't know the answer.
You keep complaining in your threads that the other members insult you and that you then (also aggressively) defend yourself.
Seeing the dialogue above, I don't know why you respond to Mike Lewis's attempt at help with "my god" and "do you really think I'm stupid?" begins.
Who can still answer you if the person has to fear that you will immediately snap at them?

Hopefully I don't get an aggressive answer now.

greeting from Germany
Klaus

Peace worldwide - it starts here...

RE: VFP -> Checkout -> WSH

Quote (german12)

Hopefully I don't get an aggressive answer now.

Don't get your hopes up bigsmile

RE: VFP -> Checkout -> WSH

3
First of all, thank you for being so detailed about your experience. I don't want to get too involved here, but you forget to see the other side and their experience with your actions and reactions. There is an imbalance about your sensitivity and lack of resilience on the one side and how little it takes for you to become offensive an impatient.

Regarding GoFish: You conclude your fix is rejected. Was that explicitly said or responded to anywhere? Your input could simply not have reached the responsible owner, because he's inactive, resigned, retired or even died. A user reporting the same error twice, he might be forgetful, what's bad or stupid about that? He might just follow up after all that time, not referring back to his first report, because there is no point urging a reaction now when he didn't follow up earlier for not getting a reaction.

There often is no point in getting upset, because in the first place that's causing a bad day for you, not for the other or others witnessing it.

Last not least. You point out that you protest against that and claim all of this to be intolerable behavior of the rest of the world. Well, I'd think about this several times more, if I were you.

Chriss

RE: VFP -> Checkout -> WSH

Regarding the technical issue:

You seem sure this dialog is a VFP dialog, perhaps mainly because "AppActivate does not see it appear"? Anyway, your focus is on how to send CTRl+Enter to a VFP dialog via WHS SendKeys method, isn't it? I don't think it's stupid or judging you as stupid to point out how keys need to be passed in to the WSH SendKeys method using circumflex. Actually it's the only open question I see.

I'm not sure, but I don't think the dialog you want to automate is a VFP dialog. Before I jumpt to conclusions, if it is a VFP dialog then the simplest of all possible solutions would be a KEYBOARD command right before calling Checkout. I'd guess you tried that, so it's no solution, which would point out it's no VFP dialog once more.

I don't know and I am not willing to set up something to verify it, as I do what I think most do - not use the IDE integration via an MSSCC interface anymore. Almost no SCM supports this legacy interface out of the box, Team Foundation Server and Team Explorer use TFVC. SCC providers only exist for TFS up to 2017, only after installing an add-on. Just like many systems only offer this interface by 3rd party agents acting between IDEs and SCM, like AgentSVN or AgentGit, Tam Tam SVN SCC or others.

To send keys to other process windows, WSH Sendkeys is able, but only after they become active. And when they are active, I think they are modal, so you don't get there this way. So if KEYBOARD doesn't work then SendKeys API to Desktop, meaning HWND=0, right before calling File.CheckOut().

Chriss

RE: VFP -> Checkout -> WSH

4
@ChrisMiller, Mike's changes to the VFPX version of GoFish were rejected because he insisted on including comments naming people he said didn't deserve his work. You can read the discussion here: https://github.com/mattslay/GoFish/issues/14#issue...

Tamar

RE: VFP -> Checkout -> WSH

2
Mike Yearwood.
I could only read very briefly your long answer and explanation concerning my thread (in position 3 here), - Thank you - but now I see - it has been deleted.
I can remember that it was about a GoFish Project - and that you attacked Mike Lewis and someone else with your answer again.

It is my understanding that I am not in a position to initiate such deletions - nor have I lodged a complaint - because I have not been attacked.

The management seems to check here automatically whether someone is being attacked or whether swear words are being used.

So there's no point in portraying someone as stupid, fraudulent, or deceptive - and that's a good thing.

I think if you can only contribute to technical solutions thanks to your great knowledge - then no one will delete your threads - why should they?

It would be a shame if that happened again - after it has happened more than once - and it only ever happens to you.

We are allowed to say anything to each other technically - and there are often pros and cons.
That's a good thing, because sometimes the solutions really aren't easy.

But the climate here in the forum remains clean - and I can't imagine that anyone here would want anything else.
Certainly not you either.


Thank you for your understanding.

Best regards
Klaus

Peace worldwide - it starts here...

RE: VFP -> Checkout -> WSH

(OP)
and By the way, I refused to give my work to VFPX. As it stands, I'm only showing how poorly it is made. Doubling its performance with a couple of lines of code? Shame on them and those who don't want to improve.

Mike Yearwood - Former Microsoft Visual FoxPro MVP award winner. TWICE

RE: VFP -> Checkout -> WSH

(OP)
To set the record straight the code I claim was rejected was submitted long ago as a bug fix that the reporter could not fix. They took so long to look at my change that the same reporter tripped over the same exact bug without even remembering I fixed it before.

That is either malicious or dumb.

Mike Yearwood - Former Microsoft Visual FoxPro MVP award winner. TWICE

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close