VB Or C# - Run App In System Tray And Listen To Keyboard Input Without App In Focus

Mar 28, 2010

I want to make an app which on loading sits in the system tray and even after I open another program (say notepad or vlc or anything) i.e. even when the app is not in focus and if I press "G" on my keyboard, the tray icon should show a tool tip - "key G is pressed". I have tried several codes but nothing works when the app goes out of focus. I can use Register Hot Key [url] but it needs a modifier also (like Ctrl or Alt etc. along with my key G). So, is there any way I can achieve this? something which many tray icons do like antivirus apps, etc. and I do not want to use AutoHotkey application.

View 2 Replies


ADVERTISEMENT

C# - Send Command To A Application In The System Tray To Launch A Form For Input

Apr 26, 2010

This is what I'm trying to accomplish: I have a Point of Sale application that integrates with a credit card processesor. I wan't to remove any user interfacing logic in regards to the credit card processor in the point of sale and add it to a application that sits in the background or system tray. I want to be able to send a command to the background app to popup a form for user input.

For example: User in the Point of Sale clicks a button "Credit Card" at this point it will send a command to the background app say "ProcessCC" which will pass a transactionid and an amount , this will open a form for the user to enter in the credit card information and submit the payment to the credit card proccessor.

Reason: I need to get a padss certification and don't want to submit the point of sale to do it. Rather send the simple background app that will control any credit card processing functionality such as encryption , storing etc. I know it can be done using sockets but was hopping for an alternative solution.

View 1 Replies

Listen To Left And Right Arrow Key On The Keyboard?

Aug 17, 2009

I am trying to use m.WParam to separate the event raised by left arrow key "<-" and right arrow key "->", but somehow m.WParam always = 0. How can i separate the event raised when the user press left or right arrow key?

[code]...

View 1 Replies

Get VB 2008 To Listen To The Keyboard Key Strokes When In Another Program?

Aug 2, 2009

How do I get VB 2008 to Listen to the Keyboard Key strokes when I am in another program??

View 4 Replies

Deployment :: Show Program Tray Icon In The System Tray

Jan 3, 2010

my program has a tray icon and i want it to show up in the system tray. so i went into my windows notification area and set it to show icon for my app. But when my app update to a new version with clickonce, it will think its a new app and i have to set it again. Is there a way that it will treat all new version as the same program and i dont have to keep setting it?

View 3 Replies

C# - .NET WinForms - Listen To Events For System LogOff - User Locked - Hibernate Started And System Resumed?

Feb 11, 2010

I want to listen to events in my windows forms .NET application for the following system wide events :

[Code]...

View 1 Replies

'Listen' To Microphone Input And Playback Simultaneously?

Mar 23, 2012

I'm developing a Public Announcement appplication with two main features:

1. Record audio and playback on event (I've achieved this)

2. Allow 'realtime' playback on event - no recording, just a live announcement

So, how can I cause the microphone input to be sent to the speakers simulatiously as the announcer speaks?

mciSendString("open new Type waveaudio Alias recsound", "", 0, 0)
mciSendString("play recsound", "", 0, 0)

View 2 Replies

Where To Learn To Program Stuff For Windows Like Cd Tray - Desktop - Keyboard

Apr 4, 2009

Where should I go to leanr to program stuff like getting keystrokes, locking keyvoards, changing desktop backgrounds, opening CD trays, changing IE homepage, etc.... Basically everything windows... I'm using VB.NET right now. Is there an api or something to learn for this kind of stuff?

View 10 Replies

VS 2010 Sending Strings To Application Out Of Focus / Or In Tray?

Dec 11, 2010

I have googled this and found older vb codes that do not work in 2010. The user, in this case a "cheater/hacker" isn't suppose to be aware of a running program that checks memory and some other information. I have succesfully read the values of certain memory adresses in my program, now I need to send those values to another program secretly opened as a date and time sort of thing. The program checks for malicius attempts to edit memory or edit information inside the software and it automaticly deletes all the data or does a "ban" if somebody attempts to freeze memory and edit it.

So the problem is how to send this data to program out of focus, I can send strings with appactivate but it will open my security program to screen everytime memory changes witch is almost every milisecond so it's almost useless cause it keeps switching focus. I need something to send it out of focus, so my question is;

I make a hook between my program and my security program, send messages/strings out of focus or in tray?Also it would be good if I could make my program "invisible" so he can't be seen even in tray and still keep working.

View 2 Replies

Detect Keyboard Keys When Out Of Focus?

Jan 14, 2011

how can i detect pressed keyboard keys while the focus is not on my running win form or any of its controls ?

View 1 Replies

Wpf - Moving Keyboard Focus Away From ListBox?

Mar 28, 2009

I'm developing a program in WPF (VB) that relies on keyboard navigation only.In my program, I have a listbox that displays up to 20000 items.What I want is that when the listbox has keyboard focus, and I move to the bottom item that is visible (using ArrowDown), I want the focus to move to the next item outside the listbox. I'm using PgUp and PgDown to scroll the listbox contents, and text search to jump to items.Is there a way to detect if the focused/selected item is the last/first visible item in the listbox?If so, I could just use:

ListBox1.MoveFocus(New TraversalRequest(FocusNavigationDirection.Down))

View 2 Replies

VS 2008 Focus Textbox (numerical Keyboard On Screen)?

Jan 19, 2011

I have a form with some textbox and a numerical keyboard on screen. The following code works well if only it had 1 textbox..

Private Sub botones_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bt0.Click, bt1.Click, bt2.Click, bt3.Click, bt4.Click, bt5.Click, bt6.Click, bt7.Click, bt8.Click, bt9.Click, btDec.Click

[Code]...

View 6 Replies

Intercept And Modify WinXP On-screen Keyboard Key Focus Event?

May 24, 2012

I've adapted the code from this link to use the WinXP on-screen keyboard (osk) for a touch-screen application written in VB.NET v3.5. The osk fills the bottom half of screen etc. and behaves fine except for one little quirk. If the user clicks or taps anywhere on the 'background' area behind/between the virtual keys (within the main osk window), the color of the area changes to that of the keys when any further key subsequently gets focus. The outline of all keys is then lost because they are visually merged into the osk window background. The osk must then be terminated and re-launched to remove the confusing appearance.

This behaviour only occurs when the osk window is set to the child style (i.e. when the menu is hidden), using the SetWindowLong P/Invoke function - e.g.

SetWindowLong(OskProcess.MainWindowHandle, GWL_STYLE, WS_CHILD)

It's as if the entire area behind the keys is being treated as another key when tapped/clicked, whereupon its color is 'restored' after losing focus.Is there any way to intercept and somehow override the focus event of this osk background area?

View 7 Replies

Touchscreen Keyboard, SendKeys, Returning Focus To Original Control?

Oct 22, 2010

This isn't really a VB specific question. It's .Net in general... if you have ideas in another .Net language, let me know... I know most of the .Net languages (I don't know that foxtrot or what not weird ones). Furthermore this isn't a 'I don't know the method on some class I should be using' kind of question, it's a design/problem solving kind of question.I'd like to know how you'd approach the problem with in the boundaries set.

View 3 Replies

Way To Capture Keyboard Input

Mar 23, 2010

I have USB RFID reader which acts like a keyboard; how can I capture the keyboard Input?

As Windows 2000 and Windows XP obtain exclusive access to Input and Output reports for keyboard/mouse devices.

View 1 Replies

Way To Mimic Keyboard Input?

May 20, 2009

Ok so I've been searching the forums for the past hour (I used the search feature) and have had no luck coming across what I wanted to do.

I have a application that I'm going to launch remotely on 12 LAN computers at one time, but to activate the application, I need to press "r' on the keyboard. What code would I need so that I can run a .exe file through the command console that targets the process CapWiz.exe that is open and then mimics a keystroke on the keyboard "r".[code]....

View 5 Replies

Detecting Keyboard Input In VBscript?

Sep 12, 2011

The script should detect which key is pressed from the keyboard, including F keys; the script should start and when the user presses F2 should print something like "you pressed F2", when the user presses "A" should print "you pressed A", and so on

View 1 Replies

Disable The Keyboard And Mouse Input?

Jan 30, 2010

How can i disable the keyboard and mouse input?

Its not working:

Option Strict On
Option Explicit On
Private Declare Function BlockInput Lib "user32" (ByVal fBlock As Boolean) As Long

[Code]......

View 7 Replies

Moving An Object From Keyboard Input

Mar 5, 2011

I'm trying to make a picturebox move left by 5 pixels when i press the left key. I am completely lost right now to be honest, and I've been trying to figure this out for the last 4 hours. I haven't done VB in two years, so feel free to crucify me on my mistakes, I learn better that way.[code]One thing I am wondering, is if I have to hardcode the picture box into my form?

View 2 Replies

VS 2010 Changing Keyboard Input?

Aug 22, 2011

How do I change the keyboard inputs when a button's held down.Example: When SpaceBar is held down, if letter Q is typed P will the input instead.

I've tried KeyDown / KeyPress but that doesn't seem to be working

View 4 Replies

Activate An App That Is In The System Tray?

Aug 27, 2008

I'm using VB 2005, and trying to write a console app that (among other things) activates a different program that is in the system tray.

View 1 Replies

Formless System Tray App?

Jun 23, 2010

I im trying to find out if it's possible (using VB.net 08 Xpress) to create an application running solely out of the system tray, no forms - Just the icon and popup notifications.I have been considering building a tray based monitoring system for some time, and while I can get the code to work fine, I still need the thing to start up silently. Using Me.Hide() on Form load doesn't work, and I really don't want to work around using the start-up form as a splash page.I have also looked at making a module, but standard vb.net code just aint doing the job.

View 10 Replies

Get All System Tray Icons?

Mar 22, 2010

I have a problem: I have got an application that is mainly control by a tray icon and I can't show the window unless I click the icon, but the client computer has set the system not to show the icons in the tray area. So can I write a small app to act like a hand-make system tray? That means I have to get all the icons in the tray area and be able to send the mouse events to the icons and let them response to their own program.

View 1 Replies

How To Minimize To System Tray

Jun 27, 2009

I have created a program that i want to be able to minimize to the system tray in stead of the task tray... Dose anyone have a code on how to do this?

View 18 Replies

Minimize To System Tray?

May 31, 2008

I've looked all over the internet and did a search on Dreamincode.net but I can't find anything on minimizing to the tray for Vb 2008.What I want to achieve is if the user hits the "X" button at the top, the application should minimize to the tray. When I right-click on the icon, a context menu strip should appear.

View 14 Replies

Startup In System Tray

Aug 25, 2009

i only want my app to load in tray if it loads on windows startup.[code]it works any other time, the resize event. just not onload.

View 4 Replies

System Tray And Driver?

Feb 15, 2011

I'm working on a security type program that has a system tray that starts with windows and a driver to prevent it from being closed. Any ideas where to start?

View 3 Replies

VS 02/03 Exe Icon In Tray Of System?

Feb 28, 2010

I want a simple .exe's icon in system tray (with an image) and when user right clicks that it should show some options like

1) add two numbers when user clicks this it should open a running form of addition of my exe.

2) negate 2 numbers Same like above but for negation.

I am using VS 2003 framework 1.1

View 1 Replies

Capture Keyboard Input With Text Boxes?

Jul 13, 2011

I was a professional software designer using VB6. Now that I've converted to VB2005 years later, use, with pages of unrelated information. With VB6 I could use Left$, Mid$, etc to parse keyboard input into a string. For example in the KeyPress event of a name box I could use

Case "A" To "Z"
CFName$ = Left$(CFNameBox.Text, CFNameBox.SelStart) + Key$ + Mid$(CFNameBox.Text, CFNameBox.SelStart + CFNameBox.SelLength + 1)

When converting a program from VB6 to VB2005 the software changed the line to

CFName = VB.Left(CFNameBox.Text, CFNameBox.SelectionStart) & Key & Mid(CFNameBox.Text, CFNameBox.SelectionStart + CFNameBox.SelectionLength + 1)

When writing another program I used the VB.Left(), etc, but it gives me an error. So, the question is, what is the correct way to capture keyboard input from text boxes and construct strings?

View 13 Replies

How To Make VB2010 Take A Simple Keyboard Input

May 22, 2011

I used to program in BASIC, and am trying to learn VB now. What I am trying to do at the moment is take a keystroke on the numeric keypad (1-9 only) and pass it into my program to control what happens to a number as follows:[code]I can't seem to find anything in VB that allows simple keyboard entry in this manner.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved