EXのことで質問です。 単純なカレンドウィンドウのタイトルとクラス名を表示する関数を作ろうとしているのですが、GetWindowTextが定義されていないというエラーが出ます。 NameError: global name 'GetWindowText' is not defined 関数はこんな感じです。 def ActiveCT(): h=GetForegroundWindow() t=GetWindowText() c=GetClassName() SetValue(c + ":" + t)