Results 1 to 10 of 10

Thread: Right click item

  1. #1

    Thread Starter
    Fanatic Member invitro's Avatar
    Join Date
    Jan 2000
    Location
    Outside your window
    Posts
    547

    Unhappy

    Does anybody know how to make it so, when u click on a file an option will be there to scan it.. with your program? Is there something u need to add into the Windows Registry to do that, or some kind of ini file? I have absolutly no clue how to approach this.

    Anybody know? Please help
    Thank you in advance!
    ok, so... windows takes 1 minute to search for a file on my PC yet google.com takes 1 second to search the entire internet?

  2. #2
    Guest
    Yes, there is a certian Root where you add it. I will go look for it and get back to you when I find it.

  3. #3
    Guest

    Try this root

    CLSID\Directory\shell\MyKey

    In the key MyKey there shuld be a data called (default) and you should set the value of it to whatever you want it to say...

    I'm not really sure if it'll work on your computer...I'm also not sure how it all works, but try it. I have to go right now, but tomorrow, i'll see if i can get it to trigger your App.


  4. #4
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946
    I will live forever or die traying.

    Little typo I do believe >>>>>>

    Should be:

    I will live forever or die trying.
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I'm not sure what you guys were talking about but HeSaidJoe, do you mean rightclick in explorer, as a FileType, Then in the menu you click open with your app?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  6. #6

    Thread Starter
    Fanatic Member invitro's Avatar
    Join Date
    Jan 2000
    Location
    Outside your window
    Posts
    547
    Yes, when you right click on a explorer item...
    u know how when u install winzip.. when u right click on an item in explorer it will give u an option to zip it.

    Im traying to recreate the same effect except scan the selected file.


    And yes, u are correct with the typo. Im gonna go change that right now.
    ok, so... windows takes 1 minute to search for a file on my PC yet google.com takes 1 second to search the entire internet?

  7. #7
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    There's a recent thread called filetypes, go search for it
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  8. #8

    Thread Starter
    Fanatic Member invitro's Avatar
    Join Date
    Jan 2000
    Location
    Outside your window
    Posts
    547

    Unhappy

    I havefound it but it dosen't tell me anything. I dont even know how to add an item (without any submenus).
    All i want is to shell it to my program, and somehow get the file or files that i need to scan.

    Whenever i was looking at the registry settings some of them had {18723490817-} ect. in it. I dont know even know how to approach that. Is that hex or something?!?!
    ok, so... windows takes 1 minute to search for a file on my PC yet google.com takes 1 second to search the entire internet?

  9. #9
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177
    In the HKEY_CLASSES_ROOT Hive of the Registry, locate you Extensions Application Name Entry, then Add the items you want to appear on the Context Menu to the "Shell" Key, add a "Command" Key to each item you add in which you store the EXE path and name in the {Default} value, i.e.
    Code:
    HKEY_CLASSES_ROOT
       Some.Application
          Shell
             Open
                Command - (Default) = "C:\SomeApplication.exe %1"
             Scan
                Command - {Default} = "C:\ScanApp.exe %1"
    In this exampe any file with an Extension that reference's the "Some.Application" key will have "Open" and "Scan" on it's context menu.

    - Aaron.

  10. #10

    Thread Starter
    Fanatic Member invitro's Avatar
    Join Date
    Jan 2000
    Location
    Outside your window
    Posts
    547

    Thumbs up

    Thanks that works prefectly. But, whenever i select more then 1 file, it opens more then 1 of my progams. Is there any way to make it send the parameters to my program in one single string?

    eg. So it wont execute
    open my.prog /Fileselected
    open my.prog /fileselected
    open my.prog /Fileselected

    But instead it will do this
    open my.prog /Fileselected1 /Fileselected2 /Fileselected3



    Any ideas?
    ok, so... windows takes 1 minute to search for a file on my PC yet google.com takes 1 second to search the entire internet?

Posting Permissions

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



Click Here to Expand Forum to Full Width