Closed Thread
Results 1 to 2 of 2

Thread: Buttons that when pressed enter a certain sting of keys?

  1. #1
    Join Date
    Mar 2010
    Posts
    1
    Rep Power
    0

    Buttons that when pressed enter a certain sting of keys?

    I wanna set up a panel, that will, when opend up will sit on the side of the screen. It will consist of around 8 or so large buttons each with a different name on them. When the buttons are clicked on they will send the keys Ctrl+shift+F9 for example. Each different button will have a different variation of keys that it will automaticly send. The idea behind this is that I will have another program running that will be se up to perform actions when certain keys are pressed (Autohotkey if your familiar).

    Now I'll be honest, I dont have a clue with visual basic, or any code other than html, hence why I'm posting here hoping I can get some help. Can anyone provide me with some information on how to set up buttons or how to do this entire task? That would be greatly apprechiated!

    Look foward to reading what you suggest,

    Graham

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    hampus.tagerud's Avatar
    hampus.tagerud is offline Learning Programmer
    Join Date
    Mar 2008
    Location
    Sweden
    Posts
    46
    Rep Power
    15

    Re: Buttons that when pressed enter a certain sting of keys?

    It sounds like you want to dock the panel on the desktop? I think I tried this when some time ago but realised that I couldn´t find any solutions to it in VB. I did find it for C# though. I have attached a zip file with an example project. This is not visual basic but C#, hope it can help you anyways!

    Here is an article about sending keys to another application in C#: Sending Keystrokes to another Application in C# - CodeProject

    NOTE: I have not done this, I found it on codeproject but couldn´t find the article again so I zipped an example.

    C# Docking.zip
    http://www.mediafire.com/?ijmhzkymm4t
    Last edited by hampus.tagerud; 03-25-2010 at 06:34 AM. Reason: Forgot to put in the link....

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Win32 How To Tell If Key Pressed When A Child Window Has Focus?
    By RhetoricalRuvim in forum General Programming
    Replies: 3
    Last Post: 02-14-2011, 08:24 AM
  2. Alex G. CSS "Sexy Buttons" - what about "submit on 'ENTER'" ?
    By shackrock in forum JavaScript and CSS
    Replies: 7
    Last Post: 12-05-2010, 04:57 PM
  3. Replies: 3
    Last Post: 11-19-2010, 03:55 PM
  4. Detect pressed keys
    By ganav in forum C and C++
    Replies: 4
    Last Post: 07-30-2010, 05:39 AM
  5. Redirect PHP Form after a button pressed
    By Thevenin in forum PHP Development
    Replies: 4
    Last Post: 05-13-2010, 03:43 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts