Results 1 to 4 of 4
  1. #1
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Mass Edit of shortcuts

    I have many shortcuts that contain a specific var as part of their command-line. If I want to change all those shortcuts to contain another var in its place, is there a way to mass edit the group at once?

    Chuck Billow
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  2. #2
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    8,168
    Thanks
    47
    Thanked 978 Times in 908 Posts
    You can only do this programatically. VBS will work as will AutoIt.

    cheers, Paul

  3. #3
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts
    Paul I got AutoIt, but haven't the foggiest how to do it. Oh well, at least the "one at a time" is safe.

    Thanks,
    Chuck
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  4. #4
    Star Lounger
    Join Date
    Feb 2012
    Posts
    58
    Thanks
    2
    Thanked 5 Times in 4 Posts
    Same problem as here:
    http://windowssecrets.com/forums/sho...-to-a-variable

    Since you have AutoIt, you might want to keep a "paste back" doohickey to your arsenal ready to go. It would take at least some of the drudgery out of the manual process.

    Code:
    ; PasteBack
    ; ---------
    ;
    ; PURPOSE:  Copies selection. Modifies it. Pastes it back or types it back, overwriting
    ;           the selection.
    ;
    ; SETUP:    Modify the hotkeys to suit yourself. Compiling is optional. Run only one
    ;           instance of the script.
    ;           If appropriate, define $findstring and $replacestring.
    ;
    ; USAGE:    With the script running, select some text and press the hotkey combination.
    ;
    ; iTobaman, 2013
    
    
    Const $findstring = "Mark", $replacestring = "Fred"
    HotKeySet("^#c", "DoStuff")
    HotKeySet("^#{ESC}", "Quit")
    
    Opt("TrayAutoPause", 0) ; 0 = no autopause
    TraySetState()
    TraySetIcon(@ScriptDir & "\PasteBack.ico")
    TraySetToolTip("Ctrl + Win + C/ESC")
    TrayTip(@ScriptName, "Ctrl + Win + C / ESC", 9, 1) ; 9 = 9-sec timeout; 1 = info icon
    
    While 1
    	Sleep(250)
    WEnd
    
    Func DoStuff()
    	;  Copy the selected text
    	Send("^c")
    	$t = ClipGet()
    	;  Modify the text
    	$t = StringReplace($t, $findstring, $replacestring)  ; replace text
    	;  Paste or type the text. Paste = ClipPut($t) / Send("^v")
    	Send($t, 1)  ; type back
    EndFunc
    
    Func Quit()
    	Exit
    EndFunc

Posting Permissions

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