Search found 29 matches

by TO7
Tue Oct 23, 2012 4:46 pm
Forum: Coding Questions
Topic: [Solved] PostMessage / #WM_KEYDOWN / #WM_KEYUP
Replies: 8
Views: 4695

Re: PostMessage / #WM_KEYDOWN / #WM_KEYUP

Works good now
But like say luis, PostMessage not works with #WM_KEYDON/UP
it is necessary to use SendMessage and WM_CHAR

Thanks you both, i believe 5 methods to sending text is enough for the user 8)

Best regards
by TO7
Tue Oct 23, 2012 3:16 pm
Forum: Coding Questions
Topic: [Solved] PostMessage / #WM_KEYDOWN / #WM_KEYUP
Replies: 8
Views: 4695

Re: PostMessage / #WM_KEYDOWN / #WM_KEYUP

It's better but not again done 8)
The Uppercase are not here, and i have not the number but the letter under it
This is the result
hello &
hello é
by TO7
Tue Oct 23, 2012 2:14 pm
Forum: Coding Questions
Topic: [Solved] PostMessage / #WM_KEYDOWN / #WM_KEYUP
Replies: 8
Views: 4695

Re: PostMessage / #WM_KEYDOWN / #WM_KEYUP

Thanks a lot for your explanation luis 8)
So, I mourn the loss of these two methods :lol:

So i believe i have found all methods now ??
All this methods works fine :D

1/ KeybEvent key by key method
2/ ClipBoard KeybEvent CTRL c+v
3/ ClipBoard Sendmessage WM_PASTE method
4/ SendInput method
5 ...
by TO7
Tue Oct 23, 2012 2:05 pm
Forum: Coding Questions
Topic: [Solved] PostMessage / #WM_KEYDOWN / #WM_KEYUP
Replies: 8
Views: 4695

Re: PostMessage / #WM_KEYDOWN / #WM_KEYUP

Thanks luis
PostMessage is not the right way to send input to another app I try to use PostMessage because in a forum C, a member say not use SendMessage replace it by PostMessage :(

As you say not to use PostMessage, I wonder if you can do it with SendMessage, or in both cases should not do ...
by TO7
Tue Oct 23, 2012 12:05 pm
Forum: Coding Questions
Topic: [Solved] PostMessage / #WM_KEYDOWN / #WM_KEYUP
Replies: 8
Views: 4695

[Solved] PostMessage / #WM_KEYDOWN / #WM_KEYUP

Hi,
I have two problem with this code:

1 / Apparently the # WM_KEYUP double the character, is this normal?
2 / I can not write the numbers 1 and 2, they are replaced by the symbol that is on the same key.
I'm sending the SHIFT key, it still does not work

Could you help me?

RunProgram("notepad ...
by TO7
Mon Oct 22, 2012 10:12 am
Forum: Coding Questions
Topic: Handle of the object holding the cursor
Replies: 7
Views: 2507

Re: Handle of the object holding the cursor

Have you try the exe in the link ???
If you try it you understand what i want to do :)
I want just can copy text in another application and paste it in PB appli, and of course the opposite.

Since yesterday i have found another way to send text to another application.
It's again a code of Netmaestro ...
by TO7
Sun Oct 21, 2012 6:35 pm
Forum: Coding Questions
Topic: Handle of the object holding the cursor
Replies: 7
Views: 2507

Re: Handle of the object holding the cursor

Apparently my project does not interest many people. :(
I progressed through a code of FWEIL, I can now list the classes and thanks to DIGGER I can focus on the good.
It remains problematical and not least, I still do not know how to detect the object in focus, so whoever at the cursor when the ...
by TO7
Sun Oct 21, 2012 9:53 am
Forum: Coding Questions
Topic: Handle of the object holding the cursor
Replies: 7
Views: 2507

Re: Handle of the object holding the cursor

Nobody can help me ?
My program works with items like keys CTRL+C / CTRL+V and also with sending each character.
But I would have loved to have the direct method sending a text, if it is possible of course.

To show you what I've done, here's a draft of my program.
It is super simple to use, well I ...
by TO7
Fri Oct 19, 2012 1:12 pm
Forum: Coding Questions
Topic: Handle of the object holding the cursor
Replies: 7
Views: 2507

Re: Handle of the object holding the cursor

I tried with this code, the word goodbye is sent, but the caption panel codeBlock before called "SCIwindow" is now called "goodbye" :shock:
The text is not sending to the cursor
Procedure EnumChildProc(hwnd, lParam)

If hwnd
result = 1
tLen = SendMessage_(hwnd, #WM_GETTEXTLENGTH, 0, 0)
text ...
by TO7
Fri Oct 19, 2012 10:15 am
Forum: Coding Questions
Topic: Handle of the object holding the cursor
Replies: 7
Views: 2507

Re: Handle of the object holding the cursor

Thanks for your answer.
The SendKey works, it's the most simple method

But i believe, i need a little bit of help for the sendmessage, i don't know how use this API :oops:
And i have search RealChildWindowFromPoint on the forum, the only one answer is your post :lol:
Hwnd = FindWindow_(0 ...
by TO7
Fri Oct 19, 2012 8:33 am
Forum: Coding Questions
Topic: Handle of the object holding the cursor
Replies: 7
Views: 2507

Handle of the object holding the cursor

hi,

I try to create a Snippet manager, for do that i send key to the external application.
The problem is some application have several tab, and even if i enumerate the class into this application i'm not sure to send the text to the good tab.

Have you a way for obtain the handle where the cursor ...
by TO7
Fri Oct 19, 2012 7:57 am
Forum: Coding Questions
Topic: [Solved] Save content of ClipBoard
Replies: 15
Views: 3709

Re: [Solved] Save content of ClipBoard

I try to reproduce the same manager template that PB.
It is very good, and I used every day.
Several problems, gave me the idea of ​​trying to create one myself.
1 / I do not really like that found in freeware
2 / When using several machines and also several versions of PB, think to copy and ...
by TO7
Thu Oct 18, 2012 10:11 am
Forum: Coding Questions
Topic: [Solved] Save content of ClipBoard
Replies: 15
Views: 3709

Re: [Solved] Save content of ClipBoard

Aaaahh !!! Bad news :(
Perhaps i can sending text at the cursor of the IDE focused by another way ??
by TO7
Thu Oct 18, 2012 9:43 am
Forum: Coding Questions
Topic: [Solved] Save content of ClipBoard
Replies: 15
Views: 3709

Re: [Solved] Save content of ClipBoard

You probably want to use the clipboard as an interim transfer or holding. Yes exactely
What is it you need to do? I want create a little universal snippet manager.
I need for that, to can sending to all IDE (PB Ide, Jabpbe, NotePad++, CodeBlock, VC++, VB, etc ...) a snippet.

The most simple way ...
by TO7
Thu Oct 18, 2012 9:08 am
Forum: Coding Questions
Topic: You need to put in the clipboard a few files.
Replies: 10
Views: 2326

Re: You need to put in the clipboard a few files.

A array begins with 0!
ooops !! :oops:
Works great now, thanks for your help and sharing..