BestTechie Forums: Novice Python Question - BestTechie Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Novice Python Question


#1 User is offline   shanenin 

  • UberTechie
  • Group: Moderator
  • Posts: 3755
  • Joined: 24-February 05
  • Location:rochester , MN USA
  • Operating System:Ubuntu 8.04

Posted 15 April 2007 - 10:22 PM

I have spent the last year pretty much reloading Windows and diagnosing blue screens. I have pretty much forgotten how to do anything in python. I have the following code to get the data in the windows clipboard
import win32con, win32clipboard
win32clipboard.OpenClipboard()
win32clipboard.GetClipboardData(win32con.CF_TEXT)
raw_input()


when I run these commands one at a time in an interpreter they return the clipboard data. When I run the commands as a script they do not return anything. Am I missing something simple?

#2 User is offline   shanenin 

  • UberTechie
  • Group: Moderator
  • Posts: 3755
  • Joined: 24-February 05
  • Location:rochester , MN USA
  • Operating System:Ubuntu 8.04

Posted 15 April 2007 - 10:39 PM

I needed a print statement.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users