Posts: 6
Threads: 1
Joined: Apr 2008
I don't know what happened a few of my new macros were working fine, but now the cntrl-V does not work globally in any program.
Cntrl-C and cntrl-X does work.
I don't know if I accidentally reassigned the paste function, but for kicks, I tried shift-cntrl-V and it pastes text globally.
Any way to switch it back to default?
Posts: 12,079
Threads: 141
Joined: Dec 2002
Look for macros that have Ctrl+V trigger, and change the trigger.
Posts: 6
Threads: 1
Joined: Apr 2008
I'm looking under QM-MyMacros - All Programs with "ALL, All programs, Disabled and System" checked and don't see any trigger set as such. Even if I disable QM or disable triggers, it still doesn't work. Should I uninstall/reinstall QM?
Posts: 12,079
Threads: 141
Joined: Dec 2002
Also look in Options -> Hotkeys.
Also try to create new empty file (menu File -> Open/New File).
Posts: 6
Threads: 1
Joined: Apr 2008
Also look in Options -> Hotkeys. = All were set to defaults
Also try to create new empty file (menu File -> Open/New File). = Did this. Something interesting when pressing cntrl-V:
Error (RT) in Rename AJ_1: window not found (the window that it wants is not open at the moment)
Macro 'Rename AJ_1' not found
Rename AJ_1 IS one of my macros which contains:
act win("Search in Catalog" "Afx:400000:b:10011:6:*""" 0x800)
'F2
'CL
'Cv
'Y
It looks like cntrl-V is triggering something by itself.
Posts: 6
Threads: 1
Joined: Apr 2008
Something weird:
I opened the file it needed, highlighted the text to replace, hit cntrl-V and it replaced the text with "AJ_highlighted text".
i.e XXXX0126062.mp3 where XXXX is highlighted.
Press cntrl-V
It becomes "AJ_XXXX0126062.mp3".
Shift-Cntrl-V will replace the text correctly.
It looks as if cntrl-V is left arrowing to the front of filename, then pasting instead of replacing highlighted text.
Also, in a second macro that runs the above 20 times, there is a line that read 'CS{Lv} rather than 'CSv. What are the brackets doing?
Note: I edited the macros to use Shift-Cntrl-V to paste since it cntrl-V is broken.
Posts: 6
Threads: 1
Joined: Apr 2008
I noticed if I Exit QM, then cntrl-v in any application, QM starts up. Have I accidentally set cntrl-v to run the actual QM application?
Posts: 12,079
Threads: 141
Joined: Dec 2002
You have created a shortcut to a macro on desktop or in start menu, and assigned Ctrl+V hotkey.
Posts: 12,079
Threads: 141
Joined: Dec 2002
You can use this function to easily find shortcuts with hotkeys.
Function
EnumShortcutsInFolder
;/
function $folder [flags] ;;flags: 1 include subfolders, 2 only qm shortuts, 4 only with hotkeys
;Displays parameters (target, hotkey, etc) of all shortcuts in the folder.
;EXAMPLES
;;QM shortcuts on desktop
;EnumShortcutsInFolder "$desktop$" 2
;EnumShortcutsInFolder "$common desktop$" 2
;;all shortcuts with hotkeys in start menu and submenus
;EnumShortcutsInFolder "$start menu$" 1|4
;EnumShortcutsInFolder "$common start menu$" 1|4
str s sf.from(folder "\*.lnk") sq.from(_qmdir "qm*.exe") hk
Dir d
foreach(d sf FE_Dir iif(flags&1 0x4 0))
,str sPath=d.FileName(1)
,SHORTCUTINFO si
,if(!GetShortcutInfoEx(sPath &si)) continue
,if(flags&2 and !matchw(si.target sq 1)) continue
,if(flags&4 and !si.hotkey) continue
,out sPath
,s.getstruct(si 1)
,hk=""; FormatKeyString si.hotkey&255 si.hotkey>>8&7 &hk; s.replacerx("(?m)(?<=^hotkey )\w+" hk)
,s.replacerx("(?m)^" "[9]")
,out s
Posts: 6
Threads: 1
Joined: Apr 2008
Properties of Start menu "C:\Program Files\Quick Macros 2\qm.exe" v.
There is an extra "v" at the end.
I thought this was it, but looking on the desktop, I had 4 shortcuts.
One DID have cntrl+V in it.
I dumped it, restarted a few times.
It is fixed.
Thanks for such a cool prog and for your quick help.