【问题标题】:How to use System::Call to call WindowFromPoint windows API function如何使用 System::Call 调用 WindowFromPoint windows API 函数
【发布时间】:2012-08-27 18:33:16
【问题描述】:

如何在系统插件语法中将 POINT 结构传递给WindowFromPoint()

【问题讨论】:

    标签: winapi nsis


    【解决方案1】:
    System::Alloc 8
    Pop $0
    System::Call 'USER32::GetCursorPos(ir0)'
    System::Call '*$0(i.r8,i.r9)'
    System::Free $0
    System::Call 'USER32::WindowFromPoint(ir8,ir9)i.r1'
    System::Call 'USER32::GetClassName(ir1,t.r2,i ${NSIS_MAX_STRLEN})'
    MessageBox mb_ok "$8x$9: $1=$2"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-11
      • 2013-11-08
      • 2012-11-04
      • 2019-03-17
      • 2023-03-29
      • 2011-03-22
      相关资源
      最近更新 更多