|
|
|
|
#1 |
|
Junior Member
Join Date: Aug 2009
Posts: 7
|
Get X/Y coordinates of install screen
Hey Guys,
I've been searching for a couple of days on how to do this and have finally gave in and am asking for help. I need to get the top-left or bottom-left x/y coordinates of the currently shown NSIS window. I'm supposed to pass these values through the registry to another application that is going to pop up at install-time and I want it to pop at the exact same location. Any thoughts here? - jason |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
You need to call GetWindowRect using the system plugin.
http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx Example: http://forums.winamp.com/showthread....75#post2688175 |
|
|
|
|
|
#3 | |
|
Junior Member
Join Date: Aug 2009
Posts: 7
|
Hey MSG, thanks for the reply. This helps a lot. If you could help me understand the mechanics of this a little bit I'd appreciate it.
Quote:
PHP Code:
Also, I get that the lpRECT structure contains the values I want, but I don't understand how to get those values out. - jason |
|
|
|
|
|
|
#4 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
* means struct syntax, *$2 means access struct at memory address stored in $2 and i.r# (type input output, . (dot) means no input) extracts the first two INT32 fields in the RECT struct...
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Aug 2009
Posts: 7
|
Thank you very much for your help. I was able to get the values and use them with this example.
- jason |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|