Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/31/2012 in all areas

  1. Imbuter2000, I really would not worry about it too much. The nature of AutoIt makes it difficult to avoid Global variables - so if you feel the need to use them then do so. Personally I would rather have legible code with some sensible Global variables than a psuedo-elegant web of parameters passed between functions - remember you are going to have to maintain this code in the future. Just try and avoid making every variable in the script Global in scope - that is not the way to go. M23
    1 point
  2. lorenkinzel

    GUI design concepts.

    This is an "exit splash". I stripped all the stuff from the GUI because they're boring work items. The point is: on exit. Livening-up work items needs to be subtle. #include <GUIConstantSex.au3> #include <WindowsConstants.au3> #include <WinAPI.au3> #include <MenuConstants.au3> $gui = GUICreate("gui", 80, @DesktopHeight * .925, @DesktopWidth * .75, 10, -1, $WS_EX_COMPOSITED) WinSetOnTop("gui", "", 1) $movePatch = GUICtrlCreateLabel("", 1, @DesktopHeight * .925 * .5, 78, 40) GUICtrlSetBkColor($movePatch, 0x302030) GUICtrlSetTip($movePatch, "hold here to move") GUISetState() While 1 $nMsg = GUIGetMsg() Select Case $nMsg = $GUI_EVENT_CLOSE BlueAway() GetSkinny() ExitLoop Case $nMsg = $movePatch move_it() EndSelect WEnd Func move_it() _SendMessage($gui, $WM_SYSCOMMAND, ($SC_MOVE + $HTCAPTION), 0) EndFunc ;==>move_it Func BlueAway() GUISetBkColor(0x0000ff, $gui) For $i = 250 To 120 Step -1.5 WinSetTrans($gui, "", $i) Next EndFunc ;==>BlueAway Func GetSkinny() For $i = 80 To 4 Step -1 WinMove($gui, "", @DesktopWidth * .75, 10, $i, @DesktopHeight * .925) Next GetShort() EndFunc ;==>GetSkinny Func GetShort() For $i = @DesktopHeight * .925 To 4 Step -1 WinMove($gui, "", @DesktopWidth * .75, 10, 4, $i) Next EndFunc ;==>GetShort
    1 point
  3. AdmiralAlkex

    AutoCamo - 98.18b

    You can find 3.3.9.5 in the usual (beta) places, and the download page ("download beta" button and make sure to take the right version).
    1 point
×
×
  • Create New...