I want to write a programme. It's mantality is as same as Autoit. I have a windows form and when ı clicked to Button, ı want to send 1 or 2 or Ctrl+Alt+F2. My friend is playing a game and said me: can you do this? I said yes. Soooo... I use Sendkeys.send() as below:
First, controlling another application using SendKeys is about the poorst method you can use. SendKeys send keystrokes to whichever window with the focus, without caring about which window has the focus! You could be sending keystroked to Notepad when you actually wanted Calculator. There is no way to guarantee that every keystroke you send is going to end up going to the correct window.
Next, why are you converting the Keys to Characters?? Just send the Keys valoue, not the converted Chr value.
I use it but it sent 1(but Text form of 1 - string)
I don't have the slightest clue what you're trying to say here. This doesn't make any sense at all.
Can I control another program withmy windows programme?
My friend is playing a game. and said me :"can you write a program for me?" I said "ok". And program's function is that: when he push start button, in another programme automatically push 7.. I tried it...
Sorry ı dont know english very well. I tried to explain my problem.
The code sazmple is incomplete. In what method is this code sitting?? And why should a Save method care about which button launched it?? Any differences between the button and menu functionality shoujld be handled by a seperate method, called by seperate handlers from the menu and button controls.
AFAIK, it's the same problem. I can't find any documentation on it. I just remember having one hell of a time trying to get it to work, then I stumbled on something saying it doesn't - about 8 years ago.
I'm new and beginer in work with PID in VB.NET
I want from my app to send a command to other app that running.
I wand to catch the handler of one button from other app
If some can help me please.
If the other app exposes some kind of interface, you'd have to use that interface to interact with it. How you do that is entirely up to what is exposed by the other app.
As for handling the click of a button in another app, I'm afraid you out of luck. Your app will never get any kind notification that anything was clicked on. Unless, of course, the other app exposes such functionality through some kind of interface that it exposes. There is nothing "generic" that is supplied by Windows to do this.
I need some help related to printing from .NET's Webbrowser control. I already figured how to print and how to change header/footer, margins and so on ( Some Cool Tips for .NET[^] ). But how I can change the printer that is used for this printjob?
I know I could use webbrowser's .ShowPrintDialog() or .ShowPageSetupDialog() methods, but my users shouldn't gambling with this dialogs... they only want printing, without any dialogs, so I must select the printer in my source code.
I also know I could change the default printer for exactly the time my printjob is in the pipeline - but that's not fine art, isn't it? That seems to be the ultimate brutal solution, so I would prefer a more elegant solution for my problem. Any suggestions?
Thanks for all answers, and I hope I made my problem understandable...
Strings are already Unicode in VBScript. The MessageBox is not part of VBScript, but is supplied by the system. There is no way to modify how the MessageBox works. It would appear that the system does not have the appropriate language pack installed to show your text properly.
am looking for a code that can help me add or create an sql user using vb.net in my project. I hope this is the right forum to post this since it relates to vb.net!
BTW am using ms sql server 2005
Thank for ur anticipated reply or links.(Pls code!)
Last Visit: 31-Dec-99 18:00 Last Update: 1-Oct-23 20:01