VS 2010 System Keys Names?
Oct 11, 2010What names / number of the following keys (marked in red):
View 13 RepliesWhat names / number of the following keys (marked in red):
View 13 RepliesI'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].....
I want to use System.Windows.Forms.Keys with a variable for example
shortcutkey = "A"
keydata = System.Windows.Forms.Keys.shortcutkey
The idea was to implement custom shortcuts that the user specifies to perform certain actions.
My code is like this
If (((BindingFunctions.IsKeyDown(Keys.ControlKey) AndAlso BindingFunctions.IsKeyDown(Keys.ShiftKey)) AndAlso BindingFunctions.IsKeyDown(keyData)) AndAlso (keyData = Keys.L)) Then
[Code].....
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
I'm trying to build an application that when I press a keyboard shortcut, say CTRL + ~, if the window is minimized to the system tray it is displayed.
I have seen a few programs do this and have always wondered how to do this, but haven't had the opportunity to do learn it until now and I really don't know if its something simple or complex.
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.
I have a List box that I would like to populate with the Windows Font Names, how can I do this?
View 2 RepliesI would like to create/use a system-wide independent universal 'counter object' that can be called via COM in a thread-safe manner. The counter object will be passed an ID to identify which counter to return, handle the counting, 'persist' the count (occasionally), have reasonable performance (as fast as possible) perhaps capable of 1000 counts per second or better (1mS) and be accessible cross-process/out-of-process. The current count status must be persisted between object restarts/shutdowns.
The counter object is liklely to be a 'singleton' type object implemented in some form of free-threaded dictionary, containing maybe 10 counters (perhaps 50 max). The count needs to be monotonic and consistent, (ie: guaranteed unique sequential values).Each counter should have a few methods, like reset, inc, dec, set, clear, remove. As a luxury, I would like to have a variable-increment (ie: 'step by' value). To support thread-safefty, perhaps some sorm of critical-section or mutex call. It just needs to return a long/4byte signed integer.
I really want something that can be called from anywhere, including VBScript, so I figure COM is my preferred solution.The primary use of this is for database keys. I am unable to use autoinc or guid type keys and have ruled out database-generated counting systems at this point.I've spent days researching this and I have really struggled to find a solution. The best I can find is a free-threaded dictionary object that can be instantiated using COM+ from Motobit - it seems to offer all the 'basics' and I guess I could create some form of wrapper for this.
[Code]...
I am making a fake virus program as a joke and would like to know how to disable all of the keys except for the shift and enter keys.(these will exit the program)
View 1 RepliesHow can to Know If the key is pressed and according to act?
View 9 RepliesAfter countless hours of production, I've finally got a working product that I'd like to market. However, I obviously don't want this product stolen and torrented. So, how exactly would I add license support to my program? I'd like to make the license paired with a number that's unique to the compute
View 13 RepliesI'm making a kiosk style desktop replacement.
Im using setwindowshookex to run a callback system to trap the keys just trapping "windows" key atm.
if I step through just as the program goes the the keyboardcallback function declaration line it pauses for seconds before moving to the next line. This directly precedes the new variable declaration of the callback variable
While running this leads to only 1 press of the "windows" keys causing several hits of the "youve pressed windows key warning" sometimes 4 or 5 times with large pauses inbetween inwhich the window is unresponsive.
The Start menu is normally blocked however occasionally during the unresonsive times it might pop up but this is rare.
Or common reasons/solutions to setwindowshookex being slow Anyone know alternative method of blocking all hotkeys (apart from the 3finger salute i understand that, that is not accessible)?
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]...
I have a lot of keyboard keys stored in different formats. For example, "Up" may be stored as a string, as a decimal (200) or as hex (C8). I need to convert all of this different representations to strings so they can be easily understood by the user, and then back again when I save them.When I capture the key press using the KeyDown event, I can grab the decimal value from KeyEventArgs.KeyCode, which can easily be converted to hex if needed.
View 2 Repliesim trying to make something to protect my application a simple serial key the only thing i can think of is if textbox1.text = ("key") then blah blah blah you get it. what i really want is something that will allow me to add and remove keys without having to mod the application, something that would check a site like
View 22 RepliesI've encountered another minor problem with using vs 2010...how do you assign shortcut keys? I've read you just click in the shortcut keys option then press the buttons you want to be your shortcuts- this however just acts like I'm pressing the shortcut keys for vs. for instance alt x, which I want to be exit, takes me to debug. Typing alt + x in manually gives me an error saying what I've put in is invalid.
View 8 RepliesI've finished my chat spammer, and it's not working the way it's suppose to (In Game). However, it works properly in chat rooms. Instead of it spamming once per line, it clumps the messages together.
If FormOptions.ChFilter.Checked = False And FormOptions.CHad.Checked = False And FormOptions.ChTroll.Checked = False Then
SendKeys.Send(TxtSpam.Text)
SendKeys.Send("{enter}")
ElseIf FormOptions.CHad.Checked And FormOptions.ChFilter.Checked = False
[Code] .....
It works if I don't check anything (This code):
If FormOptions.ChFilter.Checked = False And FormOptions.CHad.Checked = False And FormOptions.ChTroll.Checked = False Then
SendKeys.Send(TxtSpam.Text)
SendKeys.Send("{enter}")
But the "troll" ones with multi-lines don't.
I want to know if i click button1 then it's auto press keys.Tab and then keys.Enter.
View 5 Repliesi am trying to make a proper keylogger. i have programmed the qwer QWER 123 and !@# keys but it wont read the ,< .> type ok keys for some reason, how to make the program read these keys
View 10 RepliesI have a loop that takes text from a richtexbox, and pasts it into a field on a html web form within a webbrowser control.When i run my code, it goes to where it copy/pastes the text, however it keeps doing this over and over and over and over again, it wont just copy and paste 1 time, and stop.[code]
View 1 RepliesI am trying to read keys and values from the registry. The keys I am looking for do exist in the registry, but the variable mRegKey is still Nothing after the first line is run.I have also tried different keys under HKLMSoftware, some work and some dont. HKLMSoftwareATI is found but HKLMSoftwareOracle is not (both are shown in regedit).[code]
View 3 RepliesHow would I go about doing this? I was thinking I could possibly use Tab index?
View 4 RepliesHow 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 Repliesthere is this picture on the form How would you make arrow keys move the object around the screen?Also how would you make buttons correspond to arrow keys?
View 3 RepliesI was wondering if there is any way to make a program recognize a keyboard shortcut while its not the active program
View 1 Repliesthis works partially but if I close the reg key as shown I get an error [code]So my question is how/where do I place the Myreg.close and OldReg.Close commands???
View 3 Repliesif anyone here has ever worked with Sentinal HASP keys to protect applications.I understand how to make features in the keys but i do not understand what i need to include in my project to have it authenticate against the HASP at runtime.
View 3 RepliesI have created some check boxes and buttons, and changed the names, but it seems like the system.properties saved both names now I would like to rename the button back to the original name but the name is being stored for some reason, and I cant access the original name, how do I clean this up?
View 6 RepliesI am working on a VB Console Application that takes an Autocad drawing type DWG and converts it to a PDF using a shell command that calls a third party application. In this case, acmecadconverter.exe from [URL]. Then the PDF that is created needs a unique watermark, so I call a second application for that called pdftk.exe from [URL]
Everything works as intended, except when I try file names that contain spaces. The file system object does not tolerate spaces in the drawing file name. For instance, the following command gives me a system.io.filenotfoundexception...
My.Computer.FileSystem.RenameFile("Test Flowchart1.dwg", "Test~Flowchart1.dwg")
It's the same problem for all of my File System commands. Either file not found or invalid arguments.
The complete script I'm using is here:
Sub Main()
Dim arrArgs() As String = Command.Split(","), _
i As Integer, folderPath As String, myPart As String, _
[Code].....
I have a DataGridView which populates from an SQL query just fine in default mode
using these table names
[firstName] [varchar](20) NOT NULL,
[lastName] [varchar](20) NOT NULL,
[code]....
I have edited the column headers and set the column names to the same values as my table names yet the data is not showing in form load I have set datagridview.AutoGenerateColumns = False I know the data is there if I delete datagridview.AutoGenerateColumns = False then the data is shown with the default headings?