P
ptpwjp
That's interesting. I didn't know about that.
In my program is instruction:
SendKeys.Send("%{TAB}^{INS}%+{TAB}")
(% - SHIFT; ^-CTRL; %- ALT)
1. %{TAB} - give processor to last application;
but chars: ^{INS}%+{TAB}"
are in keyboard , so they work:
2. ^{INS} copy selected text to box(?)- where- I haven't word in my mind
now,write it to me;
3. %+{TAB} - give processor to previous application;
But in my test, previous application wasn't my application, but VB2008 with
debugger,
so
after test was result:
the selected text was in box(?)- I test it in notepad,but processor was
returned to vb2008 but next instruction wasn't done.
So solution:
SendKeys.Send("%{TAB}")
SendKeys.Send("^{INS}")
SendKeys.Send("%+{TAB}")
isn't good.
Because after 1, the next can't be done, because in keyboard buffer there
wasn't anything.
So how can I get text from box to my variable in my VB2008 application?
I don't understand this table , but I tested it too.I just tried the API keybd_event, sending the
following parameters in succession:
17, 0, 0, 0
45, 0, 0, 0
45, 0, KEYEVENTF_KEYUP, 0
17, 0, KEYEVENTF_KEYUP, 0
In my program is instruction:
SendKeys.Send("%{TAB}^{INS}%+{TAB}")
(% - SHIFT; ^-CTRL; %- ALT)
1. %{TAB} - give processor to last application;
but chars: ^{INS}%+{TAB}"
are in keyboard , so they work:
2. ^{INS} copy selected text to box(?)- where- I haven't word in my mind
now,write it to me;
3. %+{TAB} - give processor to previous application;
But in my test, previous application wasn't my application, but VB2008 with
debugger,
so
after test was result:
the selected text was in box(?)- I test it in notepad,but processor was
returned to vb2008 but next instruction wasn't done.
So solution:
SendKeys.Send("%{TAB}")
SendKeys.Send("^{INS}")
SendKeys.Send("%+{TAB}")
isn't good.
Because after 1, the next can't be done, because in keyboard buffer there
wasn't anything.
So how can I get text from box to my variable in my VB2008 application?