Jump to content

Help with a script...


Recommended Posts

I dont recall anyone saying anything about stealing a source? My complaint is that you must show an effort. that is all. I could give a flip about the source. -it took a few minutes after reading your request and I am sure is original in in no way at all. If it appears too bright, then dim the brightness on the monitors a little. -looks great on a standard desktop monitor. -a little bright on the brightest setting of my laptop monitor.

run the script. -press escape (goes black) press it again (goes not black :) )

-you can activate what ever you want behind this. it will stay infront. '$WS_EX_TOPMOST'

next time please post some effort first.

-if you cant code. write the script out in normal english. if short, someone will come along and help script it.

#include <GUIConstants.au3>
Opt("GUIOnEventMode", 1)
HotKeySet("{ESC}", "_Toggle")
;GUICreate ( "title" [, width [, height [, left [, top [, style [, exStyle [, parent]]]]]]] )
$GUI = GUICreate("", 5000, 5000, -1600, -20, $WS_POPUPWINDOW, $WS_EX_TOPMOST)

$Black = GUICtrlCreateLabel("", 0, 0, 5000, 5000)
GUICtrlSetBkColor(-1, 0x000000)
GUICtrlSetState(-1, $GUI_DISABLE)
$Show = True

; ============================================================================
; Main Loop
; ============================================================================

While 1
    Sleep(10)
WEnd

; ============================================================================
; Functions
; ============================================================================
Func _Toggle()
    If $Show = True Then
        Global $Show = False
        MouseMove(Default, 1600, 0)
        GUISetState(@SW_SHOW, $GUI)
    Else
        Global $Show = True
        GUISetState(@SW_Hide, $GUI)
    EndIf
EndFunc   ;==>_Toggle

edit: and before anyone asks . . ^_^

yes not @desktopwidth or height -its not always full length.

yes 4000 or 5000 is huge, but not for multi monitors. -I use three when at work, just the laptop comes home. -still works on both as is.

Edited by Hatcheda
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...