Category : console

Try to hide widows console in wifi.py using Windows 10 but I did not succeed. I changed the script extension from wifi.py to wifi.pyw but did not work and I used in my CMD: python pyinstaller –onefile –noconsole wifi.py but still window console appear. I also using ctypes library import ctypes ctypes.windll.user32.ShowWindow( ctypes.windll.kernel32.GetConsoleWindow(), 0 ) ..

Read more

Try to hide widows console in wifi.py using Windows 10 but I did not succeed. I changed the script extension from wifi.py to wifi.pyw but did not work and I used in my CMD: python pyinstaller –onefile –noconsole wifi.py but still window console appear. I also using ctypes library import ctypes ctypes.windll.user32.ShowWindow( ctypes.windll.kernel32.GetConsoleWindow(), 0 ) ..

Read more

Hi I want to make a four connect game for 2 local players. I created everything but im not sure if my code for win condition is okay and i have no idea how to check the condition for diagonal win. my Code for the win condition: int checkIfWon(array<array <char, cols>, rows> board) { //Check ..

Read more

I know this is pretty far out, but would it be possible to make a program rebuild itself? Like some form of system call that would make the program shut down, rebuild itself and reboot. The idea is to make this dev console inside the program which would allow some hypothetical dev to add a ..

Read more

I’m trying programmatically press a key in other app. Using functions of user32.dll (btw, does it make sense if the app is 64-bit application). I do smth like this: const uint KEYEVENTF_EXTENDEDKEY = 0x0001; const uint KEYEVENTF_KEYUP = 0x0002; private const int VK_F9 = 0x78; [DllImport("user32.dll", CharSet = CharSet.Auto)] public static extern IntPtr FindWindowEx( IntPtr ..

Read more