topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 6:12 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: Shortcut Creator  (Read 88352 times)

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: Shortcut Creator
« Reply #50 on: June 10, 2010, 03:39 PM »
I would like to try one list.

[...snipped...]

P.D. Please leave one option in the right menu to launch any application.

I'm sorry but I don't understand either of these.

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: Shortcut Creator
« Reply #51 on: June 10, 2010, 03:43 PM »
I would like to modificate the script CTRL+SHIFT+S to modify during the shortcut copy the comment in it.
I intend to consider how this might be accomplished.

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: Shortcut Creator
« Reply #52 on: June 10, 2010, 03:44 PM »
To follow the firefox addon for shortcuts
http://forums.mozill...p?f=38&t=1917131
 :) from Spins
Thanks for the link.  I intend to take a look.

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: Shortcut Creator
« Reply #53 on: June 10, 2010, 05:15 PM »
To follow the firefox addon for shortcuts
http://forums.mozill...p?f=38&t=1917131
 :) from Spins
Thanks for the link.  I intend to take a look.
I took a look and examined:

  • Tab Mix Plus
  • Multirow Bookmarks Toolbar

but did not figure out anything relevant to the current situation.

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: Shortcut Creator
« Reply #54 on: June 10, 2010, 05:21 PM »
I would like to modificate the script CTRL+SHIFT+S to modify during the shortcut copy the comment in it.
I intend to consider how this might be accomplished.
The following possibilities have come up so far (neither implemented nor tested):

1. Provide two modes of operation -- one mode just creates shortcuts while the other one asks for a comment first (say via some dialog box) and then creates shortcuts.  The mode might be toggled via a hotkey and a visual indication of which mode was currently active might be provided via different tray icons.

2. Modifier-based behavior difference.  Configure CreateShortcutsIn to behave differently (as described in the previous possibility) depending on whether a particular modifier (e.g. Shift, Alt, Control, etc.) is held down when the menu item is invoked.

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Shortcut Creator
« Reply #55 on: June 11, 2010, 06:10 PM »
The program seems don't see beyond the fifth line :

[Settings]
; hotkey to bring up menu
Hotkey=^+c
; destination locations (numbered starting at 1) to choose from
; absolute path
1=C:\
; environment variable support
2=%TEMP%
; multiple locations, separate by |
3=C:\WINDOWS|C:\
; hotkey for location(s)
4=^+d::C:\Documents and Settings
5=^+p::C:\Documents and Settings\JOSE\Escritorio|D:\Documents and Settings\JOSE\Escritorio|F:\Documents and Settings\JOSE\Escritorio|I:\Documents and Settings\JOSE\Escritorio|M:\Documents and Settings\JOSE\Escritorio|N:\Documents and Settings\JOSE\Escritorio
;5=^+p::C:\Documents and Settings\JOSE\Escritorio|D:\Documents and Settings\JOSE\Escritorio|F:\Documents and Settings\JOSE\Escritorio|I:\Documents and Settings\JOSE\Escritorio|M:\Documents and Settings\JOSE\Escritorio|N:\Documents and Settings\JOSE\Escritorio|\\jose-a04555092a\C\Documents and Settings\JOSE\Escritorio
; 5=^+p::%USERPROFILE%|%TEMP%
; cadena muy larga
; 6=^+q::C:\Documents and Settings\JOSE\Escritorio|D:\Documents and Settings\JOSE\Escritorio|F:\Documents and Settings\JOSE\Escritorio|I:\Documents and Settings\JOSE\Escritorio|M:\Documents and Settings\JOSE\Escritorio|N:\Documents and Settings\JOSE\Escritorio|\\jose-a04555092a\C\Documents and Settings\JOSE\Escritorio
; aunque la acorto no aparece la opción 6 en el menú contextual.
; quito la opción seis y la ponto en lugar de la 5 en fecha 09.06.2010


Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Shortcut Creator
« Reply #56 on: June 11, 2010, 06:12 PM »
To follow the firefox addon for shortcuts
http://forums.mozill...p?f=38&t=1917131
 :) from Spins
Thanks for the link.  I intend to take a look.
I took a look and examined:

  • Tab Mix Plus
  • Multirow Bookmarks Toolbar

but did not figure out anything relevant to the current situation.

Don't exists.
That is the answer. I have revised all the addons .
Perhaps is difficult.

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Shortcut Creator
« Reply #57 on: June 11, 2010, 06:18 PM »
IN the past I need environmental variables and have no utility because need to reiniate the system to take place.
It's better define an inmediate variable.
You must get simple and inmediate solution.
I have locate several programa for this purpose I because of that I have ask you to have and additional option in the contextual menu after the hotkey.
There are many ways doing things, but the way you are developing is the best one to complementary with other solutions.
At the present moment all we need is solve the one to many copy in a simple way.

I have observed the code proposed under the hotkey : Control+Shift+s even do very well when we select several icons at the once tipe.
And this is the to single one many to many places.

 :P

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: Shortcut Creator
« Reply #58 on: June 11, 2010, 09:45 PM »
IN the past I need environmental variables and have no utility because need to reiniate the system to take place.
I use batch (.bat) files to set environment variables -- this way I do not need to restart my system (or log off and then on) to make adjustments.

For example, I have done something similar to the following successfully:

1. Create a file named CreateShortcutsIn.bat in the same directory where CreateShortcutsIn.exe is located.

2. Put the following in the file named CreateShortcutsIn.bat:

set MYCOMMONPATH=Documents and Settings\JOSE\Escritorio
set ONE=C:\%MYCOMMONPATH%
set TWO=D:\%MYCOMMONPATH%
set THREE=F:\%MYCOMMONPATH%
set FOUR=I:\%MYCOMMONPATH%
set FIVE=M:\%MYCOMMONPATH%
set SIX=N:\%MYCOMMONPATH%
start CreateShortcutsIn.exe

3. Put the following in CreateShortcutsIn.ini:

Code: Text [Select]
  1. [Settings]
  2. ; hotkey to bring up menu
  3. Hotkey=^+c
  4. ; destination locations (numbered starting at 1) to choose from
  5. ; absolute path
  6. 1=C:\
  7. ; environment variable support
  8. 2=%TEMP%
  9. ; multiple locations, separate by |
  10. 3=C:\WINDOWS|C:\
  11. ; hotkey for location(s)
  12. 4=^+d::C:\Documents and Settings
  13. 5=^+p::%ONE%|%TWO%|%THREE%|%FOUR%|%FIVE%|%SIX%

4. Use CreateShortcutsIn.bat (the batch file) to start the program (e.g. double-click its icon).

Does that sort of thing work for you?

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: Shortcut Creator
« Reply #59 on: June 12, 2010, 04:50 AM »
I would like to modificate the script CTRL+SHIFT+S to modify during the shortcut copy the comment in it.
If there are multiple destination folders, do you want to specify a comment for each destination separately, or should all destinations use the same comment?

Please provide an example.

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: Shortcut Creator
« Reply #60 on: June 12, 2010, 05:44 AM »
The following possibilities have come up so far (neither implemented nor tested):

1. Provide two modes of operation -- one mode just creates shortcuts while the other one asks for a comment first (say via some dialog box) and then creates shortcuts.  The mode might be toggled via a hotkey and a visual indication of which mode was currently active might be provided via different tray icons.

2. Modifier-based behavior difference.  Configure CreateShortcutsIn to behave differently (as described in the previous possibility) depending on whether a particular modifier (e.g. Shift, Alt, Control, etc.) is held down when the menu item is invoked.
Another idea is to use one of the lock keys (e.g. CapsLock, NumLock, ScrollLock) to toggle the behavior.  I have tested this and it seems to work:

  http://ewemoa.dcmembers.com/tmp/CreateShortcutsIn.exe

SHA1: 4535a8c171b560dda75d960922f7bd340f6a95f1

Add any of the following to the ini file to test:

  CommentToggleKey=CapsLock

or

  CommentToggleKey=NumLock

or

  CommentToggleKey=ScrollLock

If there is no setting, the program should default to using NumLock.
« Last Edit: June 12, 2010, 06:06 AM by ewemoa »

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Shortcut Creator
« Reply #61 on: June 13, 2010, 08:10 PM »
I would like to modificate the script CTRL+SHIFT+S to modify during the shortcut copy the comment in it.
If there are multiple destination folders, do you want to specify a comment for each destination separately, or should all destinations use the same comment?

Please provide an example.

It's a minor pretension.
May be different comment for each one shortcut. But perhaps is better do this when we have created the shortcut. I have made proofs and is preferable edit the title of the shortcut. Try as you wish.
The point is mantain simplicity. Edit the comment is useful for only a few users.
Concatenate the action is complicated. I think better only one action at a time.

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Shortcut Creator
« Reply #62 on: June 13, 2010, 08:13 PM »
IN the past I need environmental variables and have no utility because need to reiniate the system to take place.
I use batch (.bat) files to set environment variables -- this way I do not need to restart my system (or log off and then on) to make adjustments.

For example, I have done something similar to the following successfully:

1. Create a file named CreateShortcutsIn.bat in the same directory where CreateShortcutsIn.exe is located.

2. Put the following in the file named CreateShortcutsIn.bat:

set MYCOMMONPATH=Documents and Settings\JOSE\Escritorio
set ONE=C:\%MYCOMMONPATH%
set TWO=D:\%MYCOMMONPATH%
set THREE=F:\%MYCOMMONPATH%
set FOUR=I:\%MYCOMMONPATH%
set FIVE=M:\%MYCOMMONPATH%
set SIX=N:\%MYCOMMONPATH%
start CreateShortcutsIn.exe

3. Put the following in CreateShortcutsIn.ini:

Code: Text [Select]
  1. [Settings]
  2. ; hotkey to bring up menu
  3. Hotkey=^+c
  4. ; destination locations (numbered starting at 1) to choose from
  5. ; absolute path
  6. 1=C:\
  7. ; environment variable support
  8. 2=%TEMP%
  9. ; multiple locations, separate by |
  10. 3=C:\WINDOWS|C:\
  11. ; hotkey for location(s)
  12. 4=^+d::C:\Documents and Settings
  13. 5=^+p::%ONE%|%TWO%|%THREE%|%FOUR%|%FIVE%|%SIX%

4. Use CreateShortcutsIn.bat (the batch file) to start the program (e.g. double-click its icon).

Does that sort of thing work for you?


I'll try and comments.
Best Regards


Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Shortcut Creator
« Reply #63 on: June 20, 2010, 06:53 PM »
Ewemoa I am here and don't forget. It's only too much work.
One situation is this :
I scan a document and save to the year scanned documents. Then I open one or two folders and need a shortcut there. This two folders always vary. And the scanned folder vary each year.
 :P
I will comment

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Shortcut Creator
« Reply #64 on: June 21, 2010, 07:02 AM »
Hello again.
The idea is splendid.
I have revised my support and I remembered received from Computer hope a script for that purpose because I need some other feed for excel 2002 to control variables.
So.
As I told you there is no way with antelation the folders I need. But if we can know the active windows and his codes I think is possible to create the variables looking for that active windows in the windows registry.
When we execute the bat file we create those variables.
What do you think about it ?

Best Regards




Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Shortcut Creator
« Reply #65 on: June 21, 2010, 07:11 AM »
Additionally a few weeks ago I decided to control incidents by means of Goldmine 5.5 manager. I have project for my customers and incidents for the rest. When an incident is external I have observed difficulties to control if I don't apply intensive control. Because some phases don't depend upon me. The codes for the incidents are different and are situated in many places.
But the projects are code in the way 125.10 , where 10 is the year.
All hanging from
Y:\GABINETE\PROYECTOS

So Y:\GABINETE\PROYECTOS\125.10\ is a folder i will need when 125.10 project is concerned.
As I commented you above I have a module on excel 2002 to introduce the project number 125.10 and from inside excel access to all folders and files of that project as from goldmine 5.5 too. Using bat, vbs.

I received information from customers or download from the web or Thunderbird often. I don't control emails from goldmine email center.

So
I think is difficult and tricky apply to the active windows without variables because we can loose focus over that windows for any reason (an alarm, a warning/error window, etc.). But if we control the name and path to that windows we can execute with your script and control really where , when and how send the selected file or folder to create the soft link.

Best Regards

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: Shortcut Creator
« Reply #66 on: June 21, 2010, 08:42 AM »
I don't think I understand yet.

Is it that you want to be able to make shortcuts into all open Windows Explorer windows (except the one with files selected)?  That might be possible.

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Shortcut Creator
« Reply #67 on: June 21, 2010, 10:18 AM »
This may help :

GetWindowsExplorerPath(_hWnd)
{
   local pid, hMem, pv, pidl, pidl?, explorerPath

   If (A_OSType = "WIN32_NT")
   {
      pid := DllCall("GetCurrentProcessId")
      SendMessage 0x400 + 12   ; CWM_GETPATH = WM_USER + 12
            , pid, 0, , ahk_id %_hWnd%
      hMem := ErrorLevel
      if (hMem != 0)
      {
         pv := DllCall("Shell32\SHLockShared"
            , "UInt", hMem, "UInt", pid)
         if (pv != 0)
         {
            pidl := DllCall("Shell32\ILClone", "UInt", pv)
            DllCall("Shell32\SHUnlockShared", "UInt", pv)
         }
         DllCall("Shell32\SHFreeShared"
            , "UInt", hMem, "UInt", pid)
      }
   }
   Else   ; Win9x
   {
      SendMessage 0x400 + 12   ; CWM_GETPATH = WM_USER + 12
            , 0, 0, , ahk_id %_hWnd%
      pidl? := ErrorLevel
      if (pidl? != 0)
      {
         pidl := DllCall("Shell32\ILClone", "UInt", pidl?)
         DllCall("Shell32\ILGlobalFree", "UInt", pidl?)
      }
   }
   VarSetCapacity(explorerPath, 512, 0)
   DllCall("Shell32\SHGetPathFromIDList"
      , "UInt", pidl, "Str", explorerPath)
   Return explorerPath
}

;-- Example of use

hWnd := WinExist("A")
WinGetClass wClass, ahk_id %hWnd%
If (wClass != "ExploreWClass" and wClass != "CabinetWClass")
   MsgBox Use this only with a Windows Explorer window!
Else
   MsgBox % GetWindowsExplorerPath(hWnd)



******
I observed I need to use the script from inside each folder.

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Shortcut Creator
« Reply #68 on: June 21, 2010, 10:19 AM »
I don't think I understand yet.

Is it that you want to be able to make shortcuts into all open Windows Explorer windows (except the one with files selected)?  That might be possible.

Exactly well. That's  :-*

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: Shortcut Creator
« Reply #69 on: June 21, 2010, 11:39 AM »
I haven't tried the code you posted, but perhaps it will come in handy later.

Here's an initial attempt at supporting the creation of shortcuts in Windows Explorer windows:

  http://ewemoa.dcmembers.com/tmp/CreateShortcutsIn.exe

SHA1: 9aafb1c4a8b0d77b83e5c5b991094a96812c698f
« Last Edit: June 21, 2010, 11:42 AM by ewemoa »

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Shortcut Creator
« Reply #70 on: June 21, 2010, 08:07 PM »
I'm going.
And will comment

Why do you put SHA1: . What's that ?


Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Shortcut Creator
« Reply #71 on: June 21, 2010, 08:08 PM »
ojú. I see : security

http://es.wikipedia.org/wiki/Sha

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Shortcut Creator
« Reply #72 on: June 21, 2010, 08:24 PM »
http://ewemoa.dcmemb...reateShortcutsIn.exe

I try but I do bad. I am trying with the option in the contextual mouse menu window explorer with no result in the option "in the explorer windows" .



ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: Shortcut Creator
« Reply #73 on: June 21, 2010, 10:29 PM »
Sorry I didn't mention the following, but the "In Explorer windows" functionality requires the following setting (or what the equivalent is for the Windows you are using).

Starting at the menu bar for a Windows Explorer window:

  Tools -> Folder Options -> View

the setting:

  Display the full path in the title bar

should be enabled / checked.

display-the-full-path-in-the-title-bar.pngShortcut Creator

What do you have for that setting?  I guess it won't be English :)

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Shortcut Creator
« Reply #74 on: June 23, 2010, 03:33 PM »
the equivalent is : Mostrar la ruta completa en la barra de título

Done

I'try and comment.
 :)