BytePhoenixCoding / BlockchainTokenSniper

Please see website / Telegram group for more details.
473 stars 286 forks source link

ctypes windll fails on mac and linux #12

Closed shaiss closed 3 years ago

shaiss commented 3 years ago

https://github.com/BytePhoenixData/BSCTokenSniper/blob/69c7d0d6ac9630da72c59e412fce536f96827ff6/BSCTokenSniper.py#L40

ctypes.windll.kernel32.SetConsoleTitleW("BSCTokenSniper | Loading...")

There's an error on mac and linux with this line and 103 that references windll.

Looking at the docs, I can't figure out the equivalent on mac/*nix so I commented those lines out.

https://docs.python.org/3/library/ctypes.html

Any suggestions how to fix this?

geeks121 commented 3 years ago

you can go to my fork

it's fixed for linux, so it can run in unix based. bscniper for linux

BytePhoenixCoding commented 3 years ago

I also have a mac so will adjust for mac. Basically its the same but just remove the ctypes.windll.kernel32 lines as mac and linux won't recognise that

geeks121 commented 3 years ago

I also have a mac so will adjust for mac. Basically its the same but just remove the ctypes.windll.kernel32 lines as mac and linux won't recognise that

yeah it just change ctypes with other .. it work in my fork may you add it to update so the script multi platform not only windows.. and it works also in windows without ctypes