AutoHotkey Community

It is currently May 27th, 2012, 1:12 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: April 6th, 2010, 6:25 am 
Offline

Joined: June 14th, 2009, 7:48 pm
Posts: 331
Murx wrote:
Will this provide the option/configuration to display the desktop in greyscale,

No
Murx wrote:
if yes - how?

? No idea
:idea:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 18th, 2010, 6:05 pm 
Offline

Joined: April 25th, 2009, 9:02 pm
Posts: 123
Stupid question time:

Is there any way of making this only affect one monitor?

Many thanks

ZeroCool42


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 5th, 2011, 11:29 am 
Offline

Joined: February 5th, 2011, 10:57 am
Posts: 6
Location: Italy
Hello everybody.

I am newby.

I'm searching for a way for dim the monitor in a panel pc whit no embedded commands for this.
I have tried the code dimscreen, and the code in this post.
The codes are working, but I need to set the dim from inside the HMI program that run on the panel.
I can insert in this program some buttons, for call some external exe files.
My idea is to call the same program, written in autohotkey, with different arguments, for declare the dimming level.

As say before, I am new for this language, and is not easy for me to understand how the scripts works. I usuallly write in IEC61131, and for write in autohotkey i need to learn some new things.
I need to complete this job ASAP, so I should be better for me if somebody autohotkey expert can write this for me, or show me parts of the script.

Somebody can help me?

Thanks in advance


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Command line version
PostPosted: June 15th, 2011, 2:53 pm 
I modified the script a little, to allow operation from the command line, but beware - I'm a newbie myself...

Code:
;#NoTrayIcon    don't display the script icon in the tray
#MaxHotkeysPerInterval 200
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#SingleInstance force
SetBatchLines -1

; -------------------
; START CONFIGURATION
; -------------------
; The percentage by which to raise or lower the volume each time
; How long to display the volume level bar graphs (in milliseconds)
vol_DisplayTime = 1500
; Transparency of window (0-255)
vol_TransValue = 200
; Bar's background colour
vol_CW = EEEEEE   
vol_Width = 300  ; width of bar
vol_Thick = 20   ; thickness of bar
; Bar's screen position
vol_PosX := A_ScreenWidth/2 - vol_Width/2
vol_PosY := A_ScreenHeight/1.08 - vol_Thick/2
; --------------------
; END OF CONFIGURATION
; --------------------
vol_BarOptionsMaster = 1:B1 ZH%vol_Thick% ZX8 ZY4 W%vol_Width% X%vol_PosX% Y%vol_PosY% CW%vol_CW%

br := %0% ; brightness, in the range of 0 - 255, where 128 is normal
;br += (InStr(A_ThisHotkey, "F1") ? -Brght_Step : Brght_Step )
If ( br > 256 )
   br := 256
If ( br < 0)
   br := 0   
VarSetCapacity(gr, 512*3)
Loop, 256
{
   If  (nValue:=(br+128)*(A_Index-1))>65535
        nValue:=65535
   NumPut(nValue, gr,      2*(A_Index-1), "Ushort")
   NumPut(nValue, gr,  512+2*(A_Index-1), "Ushort")
   NumPut(nValue, gr, 1024+2*(A_Index-1), "Ushort")
}
hDC := DllCall("GetDC", "Uint", 0) ;NULL for entire screen
DllCall("SetDeviceGammaRamp", "Uint", hDC, "Uint", &gr)
DllCall("ReleaseDC", "Uint", 0, "Uint", hDC)


vol_ShowBars:
; Get volumes in case the user or an external program changed them:
vol_Master := (br/2.5)
vbr := (br*100)//256
if vol_Master = 128
{
  vol_Colour = Green
  vol_Text = Brightness %vbr%`%
}

if vol_Master > 128
{
  vol_Colour = Red   
  vol_Text = Brightness %vbr%`%
}
if vol_Master < 128
{
  vol_Colour = Blue

  vol_Text = Brightness %vbr%`%
}

; To prevent the "flashing" effect, only create the bar window if it doesn't already exist:
IfWinNotExist, BrightnessOSDxyz
{
    Progress, %vol_BarOptionsMaster% CB%vol_Colour% CT%vol_Colour%, , %vol_Text%, BrightnessOSDxyz
    WinSet, Transparent, %vol_TransValue%, BrightnessOSDxyz
}

Progress, 1:%vol_Master% ,, %vol_Text%
SetTimer, vol_BarOff, %vol_DisplayTime%
Sleep, 3000
return


vol_BarOff:
SetTimer, vol_BarOff, off
Progress, 1:Off
return


Report this post
Top
  
Reply with quote  
 Post subject: dual monitor
PostPosted: September 28th, 2011, 3:16 am 
does anyone have a clue to control individual of multiple monitors?


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: Amandaville, Bing [Bot], BrandonHotkey, chaosad, Google [Bot] and 21 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