LQE"全能AHK快速啟動工具:GPT-4加持,輕鬆管理及執行1000+項目"

提示: 作者被禁止或刪除 內容自動屏蔽

提示: 作者被禁止或刪除 內容自動屏蔽

TOP

  1. import win32gui
  2. import win32con
  3. import win32api

  4. class StartupTool:
  5.     def __init__(self):
  6.         self.project_files = []
  7.         self.project_folders = []
  8.         self.hyperlinks = []
  9.         self.default_filters = []
  10.         self.active_window = None

  11.     def process_projects(self):
  12.         # Process projects, including files, folders, hyperlinks, etc.
  13.         pass

  14.     def apply_filters(self):
  15.         # Apply filters to locate the required items
  16.         pass

  17.     def set_default_filters(self, filters):
  18.         self.default_filters = filters

  19.     def adjust_display_position(self, position):
  20.         # Adjust the pop-up position of the tool interface
  21.         pass

  22.     def flip_interface(self, screen):
  23.         # Flip the interface to another screen
  24.         pass

  25.     def get_active_window(self):
  26.         self.active_window = win32gui.GetWindowText(win32gui.GetForegroundWindow())

  27.     def send_text(self, text):
  28.         # Send text to the active window
  29.         pass

  30.     def send_macro(self, macro):
  31.         # Send macro commands to the active window
  32.         pass

  33.     def run(self):
  34.         # Main loop of the startup tool
  35.         while True:
  36.             self.get_active_window()
  37.             # Process user input and perform actions based on the input

  38. if __name__ == "__main__":
  39.     tool = StartupTool()
  40.     tool.set_default_filters(["filter1", "filter2"])
  41.     tool.run()
複製代碼
開源的,點用自便

TOP

提示: 作者被禁止或刪除 內容自動屏蔽

TOP

Send 不了文字.

Send 不了 authotkey macro 吧.

我的源碼 約千二行 autohotkey.
你60行python可以做到 ...
BS_Man 發表於 2024/1/25 21:29


關我咩事?

TOP

識寫 code 還識寫 code,唔識推廣嘅結果都係留返你自己用,冇人識欣賞你嘅產品

你個產品嘅受眾係乜人士或者用家?有冇運作例子?對比其他出品點解要用你嘅出品?

TOP