Old 21st April 2016, 12:34   #1
Senior Member
r2du-soft's Avatar
Join Date: Nov 2013
Location: Iran
Posts: 343
SetWindowPos Not Work

i call to System plugin for move to installer to top and left screen and that work:

HTML Code:
!include "WinMessages.nsh"

Function .onGUIInit
System::Call "User32::SetWindowPos(i, i, i, i, i, i, i) i ($HWNDPARENT, 0, 0, 0, 0, 0, 0x201)"

But when change SetWindowPos to 0x204 and 0x0204 for move installer to right and top screen that not work!
And also other code WM "#Window Messages#" not work!

where is the problem?
r2du-soft is offline   Reply With Quote
Old 21st April 2016, 14:43   #2
Anders's Avatar
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,358
Why the hell would changing the flags move it to the right? Go to MSDN and read what the flags mean.

To move the window to the top right you have to first find the size of the work area on that monitor and then move it to x,0 where x = workareaWidth - yourwindowWidth.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump