i ask you too much
-
i send message from vb.net to another application .. the send operation is done successfully but the problem is some times the message change by adding a character or repeat character such as if : dim s as string ="42945:dn" send.sendwait(s) the message will print as 42945:dn but some time will print in the another application 442945:dn and some time 442294::dn really i dont know why ... some friend advice me to use Trim function but i dont know if it will do as i want or no... please this is the 15 time that i ask you to help me and give me the function that keep the string as i defined it before send it to another application but unfortunatlly no answer .. keep me in ur mind. kilany
-
i send message from vb.net to another application .. the send operation is done successfully but the problem is some times the message change by adding a character or repeat character such as if : dim s as string ="42945:dn" send.sendwait(s) the message will print as 42945:dn but some time will print in the another application 442945:dn and some time 442294::dn really i dont know why ... some friend advice me to use Trim function but i dont know if it will do as i want or no... please this is the 15 time that i ask you to help me and give me the function that keep the string as i defined it before send it to another application but unfortunatlly no answer .. keep me in ur mind. kilany
This is absolutely the LAST time I'm going to say this. THERE IS NOTHING WRONG WITH THE CODE!! You're using SendKeys to send this data to another application, which is notoriously unreliable! The value of the variable is NOT changing when you call SendKeys. The problem is that your destination application isn't cooperating with SendKeys! Is there anything you can do about it?? Short of seeing if you can get an updated version of the target application, no, there isn't... Dave Kreskowiak Microsoft MVP - Visual Basic
-
i send message from vb.net to another application .. the send operation is done successfully but the problem is some times the message change by adding a character or repeat character such as if : dim s as string ="42945:dn" send.sendwait(s) the message will print as 42945:dn but some time will print in the another application 442945:dn and some time 442294::dn really i dont know why ... some friend advice me to use Trim function but i dont know if it will do as i want or no... please this is the 15 time that i ask you to help me and give me the function that keep the string as i defined it before send it to another application but unfortunatlly no answer .. keep me in ur mind. kilany
There is no level on which you can send one number and recieve another. It's got to be the way in which the number is being handled in code. What's send ? Are you using WM_COPYDATA to send stuff between applications ? If not, what are you using ? Christian Graus - Microsoft MVP - C++
-
There is no level on which you can send one number and recieve another. It's got to be the way in which the number is being handled in code. What's send ? Are you using WM_COPYDATA to send stuff between applications ? If not, what are you using ? Christian Graus - Microsoft MVP - C++
The mother of all f-up's: SendKeys Dave Kreskowiak Microsoft MVP - Visual Basic
-
This is absolutely the LAST time I'm going to say this. THERE IS NOTHING WRONG WITH THE CODE!! You're using SendKeys to send this data to another application, which is notoriously unreliable! The value of the variable is NOT changing when you call SendKeys. The problem is that your destination application isn't cooperating with SendKeys! Is there anything you can do about it?? Short of seeing if you can get an updated version of the target application, no, there isn't... Dave Kreskowiak Microsoft MVP - Visual Basic
BUT THIS PROBLEM WILL BE ALSO IF THE DESTINATION IS NOTEPAD PLEASE TRY TO USE SEND() FUNCTION BETWEEN MINIMIZE AND MIXIMIZE THE WINDOW THEN YOU WILL FIND SOME THING BUFFER OR SOME THING CHANGE LESS OR MORE CHARACTER WILL ADDED TO THE ROOT STRING ... SO THE PROBLEM NOT THE DISTINATION BECAUSE I USE THE FUNCTION IN MANY TARGET APPILCATION ... I THINK THE PROBLEM IS THE DELAIY .. I NEED TO KNOW HOW I CAN DELAIY THE FORM WHEN I MINIZE IT .. THIS IS THE LAST CHANCE TO USE IT ...BECAUSE THE PROBLEM THAT IT PRINTS ALL STRING IN SMALL PERIOD LESS THAN 1 SECOND kilany
-
There is no level on which you can send one number and recieve another. It's got to be the way in which the number is being handled in code. What's send ? Are you using WM_COPYDATA to send stuff between applications ? If not, what are you using ? Christian Graus - Microsoft MVP - C++
I use a usually string character or number but the problem that randomlly after some click on button which make send string ,, the send() function add or remove some character or number ... so how can i delay the message according to time .. that mean i think i should not print all the message one time.. kilany
-
The mother of all f-up's: SendKeys Dave Kreskowiak Microsoft MVP - Visual Basic
-
I use a usually string character or number but the problem that randomlly after some click on button which make send string ,, the send() function add or remove some character or number ... so how can i delay the message according to time .. that mean i think i should not print all the message one time.. kilany
As you may have noticed by the discussion that happened around this question, what you're doing is just plain terrible. It's just not the right way to go. You have options that are sensible, mainly the ones I listed when I asked. You never answered, BTW, without Dave's comment I'd be even less able to help you. The best help I can offer is to scrap what you're doing, and do it properly. Christian Graus - Microsoft MVP - C++
-
BUT THIS PROBLEM WILL BE ALSO IF THE DESTINATION IS NOTEPAD PLEASE TRY TO USE SEND() FUNCTION BETWEEN MINIMIZE AND MIXIMIZE THE WINDOW THEN YOU WILL FIND SOME THING BUFFER OR SOME THING CHANGE LESS OR MORE CHARACTER WILL ADDED TO THE ROOT STRING ... SO THE PROBLEM NOT THE DISTINATION BECAUSE I USE THE FUNCTION IN MANY TARGET APPILCATION ... I THINK THE PROBLEM IS THE DELAIY .. I NEED TO KNOW HOW I CAN DELAIY THE FORM WHEN I MINIZE IT .. THIS IS THE LAST CHANCE TO USE IT ...BECAUSE THE PROBLEM THAT IT PRINTS ALL STRING IN SMALL PERIOD LESS THAN 1 SECOND kilany
If you can't send keys to Notepad properly, I'd say you have a problem with your system. notepad is nothing but a glorified TextBox control. During this entire time, you never once mentioned WHY your trying to control another application and even WHAT that application is. I've already said that you have to look for other methods that are reliable, like an SDK or COM component for that application. Now, you've just about run out of time to look... Dave Kreskowiak Microsoft MVP - Visual Basic