title: Hide mouse pointer / cursor when playing video / slideshow in Inno Setup
body: <p>I created an Inno Setup script that plays a slideShow or a video during program installation depending on what I choose to play.</p>
  
  <p>When I bring mouse to the area which the playback is doing during the slideshow / video playback, a cursor (<code>crArrow</code>) is appearing on video / slideshow.</p>
  
  <p>I want to prevent the mouse cursor from being displayed on video / slideshow while the slideshow / video is playing.</p>
  
  <p>When using <code>crNone</code> property for the handling form window (<code>BackgroundForm</code>) the cursor is hiding only from it and not from slideshow / video. Isn't there anyway I can hide the cursor from slideshow/video? How can I apply <code>crNone</code> for that? I mean like <code>SlideShow.crNone</code> or <code>Video.crNone</code>.</p>
  
  <p>I attached two images showing how the cursor appearing.  </p>
  
  <ul>
  <li><a href="http://i.stack.imgur.com/42Jww.jpg" rel="nofollow">The Cursor appearing when playing SlideShow.</a></li>
  <li><a href="http://i.stack.imgur.com/bwfzK.jpg" rel="nofollow">The Cursor appearing when playing Video.</a></li>
  </ul>
  
  <hr>
  
  
  
  <p>How I handle video on the <code>BackgroundForm</code> using Inno Media Player:</p>
  
  <pre class="lang-pascal prettyprint-override"><code>procedure PlayMPEGVideo();
  begin
    if VBRadio2.Checked then begin
      if FileExists(ExpandConstant('{tmp}\Video.mp4')) then
      begin
        if DSInitializeVideoFile(ExpandConstant('{tmp}\Video.mp4'), BackgroundForm.Handle, Width, Height, @BackgroundVideoPlay) then
        begin
          BackgroundForm.Width := GetSystemMetrics(0);
          BackgroundForm.Height := GetSystemMetrics(1);
          BASS_Pause;
          SoundCtrlButton.Enabled := False;
          DSSetVolume(-0);
          DSPlayMediaFile;
          WizardForm.BringToFront;
          PauseBT.Show;
          PlayBT1.hide;
          PlayBT.hide;
          with WizardForm do begin
            WizardForm.NextButton.Caption := 'Install';
          end;
        end;
      end;
    end else begin
      with WizardForm do begin
        if CurPageID = wpInstalling then begin
          PauseBT.hide;
          CompactCheckBox.Visible := False;
          WizardForm.WizardSmallBitmapImage.Show;
          WizardForm.Bevel1.Show;
          with WizardForm do begin
            WizardForm.ProgressGauge.show;
          end;
        end;
      end;
    end;
  end;
  </code></pre>
  
  <hr>
  
  <p>How I handle slideshow on the <code>BackgroundForm</code> using isSlideShow:</p>
  
  <pre class="lang-pascal prettyprint-override"><code>procedure MakeSlideShow();
  var
    i :integer;
  begin
    if NoBackgroundCheckBox.Checked = True then begin
      with WizardForm do begin
        if CurPageID=wpInstalling then begin
          PauseBT.hide;
          CompactCheckBox.Visible := False;
          WizardForm.WizardSmallBitmapImage.Show;
          WizardForm.Bevel1.Show;
          with WizardForm do begin
            WizardForm.ProgressGauge.show;
          end;
        end;
      end;
    end else begin
      BackgroundForm:= TForm.Create(nil);
      BackgroundForm.BorderStyle:= bsNone;
      BackgroundForm.Color:=clBlack;
      BackgroundForm.SetBounds(0, 0, GetSystemMetrics(0), GetSystemMetrics(1))
      BackgroundForm.Visible:=True;
      BackgroundForm.enabled:= False;
      PicList:=tstringlist.Create;
  #ifexist "Slides\1.jpg"
  #sub ExtractFile
      ExtractTemporaryFile('{#i}.jpg');
  #endsub
  #for {i = 1; FileExists(StringChange("Slides\FileName.jpg", "FileName", Str(i))) != 0; i++} ExtractFile
  #endif
      i:=1;
      repeat
        piclist.add(ExpandConstant('{tmp}\'+IntToStr(i)+'.jpg'));
        i:=i+1;
      until FileExists(ExpandConstant('{tmp}\'+IntToStr(i)+'.jpg')) = False;
      BackgroundForm.Show;
      InitializeSlideShow(BackgroundForm.Handle, 0, 0, GetSystemMetrics(0), GetSystemMetrics(1), true, 1);
      ShowImage(ExpandConstant('{tmp}') + '\1.jpg', 1);
      PlayBT1 := PlayBT;
    end;
  end;
  </code></pre>
  
  <p>Thanks in advance.</p>