Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WM_COPYDATA example (access application outside application)
#4
Just a little update on this script, somehow the below line needed to be changed from 2+2 to 2+1
cds.cbData=b.len*2+1

And the BSTR with the script embedded had to be changed. It might be due to some update(s) within XYplorer.

If you do not apply these changes, the old method might not work or it might work but it will generate an scripting error message-box within xyplorer.

Macro Macro17
Code:
Copy      Help
;;; FULL PATH SCRIPT
;BSTR b="D:\test123\test.xys" ;; If you want to use external XYplorer script

;; PASS SCRIPT DIRECTLY (EMBEDDED)
BSTR b="::msg 'Welcome to XY!';"

COPYDATASTRUCT cds
cds.dwData=4194305
cds.lpData=b.pstr
cds.cbData=b.len*2+1
SendMessage(w WM_COPYDATA 0 &cds)


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)