Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Upgrading made my triggers stop working
#1
I recently upgraded to QM 2.2.1. At about the same time, I upgraded from IE6 to IE7, and also from XP Service Pack 2 to Service Pack 3. Suddenly I notice that none of my triggers are working any more. There must be some extremely simple reason for this, but I can't figure out what it is. Can anyone help me find it? My triggers are simple ones, just keyboard and mouse triggers.

Here are some things I have looked into, to no avail:

All of the individual functions that are supposed to be triggered are enabled.

When I right-click on the QM icon in the tray, there is no check box next to "Disable Triggers (ctrl-shift-alt-D)"

Under tools->options->triggers, the keyboard and mouse lines are turned on (i.e. highlighted in blue) in the "active triggers" section, under both the "blue tray" and "gray tray" sections. Also, I checked "use low level keyboard hook" and "use low level mouse hook" radio buttons.

In desperation, I even tried upgrading again, to QM 2.3 beta. So far I love the editor improvements, but my triggers still won't work.
#2
Look in menu File -> More (the second More, below Export) -> File Properties.
#3
In the "scope of triggers" section, the "All" programs radio button is selected.

Beneath that, all four of the checkboxes (Read Only, Disabled Items, Private functions, and Application) are all unchecked.
#4
Run this macro to test keyboard hooks.
Macro
Code:
Copy      Help
int+ testkeyhook=SetWindowsHookEx(WH_KEYBOARD_LL &LLKeyboardProc _hinst 0)
mes "Press several keys. It should display key names in QM output. Don't close this message box."

Also need this function.
Function LLKeyboardProc
Code:
Copy      Help
;/
function nCode wParam KBDLLHOOKSTRUCT*h

FormatKeyString h.vkCode 0 &_s
out _s

ret CallNextHookEx(testkeyhook nCode wParam h)
#5
If you are using the keyboard detector (downloaded from this forum), make sure that it is not running. Because it disables low level keyboard hooks.
#6
While your macro is running, each time I press a key, I get a beep, and the key that I press is printed, twice, in the output window (on two separate lines). For some reason "p" appears as lowercase, but every other letter appears as a capital letter. I guess that's a successful test?

Also, I'm not using the keyboard detector. I hadn't discovered that, which is probably a good thing, as it sounds like it would only get me into more trouble.
#7
Try to create new file (menu File -> Open/New File) with 1 keyboard or mouse trigger. Does it work?
#8
Yes! I used File -> Open/New File to create a new .qml file, and then I created new macro. I assigned a keyboard trigger to that macro, and that trigger worked.

What does that mean?
#9
Don't know. Maybe some bug in QM. For example maybe some trigger string is incorrect and then QM fails to add all triggers. Or some other bug. Try to import your macros (menu File -> Import) to the new file and see when triggers stop working.
#10
Well, I just imported all of the macros and functions from my old .qml file into my new .qml file. There were about 20 of them. Now keyboard and mouse triggers work again.

That was pretty strange, but I am certainly happy that the problem seems to be fixed!
#11
Just a thought E7 at one time had problems if you installed it at the same time as other updates. I would have thought that Microsoft would have fixed this by now but maybe not.

I just installed SP3 without installing SP2 and now some of my updates from Microsoft will not install. I just work around it and I will have to uninstall SP3 and install SP2 and then SP3 to fix it.
#12
Well, I've only had one problem with IE7 so far, and I fixed it fairly easily by deleting some old obsolete version of PSAPI.DLL. I could elaborate more if anyone's interested, but it's not a QM issue, so I'll stop for now.

I have noticed that QM has a harder time dissecting certain web pages in IE7 compared to IE6 (i.e. finding accessible objects in web pages, etc). Fortunately I think I can get around these problems by using QM 2.2's new html element commands. And ultimately it will be faster, I think, to use html elements rather than accessible objects. But I certainly have a lot of coding to do before the conversion is complete.


Forum Jump:


Users browsing this thread: 5 Guest(s)