Amr Hussein
Amr Hussein

Reputation: 11

How to use System::Call to call WindowFromPoint windows API function

How do you pass a POINT struct to WindowFromPoint() in system plugin syntax?

Upvotes: 0

Views: 253

Answers (1)

Anders
Anders

Reputation: 101666

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"

Upvotes: 2

Related Questions