title: Getting Windows mouse event logs with win32evtlog
body: <p>I want to get all stored event logs of my windows 8 machine using python 3.3 (especially the mouse event logs). I found a way of getting the event log file with win32evtlog module in python.
  By reading the "System" logtype, I get a total number of 6594.</p>
  
  <pre><code>import win32evtlog
  
  hand  = win32evtlog.OpenEventLog("localhost","System")
  flags = win32evtlog.EVENTLOG_BACKWARDS_READ| win32evtlog.EVENTLOG_SEQUENTIAL_READ
  total = win32evtlog.GetNumberOfEventLogRecords(hand)
  print("Total Number of Events:",total)
  </code></pre>
  
  <p>>> Total Number of Events: 6594</p>
  
  <p>I suppose the mouse event logs an all other logs of a certain amount of size are in these approx. 6600 event logs. But when i try to loop/iterate over the events to get the information iwant, i just get back 3 event log objects.</p>
  
  <pre><code>import win32evtlog
  
  hand  = win32evtlog.OpenEventLog("localhost","System")
  flags = win32evtlog.EVENTLOG_BACKWARDS_READ| win32evtlog.EVENTLOG_SEQUENTIAL_READ
  
  events = win32evtlog.ReadEventLog(hand,flags,0)
  print("LEN of event objects stored:",len(events),end="\n"*2)
  </code></pre>
  
  <p>>> LEN of event objects stored: 3</p>
  
  <p>Am I on a wrong path for the solution ? 
  Or do you see whats wrong here ? 
  Everytime thankful for any help</p>