AutoHotkey Community

It is currently May 26th, 2012, 4:46 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: April 2nd, 2009, 1:17 am 
Offline

Joined: February 3rd, 2009, 12:43 am
Posts: 11
Location: Abbotsford, BC, Canada
First get MagicTune http://www.samsung.com/us/consumer/learningresources/monitor/magetune/pop_download.html

I have this setup to change the profiles for multiple monitors with 1 key press. The code is far from perfect. I'd like it to appear smaller, but this is all I have time for today.

If any more advanced coders can package it into a nice function such as
MagicTune(monitor#, array_of_click_coordinates) please share. :)

This code assumes that MagicTune is running in the background (if you see it in the systray, it'll work)

If you only have 1 monitor or have your screens arranged differently, you'll have to do some minor editing. Hopefully my comments are sufficient. Different monitors have different options in the same app. They can also be in different places.

Code:
MagicTuneStart() {
   WinShow MagicTune Premium ; Show the hidden window
   WinActivate MagicTune Premium
   WinWaitActive MagicTune Premium, , 8
   if ErrorLevel
      MsgBox Timed Out

   WinMove 500, 500 ; Move on First Monitor
   MouseClick left, 10, 10 ; Click on Title Bar to trigger detection of current display
   Sleep 1000
   WinWaitActive ; Wait for window to reappear if it moved monitors -- I'm not sure if this WinWaitActive actually works, hence the large Sleep value
}

yourhotkey::
   ; MagicTune TEXT (On a Samsung 2443BW and then on a 205BW)
   MagicTuneStart()

   MouseClick left, 80, 70 ; Click Picture
   MouseClick left, 40, 210 ; Click MagicBright
   MouseClick left, 200, 160 ; Click Text

   WinMove 2500, 500 ; Move to Second Monitor (on the right)
   MouseClick left, 10, 10 ; Click on Title Bar to trigger detection of second screen

   Sleep 1000
   WinWaitActive ; Wait for window to reappear

   MouseClick left, 80, 70 ; Click Picture
   MouseClick left, 40, 210 ; Click MagicBright
   MouseClick left, 200, 160 ; Click Text

   WinMove 500, 500 ; Back to First Monitor
   MouseClick left, 10, 10
   WinHide ; Note, since MagicTune was not closed with the X button, the buttons on the monitor may only respond with the text "MagicTune"
   ; Replace WinHide with "Click 585, 10" to close it correctly.
return


Suggestions welcome.
Cheers!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 2nd, 2009, 1:53 am 
Offline

Joined: February 3rd, 2009, 12:43 am
Posts: 11
Location: Abbotsford, BC, Canada
If all you need to do is change the brightness of your primary display, try http://sven.killig.de/magictunecmd/ It does just that.

If you don't own a Samsung, try playing around with http://entechtaiwan.com/util/ps.shtm


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Rajat, Yahoo [Bot] and 8 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group