I want to add my program to registry automatic when user open program , i found some video and used a module "rayanoos" but dose not working
My code:
import rayanoos
import sys
tool = rayanoos.tools()
tool.reg_add_to_startup("win" , sys.argv[0] )
and erorr:
Traceback (most recent call last):
File "e:\code\lock\main.py", line 3, in <module>
tool = rayanoos.tools()
File "C:\Users\81332668\AppData\Local\Programs\Python\Python39\lib\site-packages\rayanoos.py", line 32, in __init__
self.__dll = CDLL('C:\\ProgramData\\rns.rx')
File "C:\Users\81332668\AppData\Local\Programs\Python\Python39\lib\ctypes\__init__.py", line 374, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 is not a valid Win32 application
what should i do to improve my bug !!