- 1 名前:名無しさん@お腹いっぱい。 mailto:sage [2005/06/09(木) 14:16:23 ID:yH7etwQi]
- CraftLaunch/Ex(倉)
hp.vector.co.jp/authors/VA012411/ について語るスレ 過去スレ Craftlaunchを応援しよう!Part 4 pc8.2ch.net/test/read.cgi/software/1074523900/ Craftlaunchを応援しよう! Part 3 pc2.2ch.net/test/read.cgi/software/1041429042/ Craftlaunchを応援しよう! Part 2 pc3.2ch.net/test/read.cgi/software/1015665823/ Craftlaunchを応援しよう! pc.2ch.net/win/kako/981/981464983.html 関連スレ おすすめのランチャーを教えるスレ Part5 pc8.2ch.net/test/read.cgi/software/1107340418/ 関連サイト CraftLaunchを応援したいし (Wiki) craft.office.vg/ Craft Launchを応援したいし、生きているし。 www.geocities.jp/craftlaunchex/ 名無し屋本舗 www.geocities.co.jp/SiliconValley-SantaClara/1364/
- 579 名前:名無しさん@お腹いっぱい。 mailto:sage [2007/03/05(月) 17:29:11 ID:Z4yogqJp0]
- >>578
どっかで拾ったやつ # アクティブ化ホットキーはトグル def ActivateToggle(): if GetHandle() == GetForegroundWindow(): SetValue('') PopList([]) clcore.RaiseNextWindow() else: ActivateSelf() これを config.py に貼り付けて ホットキーの ActivateSelf() を ActivateToggle() に書き換える。
- 580 名前:名無しさん@お腹いっぱい。 mailto:sage [2007/03/05(月) 20:25:20 ID:l3aG40qW0]
- >578
手元のはこんな感じ #共通する外部ファイル読み込み import clcore import os.path #アクティブ化ホットキーはトグル LastActiveWindow = 0 def ActivateToggle(): global LastActiveWindow hwnd_fore = GetForegroundWindow() hwnd_craft = GetHandle() if hwnd_fore == hwnd_craft: clcore.RaiseNextWindow() SetForegroundWindow(LastActiveWindow) else: SetForegroundWindow( hwnd_craft ) LastActiveWindow = hwnd_fore SetSelection( 0, -1 )
- 581 名前:名無しさん@お腹いっぱい。 mailto:sage [2007/03/05(月) 20:29:52 ID:l3aG40qW0]
- インデントがくずれたのでやり直し
もし使うんならコピペしたあとで適当に直して #共通する外部ファイル読み込み import clcore import os.path #アクティブ化ホットキーはトグル LastActiveWindow = 0 def ActivateToggle(): global LastActiveWindow hwnd_fore = GetForegroundWindow() hwnd_craft = GetHandle() if hwnd_fore == hwnd_craft: clcore.RaiseNextWindow() SetForegroundWindow(LastActiveWindow) else: SetForegroundWindow( hwnd_craft ) LastActiveWindow = hwnd_fore SetSelection( 0, -1 )
|

|