Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 18th, 2012  |  syntax: AutoIt  |  size: 1.48 KB  |  hits: 20  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Func _Select()
  2.         Local $aGGCI = GUIGetCursorInfo($hGuiMain)
  3.         Local $iLastFrame
  4.  
  5.         Switch $aGGCI[4]
  6.                 Case $cListview
  7.                         If ControlListView($hGuiMain, "", $cListview, "GetSelected") <> "" Then
  8.                                 $iLastFrame = $iCurFrame
  9.                                 $iCurFrame = ControlListView($hGuiMain, "", $cListview, "GetSelected") + 1
  10.                                 If $iLastFrame <> $iCurFrame Then
  11.                                         _Apply($iLastFrame)
  12.                                         _GUICtrlListView_SetItemSelected($cListview, $iCurFrame - 1)
  13.                                         GUICtrlSetState($cDuration_3, $GUI_FOCUS)
  14.                                 EndIf
  15.                                 GUICtrlSetData($cFrameNo, $iCurFrame)
  16.                                 If $iCurFrame = 1 Then
  17.                                         GUICtrlSetState($cBackward, $GUI_DISABLE)
  18.                                 Else
  19.                                         GUICtrlSetState($cBackward, $GUI_ENABLE)
  20.                                 EndIf
  21.                                 If $iCurFrame = $iCountFrames Then
  22.                                         GUICtrlSetState($cForward, $GUI_DISABLE)
  23.                                 Else
  24.                                         GUICtrlSetState($cForward, $GUI_ENABLE)
  25.                                 EndIf
  26.                                 If $iCurFrame > 2 Then
  27.                                         For $i = 0 To 19
  28.                                                 GUICtrlSetState($acFlameProjectors_1[$i], $GUI_SHOW)
  29.                                         Next
  30.                                 Else
  31.                                         For $i = 0 To 19
  32.                                                 GUICtrlSetState($acFlameProjectors_1[$i], $GUI_HIDE)
  33.                                         Next
  34.                                         GUICtrlSetData($cDuration_1, "")
  35.                                 EndIf
  36.                                 If $iCurFrame > 1 Then
  37.                                         For $i = 0 To 19
  38.                                                 GUICtrlSetState($acFlameProjectors_2[$i], $GUI_SHOW)
  39.                                         Next
  40.                                 Else
  41.                                         For $i = 0 To 19
  42.                                                 GUICtrlSetState($acFlameProjectors_2[$i], $GUI_HIDE)
  43.                                         Next
  44.                                         GUICtrlSetData($cDuration_2, "")
  45.                                 EndIf
  46.                                 _UpdateCheckboxAndDuration()
  47.                                 _Sleep(200)
  48.                                 GUICtrlSetState($cDuration_3, $GUI_FOCUS)
  49.                         EndIf
  50.         EndSwitch
  51. EndFunc