Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Shortcut  (Read 4953 times)

0 Members and 1 Guest are viewing this topic.

JM

  • Guest
Shortcut
« on: October 25, 2005, 01:49:21 AM »
Hi,is there anyone can teach me how to create shortcut key access for my .exe program in VB,so that it can automatically triggered using just a shortcut key,without having to go to it's path and click it...
anyone there pleaaseee help..you may just send your help to my email at [email protected]
please help....
thanks...

Fed

  • Moderator


  • Sage
  • Thanked: 35
    • Experience: Experienced
    • OS: Windows XP
    Re: Shortcut
    « Reply #1 on: October 25, 2005, 02:03:29 AM »
    Quote
    you may just send your help to my email

    Capon  :P

    Sidewinder



      Guru

      Thanked: 139
    • Experience: Familiar
    • OS: Windows 10
    Re: Shortcut
    « Reply #2 on: October 25, 2005, 07:21:39 AM »
    All my responses are posted to the forum. I do not do email except under special circumstances. This is not one of them.:o

    Normally this is done when you design the form. By including an icon in the form, all the makings of the shortcut are complete. If you package your project for installation, the shortcut is created automatically during the install.

    You can create a shortcut manually by right clicking the desktop, choose new-->shortcut and fill in the screen. Also manually, you can find the program in Windows Explorer, drag it to the desktop and when the screen pops up choose create shortcut

    This script will create a desktop shortcut via the command line.

    Code: [Select]

    set WshShell = WScript.CreateObject("WScript.Shell")
    strDesktop = WshShell.SpecialFolders("Desktop")
    set oShellLink = WshShell.CreateShortcut(strDesktop & "\Shortcut Script.lnk")
    oShellLink.TargetPath = WScript.ScriptFullName
    oShellLink.WindowStyle = 1
    oShellLink.Hotkey = "CTRL+SHIFT+F"
    oShellLink.IconLocation = "notepad.exe, 0"
    oShellLink.Description = "Shortcut Script"
    oShellLink.WorkingDirectory = strDesktop
    oShellLink.Save


    Change the parameters accordingly, save script with an extension of vbs and run from the command line:

    cscript scriptname.vbs

    Good luck.  8)
    « Last Edit: October 25, 2005, 07:28:43 AM by Sidewinder »
    The true sign of intelligence is not knowledge but imagination.

    -- Albert Einstein

    humanrain2k

    • Guest
    Re: Shortcut
    « Reply #3 on: October 27, 2005, 09:03:07 PM »
    thanks dude for your reply,but yes I know how to do that but what I want to do is to create shortcut on the notification task bar(the one beside the time on the task bar)Is there any direction to do that?Please tell me how.

    Sidewinder



      Guru

      Thanked: 139
    • Experience: Familiar
    • OS: Windows 10
    Re: Shortcut
    « Reply #4 on: October 28, 2005, 07:27:22 AM »
    [*sigh*]

    Most people try to get stuff out of the notification area. There is a freeware program available at PutInTray

    Next time please be more specific in your post.

    Good luck. 8)

    Are you and JM one and the same person?
    « Last Edit: October 28, 2005, 07:28:16 AM by Sidewinder »
    The true sign of intelligence is not knowledge but imagination.

    -- Albert Einstein

    JM

    • Guest
    Re: Shortcut
    « Reply #5 on: October 28, 2005, 11:02:37 PM »
    Yes I'm also JM,thanks dude i look on to your tip..