title: How To Read A Particular Cell In Excel In Python And Make It A Variable
body: <p>I am making a macro for minecraft, in the macro I want the module &quot;pyautogui&quot; to first press RIGHT CLICK then &quot;2&quot;. But in my macro i want a custom input, And i don't want to annoy the user to death by learning and installing python. here is my code</p>
  <pre><code>import pyautogui
  import keyboard
  import time
  import pandas as pd
  # any other modules
  
  # I need to define the  god damn excel
  # need to read cell &quot;B3&quot;
  
  
  # defining the click &amp; wait function for ease of access
  def click(amount):
      pyautogui.click(amount)
  
  
  def wait(seconds):
      time.sleep(seconds)
  
  
  # main
  while True:
      if keyboard.is_pressed(&quot;`&quot;):
          click(1)
          wait(0.01)
          keyboard.press(2)
          wait(0.01)
          click(1)
  </code></pre>