Send 'a' And Capslock To The Active Application?
Mar 13, 2012I'm looking for a simple sendinput example, f. e. how can I send 'a' and capslock to the active application?
View 1 RepliesI'm looking for a simple sendinput example, f. e. how can I send 'a' and capslock to the active application?
View 1 RepliesI amtrying to send ALT + 1 Key to the active application but the problem i am having is when i use SendKeys.SendWait("%1") the program ignores the alt key and jsut enters the 1. is there a way i can get this done?
View 11 RepliesI have a standard Visual Studio 2008 VB.Net WinForm application, running on Vista Business. One of the forms has a timer that passes Me.Handle to FlashWindowEx. This works as intended as long as none of the windows that belong to this application are the Foreground window. If this program is running and another application's window is the Foreground window, then it flashes as intended. If, however, any of this application's windows are the Foreground window, then it doesn't flash.
[Code]...
How to detect whether Caps Lock/Num Lock is on/off on a keyboard?
View 2 RepliesI Just finished a very nice Excel database front end, using mostly code snippets and tutorials learned from this site, I am new to .net and OOP having only ever trained in VB6, many many years ago and working only with VBA since then, and now I'd like to add a little extra polish to my humble app, so I need some expert help.
The problem really lies with one user in particular, who insists on typing with the capslock on when using my application, filling the database with odd records of only uppercase, when challenged she protests she isn't computer savvy and finds capitals quicker and easier.
I am aware of the string conversion tricks (ToUpper/ToLower/ToProper) available, however, due to the nature of the information being entered, it needs to be true mixed case, certain information might contain for example brand names, which often have uppercase/lowercase letters which vb or Excel for that matter simply cannot pragmatically account for (McDonalds is a good example, neither upper, lower or 'proper' as defined by the rules)
And so to my cunning plan, it is my desire to disable the capslock key! I am already setting a set of rules for each user based on Environment.UserName and so I am hoping just for this one user I can switch off the ability to use caps, as everyone else behaves themselves. I have tried to code me own way down this path but as yet have failed on all accounts.
Want to send the text from my current vb application to the Active Window and that text should be displayed in the text area of the active window.
View 1 RepliesI am in need of a small application, that will allways be topmost and will send keystrokes to the last active application (typically notepad or an explorer window). My problem is retrieving the current active form (or application), when my application is started up. Every search seems to return old and rather complex solutions using Win32 library functions, but I was kinda hoping, that .Net allowed for a neater and more simple solution.I need a code example or link on how to retrieve the currently active application window from another application just starting up.
View 2 RepliesHow I can run handler from one application to another, for example:
In application one I have form1 and button.
In application two I have also form1 and button.
Now how I can run handler for button on form1 in first application from application two?
I have a mdi application. When some childforms are open (but only one is active) and the user press a button, I want to know, what form is open, because depending on this, an event will fire up. I imagine this so: at first I determine the active form with a separate function. And then with a select case statement the event will be fired up. How can I make this?
View 2 RepliesHow do I minimize all active forms in my application with a single button click?I have multiple forms visible at a time, and I want all my active forms to minimize when I click on a single button on one of the forms.
View 2 RepliesI am developing a Windows Forms application. I have four forms which is inherited from Baseform in another project. In all four forms I am using a label to show some transaction count based on network status. I have implemented a thread which gets the active form of application and setting up the text. The code works fine if application screen is active. If I minimize and open any other application, I am getting an null error exception.
How do I get the active form of an application?
Private Sub StartThread()
pollThread =New Thread(AddressOf PollfileStatus)
pollThread.IsBackground =True
running =True
pollThread.Start()
[Code] .....
I want to know if the Windows Run key pressed. How can it be possible? What's the constant or ascii code for this key? The second: How can I know if the program, I wanted to use, is activated? What's the correct func. for this?
View 2 RepliesI have created a program which should perform a certain action whenever a certain group of keys is pressed at the same time. The program must be able to run in the background, or in the system tray or something. Essentially, this should work like the KeyDown event on a form, except the form in this case is everything.
I'm not certain if there is a way to do this directly from within the .net API, but if there is I certainly have not found it.
I've tried everything to set my window as active after I've been working on another external App... I have my system on auto and need to send some keystrokes to the program using sendkeys, so I need that app active. I've tried almost everything I can think of, bringtofront, setfocus, windowstate, setactivewindow, setforegroundwindow (For the last 2, hwnd doesnt work - I'm using VB 2008 Express) but none of them seem to be working.
View 4 Repliesis it possible to make one application send a task to another application and recieve the result from that secondary app?i made a text editor program and i added a scan feature and i made another app that has ocr capabilities.The scanner ability is in my text editor program, the ocr program doesnt scan you have to input an image into it and it will give text result a few seconds later.the prob is alot of times the ocr code uses sooo much memory and crashes when its incorporated with my text editor, but individually each application works fine and doesnt take too much memory. Memory wont be even an issue if the ocr program is standalone so that when it is done decoding image the application can be made to exit. now here is the question, how do i make my text editor send the image to the ocr program and how do i make my ocr program send the text back to my text editor? is it possible? i mean the only way i know off is creating temp files in a certain folder and having a timer on each program that keeps waiting for temp files. That just seems like pretty lame coding to me i was wondering if there's a better way?
View 11 RepliesI need to send a short string, (less than 30 bytes, but sent every second), from one VB application, to a Delphi application.. is this possible, using CopyDataStruct, WM_COPYDATA and SendMessage functions in Windows?
View 1 RepliesI'm having troubles with terminating an application. When I close the main form everything disappears but the process remains active. I think I know the cause, a certain activeX component will not release properly. As soon as I create one, I can't close normally...
dim someActiveXcomponent = new X()
...
<formClosing>
someActiveXcomponent = nothing
GC.Collect()
GC.WaitForPendingFinalizers ' here it hangs
Probably a bug in that component, but the problem is that I don't have much of a choice, I'll have to use that component for now.
Calling
System.Runtime.InteropServices.Marshal.ReleaseComO bject( myObject )
will kill the reference and now the application closes properly.
I have created an application which has a parent form and various child forms, when all child forms are closed and only the parent form is viewable would it be possible to exit the application?[code]...
View 3 Replieshow to get all the active mdi child in an application..it is possible to work? me.ActiveMdiChild.Name
View 1 RepliesI want to build a logger that shows how much time I use on difffifernet applications on my pc.
How can I get info about what what application is has the focus.
I'm new to .Net, OOP and this forum but love it!
I want to make an application that allows the manager of the company whether the employees are truly active: screenshot and a "timer" to measure the time of the activity of the employee Can be controlled using the mouse or keyboard while the application is not active, but in execution.Is it possible in vb.net to know if the user of the machine is using the mouse or keyboard? My idea is to set a "Timer" which triggers automatically after the connection of the employee and every 10 seconds the application checks whether the mouse position has changed or a letter is entered on the keyboard except the"Timer" Will Be stopped until have a new mouse position or activity on the keyboard. But the problem is: is the application able to know the position of the mouse or to capture all keyboard input even if the application n 'is not active(not in the foreground)?
View 2 RepliesI am new to VB; am developing my first VB program; and require some help in getting started. I wish to query information from an Active Directory server using a Visual Basic 2008 console application. I have .NET Framwork 3.5 installed and VB 2008 Express installed. Do I need to install anything else (any additional libraries or components)? Is VB 2008 Express capable of accessing information from Active Directory? Where can I find information about the classes and methods I should use query information from Active Directory?
View 6 RepliesI have already asked about the problem in java forum.Now i think the solution is only possible through microsoft products.Problem is i want to get the handle of a application and send commands to that application.Is it possible commands are send to combo box , text area, buttons etc..
View 2 RepliesHow can I send data from a C++ application to a VB application?Or the other way around, read with VB the data from de C++ application.Is it possible like a setvalue or getvalue command?
View 3 RepliesI want to get the active control (control which has the focus or where the cursor is on) each time the cursor moves to another control or each time a control receives a focus.
View 5 RepliesI've to send SMS from My web Application (I'm using ASP.NET VB). My SMS API is on .php site. Here is a Sample.
[Code]....
I want 2 send a sms through vb6 application ,i want to know the possible options.
View 1 RepliesI want to send SMS by windows application. I ran the code but I got an error. This is
AT
OK AT+CMGF=1
OK AT+CSCA="+9460921985"
[code]......
I have a solution, which has two projects.Project A generates an executable. Project B generates a dll,which is used by the executable. This project I downloaded from CodeProject site, and it worked very well.[code]...
View 5 Replieshow i could send an email from within a vb application?
View 3 Replies