Get User Keys While Program In Background
Jul 23, 2009
I'm working on a small project that will take Screen shot in several modes, the big problem that I'm facing currently is that I don't know how to capture the user keys will my application is minimized or when it's not the active window, i must do so if i want to let the user capture anything without having my application hiding the object (window) he want to its screen shot.
View 2 Replies
ADVERTISEMENT
Dec 15, 2009
im trying to make a program that only listens to a few keys that the user presses, and if one of them is pressed, it carries out a specified command.for example, right now,i found a keylogger that could carry out my command, but id rather use something else if possible. right now, i have a timer running this:
For i = 1 To 255
result = 0
result = GetAsyncKeyState(i)[code]....
Then, in the textbox1_textchanged, i search for like if textbox1.text.contains("M") or something.problem with this, is im pretty sure its a keylogger, and i dont want to have to have that. also, it does not work in vista.
Found a solution! (should have researched more throughly!)
Option Strict On
Imports System.Runtime.InteropServices[code].....
View 1 Replies
Mar 12, 2009
i want my program to understand what i push the key "+" for example and do something. i can write this "something" but i dont remember how to make it see when i push the keyboard keys (NOTICE: i want the program to see the keyboard keys even if the program is minimized and another program is maximized)
View 5 Replies
Dec 9, 2011
I am trying to make a application that will bind User Desired Keys to User Desired Text. This is what I have done so far, it is not very much but it keeps crashing and visual basic is not telling me anything is wrong with it. I basically just want the user to be able to select a hotkey from a combobox. [code]
View 3 Replies
Oct 21, 2008
I have a problem detecting whether one of the arrow keys is pressed, all the other keys seem to be detected apart from the arrow keys??? I have set key preview to True........ It detects the arrrow keys BUT ONLY if I have NO other controls on the form??? example..
Me.Text = e.keycode
It works, but then if I add a button for example, it stops.
View 3 Replies
Nov 10, 2009
Im making an key counter and ive got the program to count all keys at the time, i just can't count mouse buttons, i would really like to have help with this, if any of you wanna help im online at my own IRC chat. [URL]..
View 2 Replies
Nov 27, 2010
I Want manage the keys state in my program(in vb 2010) but 'key press event' cant manage more than a key in a time.i want manage keys for commanding something.(for example if "CTRL AND AIT AND Shift And "A" and "S" was pressed do something)
View 3 Replies
May 2, 2010
Is there a way to make it so if you pressed a button for example, it would "press" the enter key or something similar.
View 14 Replies
Jan 12, 2011
I'm helping a friend port some code that I have written in Java to Visual Basic.NET. VB.NET is not my language of choose, so I am entirely new to it's quirks. How can I display keys from a HashTable in a ListBox?
View 2 Replies
Sep 4, 2011
I am wondering on how to write the code such that the program will respond when 2 arrow keys are pressed at the same time. In other words, I would like to have the program to behave like a racing game.
View 1 Replies
Dec 14, 2009
I have this code for my shortcut keys
Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
If e.Shift = True And e.KeyCode = Keys.F3 Then
'Do something
End If
But I also have a button to send my program to the System tray like so:
NotifyIcon1.Visible = True
Me.Visible = False
How can I get my shortcut key to work while my program is in the system tray?
It doesn't work while its a notify icon
View 1 Replies
Oct 21, 2011
I want to make a simple program that will click certain keys on my keyboard at a certain interval. I have VB10. Could someone provide me with some code?
View 7 Replies
Sep 13, 2010
I was wondering if there is any way to make a program recognize a keyboard shortcut while its not the active program
View 1 Replies
Nov 17, 2010
The purpose of my application is to keep track of users waiting to use another application that may only be accessed by one user at a time.My vb.net application adds the persons name to the end of a text file, removes names when a person either gets to the front of the line or exits by closing my app.It regularly checks the list, and when the user gets to the front of the list, it notifies him and loads that other program.My problem is, I don't want the user to have to sit staring at my app until they get to the front of the line.I want the app to cause the computer to emit a regular, slightly annoying beep,even if the user has minimized my app or pulled up Microsoft Word on top of it, and continue to beep repeatedly until the user switches back to my app and presses a key or clicks the mouse.
View 4 Replies
Jul 25, 2011
I am building a application in VB 2010 Express, that tracks sales leads, I have everything working except 1 last item. I want the users to be able to select a different background image to match their industry. I have all the images embedded, but can't figure out how to allow the user to select.
Preference is to have a separate form for the user to cheese on launch, but I am OK with it just being a dropdown in the lower left corner of the app.
View 3 Replies
Jun 30, 2011
Using arrow keys to move a shape also changes the value of trackbars elsewhere in the program?
View 7 Replies
Mar 10, 2010
How could i make it so the user can change the background on a form like he/she can choice from a list of backgrounds or add there own image as a background? also how could i make it so a button or a drop down button launches a form in the project itself?
View 7 Replies
Jun 25, 2011
just wondering how i could give my auto typer hot keys, for example they press f1 to start the typer f2 to stop it.
[Code]...
View 4 Replies
Mar 25, 2011
I'm trying to create a shortcut which expands or collapses my treeview using the ctrl+alt+up-arrow or ctrl+alt+down-arrow:
If Keys.ControlKey And e.KeyCode = Keys.Alt And e.KeyCode = Keys.Down Then
mytreeview.ExpandAll()
End If
[code].....
View 2 Replies
Apr 10, 2009
I am already familliar with applying an image to a form background. My application has many in it, but I want to give the user the option of browsing for an image of their own to apply to a form. I don't intend to save the images as defaults or anything. Just the option to browse and apply to a form.
View 6 Replies
Jul 31, 2009
How do I give the user a color chooser for the background of a form or anything else? I would like to be able to give him all colors in vb.net.
View 2 Replies
Feb 24, 2011
How can i change the background image during runtime? so far, i have an openfiledialog that grabs the location of the .png or .bmp file and then i have this below it[code]...
How can i fix the error that i get "Type system.string cannot be converted to type system.drawing.image"
View 4 Replies
Dec 3, 2008
I am attempting to write a simple 11ball style game. It requires images of poolballs overlapping each other. Since the balls will need some internal intelligence I was hoping to create them as usercontrols.I am having trouble gettiing the control's background to be transparent.Setting the background color to (Web) transparent only makes the background clone the form background color.
View 1 Replies
Jul 31, 2009
how do i set the background color of my form to what the user picks from colordialog?
View 1 Replies
Jul 16, 2009
i'm currently wonder how to let the users change the font size via a combo box(I have it set up for Small,Medium and Large) That should be fairly easy. The next is more complex. I want users to be able to browse for an image and use it as the background image of the program.
View 4 Replies
Apr 8, 2009
I'm working on a CNC control program, based on a DLL that someone else wrote. No problems with that sofar, as i get good support from the writer.
The problem i do have to tackle is the following: I want to acces all the functions by means of softkeys ( the F-Keys at the top of our keyboards ) when the program starts it shows the Main menu softkeys ( F1-F12), and each F-key has a function assigned to it, some will make the machine move, others will show another menu, or a fileopen/save dialog, depending on the chosen keys.
All works fine and handy-dandy, except for the F10 key, it seems to be "Sticky", when i press it, the program will not react to any other key, only the F10 key can get it back in "normal state" accepting every key with a function assigned..
How to "unstick" the F10 after pressing it?.. because pressing F10 now, means no other key will do anything, and that may become dangerous, when the machine is moving and it must be stopped..
View 11 Replies
Jan 13, 2011
How could I loop through a list of the keys that are available in the 'Keys' enumeration? It seems like it should be something easy to do, but I'm not having any luck finding a collection that I can loop through.
View 6 Replies
Jun 9, 2010
I got a problem here. How can I let the program run in background when I click the minimize button on the right up corner?While it is running in background, I also wish there will be a small icon shown in the system tray.
View 3 Replies
Sep 30, 2011
is it possible to call another program in the background? I'n doing a project that uses .net to control a camera. the camera is nikon, which has a sdk. unfortunately, the sdk is an unmanaged dll, from the research I did, people complained that it is difficult to use it in .net. actually, no1 has example. but the sdk has sample in vc++. so, I'm thinking maybe can build the control program by vc++, then use vb.net or c# to it and run it in the background. so, I do not have to mess the dll to .net.
is this a good choice? or, not really? how to do it? if I use a console program, how to avoid popping up the cmd window?
View 4 Replies
Jul 26, 2009
I'm trying to change the background color of a node that is being hovered over while the user is dragging items from a list box.I've gotten both functions to work separately, but while the user is dragging, the NodeMouseHover event does not fire. Is there a way to do both?
vb Private Sub trvNavigation_DragEnter(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles trvNavigation.DragEnter
If Me.CanMove(e) Then
e.Effect = DragDropEffects.Copy
[Code]...
Note: CanMove() is a function I made that verifies the dragged data. Nothing else. And I will change "Color.Blue" to a system color later.
View 2 Replies