The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Existing Acc a=acc code fails after upgrade to 2.3.3.7
#1
After upgrading from QM v2.3.2.8 one of my functions that was working in QM 2.3.3.7 fails.
The function triggers when the Word 2010 "Enter Password to open file" dialog window opens.
The code is below.
The error occurs on the Acc a=acc... line:
Error (RT) in WordDocPassword: object not found.
Is this expected?

Function WordDocPassword
Trigger !ca"Password" "bosa_sdm_msword"     Help - how to add the trigger to the macro
Code:
Copy      Help
int hwnd=val(_command)
act hwnd

wait 0.5

if GetMod <>0; ret ;; If any modifier key down
;msg GetMod
if win <> hwnd; ret ;; If dialog no longer active

;Get the filename from the Password dialog
Acc a=acc("" "STATICTEXT" win("Password" "bosa_sdm_msword") "bosa_sdm_msword" "" 0x1001)


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)