home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Switch off monitor from inside MP (Plugin)
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Micropolis" data-source="post: 575094" data-attributes="member: 96567"><p>Hi TheThunder,</p><p>after some tests for one of my plugins (see ScreenControl which give you the described functionality) it was required to wait for a short time. So please insert "Thread.Sleep(1000)" before you use SendMessage and it must be ok. Another hint: It is not a good idea to hard code the path to user32.dll. It works also with [DllImport("user32.dll")] without any problems.</p><p></p><p>Cheers, Micropolis ;-)</p></blockquote><p></p>
[QUOTE="Micropolis, post: 575094, member: 96567"] Hi TheThunder, after some tests for one of my plugins (see ScreenControl which give you the described functionality) it was required to wait for a short time. So please insert "Thread.Sleep(1000)" before you use SendMessage and it must be ok. Another hint: It is not a good idea to hard code the path to user32.dll. It works also with [DllImport("user32.dll")] without any problems. Cheers, Micropolis ;-) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Switch off monitor from inside MP (Plugin)
Contact us
RSS
Top
Bottom