About 30 results
Open links in new tab
  1. Python script to change monitor refresh rate

    Jun 3, 2024 · The ctypes.wintypes module provides quite some other Windows specific data types, for example HWND, WPARAM, or DWORD. Some useful structures like MSG or RECT are also defined.

  2. Return a 2D matrix from a C++ function in Python: ctypes versus ...

    I found two ways in which I can use a custom C++ function (returning a 2D matrix) in Python. One approach that uses the Python module ctypes and another that uses the Python module pybind11. …

  3. Process Injector using ctypes and the Windows API

    May 2, 2021 · To get some practice with the Windows API and ctypes, I decided to write a program capable of injecting and running shellcode inside of another specified process. An example: …

  4. A Windows hook that detects the foreground window change

    Jan 4, 2023 · I tried to implement a windows hook to grab foreground window event. This code is probably bad because I didnt understand much. Can you tell me if that is better than a simple while …

  5. Assembly REPL in Python using ctypes - Code Review Stack Exchange

    Nov 8, 2020 · I created a assembly REPL using some ctypes hacks to run the assembly code. Any suggestions on how I could improve it? I am unconcerned about some of the "obvious" …

  6. UUID v7 implementation in python - Code Review Stack Exchange

    Dec 14, 2024 · Implementation of UUID Version 7 (UUIDv7) according to RFC 9562, Ported from Guid.CreateVersion7() The official implementation in Python is uuid I have verified the generated …

  7. Transfer an array of unknown size from C to Python using Ctypes

    Dec 9, 2019 · I am new to Ctypes. I am writing a piece of code that brings an array of unknown size from C to Python using Ctypes. Unknown size here means that Python initially doesn't know the size of …

  8. Autoclicker Tkinter Program - Code Review Stack Exchange

    Dec 26, 2014 · My code is an auto-clicker that uses Python3 ctypes for the clicking and Tkinter for the GUI. I made this in 2 hours so there might be a lot of optimization I could do.

  9. Alerting users with a pop-up window - Code Review Stack Exchange

    Feb 25, 2015 · elif returnValue == 7: messageBox = ctypes.windll.user32.MessageBoxA returnValue = messageBox(None, "TextRespondingToAnswerNo", "WindowTitle", 0x40 | 0x0) count = count + 1 …

  10. Add and enable/disable Windows Firewall rules with Python

    Jan 9, 2019 · I have this following module using for adding and enabling/disabling Windows Firewall rules using Python. I currently use subprocess.call to execute the netsh command inside Python. I'm …