You can get screen resolution like this.

Local sysWidth = Win.GetSystemMetrics("SM_CXSCREEN")
Local sysHeight = Win.GetSystemMetrics("SM_CYSCREEN")

Now you can calculate the coordinate of the center of the screen.


--- In [email protected], "dleidinger" <dleidin...@...> wrote:
>
> I want to use the bee.notice-plugin to display a text in the middle of the 
> screen (centered).
> 
> The documentation of beenotice-plugin says, that leaving x-coordinate and 
> y-coordinate will center the text.
> 
> But with powerpro i can't leave those coordinates away - just separated with 
> a comma, because then powerpro sends the error-message: "Bad expression: 
> invalid number, string, or variable at ...).
> 
> So i have to pass at least "" as parameter for x and y. But then the text is 
> not centered. 
> 
> Is there something i can do in my script or do i have to contact the author 
> of the bee.notice-plugin
> 
> Best regards
>


Reply via email to