Exemplo n.º 1
0
def main_program():
    func.set_console_title(const.heading_converter)
    init()
    while True:
        try:
            func.main_heading()
            func.sub_heading(const.heading_converter)
            func.back_heading()
            func.sub_heading_softwares('02',
                                       const.rea_converter,
                                       option_string='Photo Converter')
            exit_code = func.exit_heading('03')

            choice = func.input_heading()

            if choice == 0:
                func.exception_heading(const.heading_zero)
                input()
                func.clear()
                continue

            elif choice == 1:
                func.clear()
                main.main()
                break

            elif choice == 2:
                rea_converter()
                func.clear()
                continue

            elif choice == int(exit_code):
                func.remove_temp(is_wait=True)
                sys.exit()

            else:
                func.exception_range_heading(exit_code)
                input()
                func.clear()
                continue

        except Exception as err:
            func.exception_heading(f'Please input a number. {err}')
            input()
            func.clear()

class ERROR(enum.IntEnum):
    ZERO = 0
    FILE_NOT_FOUND = 2
    PATH_NOT_FOUND = 3
    BAD_FORMAT = 11
    ACCESS_DENIED = 5
    ASSOC_INCOMPLETE = 27
    DDE_BUSY = 30
    DDE_FAIL = 29
    DDE_TIMEOUT = 28
    DLL_NOT_FOUND = 32
    NO_ASSOC = 31
    OOM = 8
    SHARE = 26


if __name__ == '__main__':
    if ctypes.windll.shell32.IsUserAnAdmin():
        if not len(os.listdir(func.temp)) == 0:
            func.log_show('Please wait...')
            func.remove_temp(is_wait=False)
            func.clear()
        main()
    else:
        hinstance = ctypes.windll.shell32.ShellExecuteW(
            None, 'runas', sys.executable, sys.argv[0], None, SW.SHOWNORMAL)
        if hinstance <= 32:
            raise RuntimeError(ERROR(hinstance))
Exemplo n.º 3
0
def main_program():
    func.set_console_title(const.heading_pdf)
    init()
    while True:
        try:
            func.main_heading()
            func.sub_heading(const.heading_pdf)
            func.back_heading()
            func.sub_heading_softwares('02', const.foxit_adv_pdf_editor)
            func.sub_heading_softwares('03', const.infix_pdf_editor)
            func.sub_heading_softwares('04', const.pdf_creator)
            func.sub_heading_softwares('05', const.pdf_shaper)
            func.sub_heading_softwares('06', const.tri_sun_pdf_to_jpg)
            func.sub_heading_softwares('07', const.pdf_to_jpg)
            func.sub_heading_softwares('08', const.pdf_to_jpg_converter)
            func.sub_heading_softwares('09', const.doro_pdf_writer)
            exit_code = func.exit_heading('10')

            choice = func.input_heading()

            if choice == 0:
                func.exception_heading(const.heading_zero)
                input()
                func.clear()
                continue

            elif choice == 1:
                func.clear()
                main.main()
                break

            elif choice == 2:
                foxit_adv_pdf_editor()
                func.clear()
                continue

            elif choice == 3:
                infix_pdf_editor()
                func.clear()
                continue

            elif choice == 4:
                pdf_creator()
                func.clear()
                continue

            elif choice == 5:
                pdf_shaper()
                func.clear()
                continue

            elif choice == 6:
                tri_sun_pdf_to_jpg()
                func.clear()
                continue

            elif choice == 7:
                pdf_to_jpg()
                func.clear()
                continue

            elif choice == 8:
                pdf_to_jpg_converter()
                func.clear()
                continue

            elif choice == 9:
                doro_pdf_writer()
                func.clear()
                continue

            elif choice == int(exit_code):
                func.remove_temp(is_wait=True)
                sys.exit()

            else:
                func.exception_range_heading(exit_code)
                input()
                func.clear()
                continue

        except Exception as err:
            func.exception_heading(f'Please input a number. {err}')
            input()
            func.clear()
Exemplo n.º 4
0
def main_program():
    func.set_console_title(const.heading_developer)
    init()
    while True:
        try:
            func.main_heading()
            func.sub_heading(const.heading_developer)
            func.back_heading()
            func.sub_heading_softwares('02', const.android_studio)
            func.sub_heading_softwares('03', const.java_jdk_08)
            func.sub_heading_softwares('04', const.python)
            func.sub_heading_softwares('05', const.git)
            func.sub_heading_softwares('06', const.notepad_p_p)
            func.sub_heading_softwares('07', const.pycharm)
            func.sub_heading_softwares('08', const.java_jdk_15)
            func.sub_heading_softwares('09', const.sq_lite)
            exit_code = func.exit_heading('10')

            choice = func.input_heading()

            if choice == 0:
                func.exception_heading(const.heading_zero)
                input()
                func.clear()
                continue

            elif choice == 1:
                func.clear()
                main.main()
                break

            elif choice == 2:
                android_studio()
                func.clear()
                continue

            elif choice == 3:
                java_jdk(const.java_jdk_08)
                func.clear()
                continue

            elif choice == 4:
                python()
                func.clear()
                continue

            elif choice == 5:
                git()
                func.clear()
                continue

            elif choice == 6:
                notepad_p_p()
                func.clear()
                continue

            elif choice == 7:
                pycharm()
                func.clear()
                continue

            elif choice == 8:
                java_jdk(const.java_jdk_15)
                func.clear()
                continue

            elif choice == 9:
                sq_lite()
                func.clear()
                continue

            elif choice == int(exit_code):
                func.remove_temp(is_wait=True)
                sys.exit()

            else:
                func.exception_range_heading(exit_code)
                input()
                func.clear()
                continue

        except Exception as err:
            func.exception_heading(f'Please input a number. {err}')
            input()
            func.clear()
Exemplo n.º 5
0
def main_program():
    func.set_console_title(const.heading_mobile)
    init()
    while True:
        try:
            func.main_heading()
            func.sub_heading(const.heading_mobile)
            func.back_heading()
            func.sub_heading_softwares('02', const.samsung_usb)
            func.sub_heading_softwares('03', const.smart_switch)
            func.sub_heading_softwares('04', const.i_tunes)
            func.sub_heading_softwares('05', const.sms_contacts_recover)
            func.sub_heading_softwares('06', const.i_mobie)
            func.sub_heading_softwares('07', const.fone_paw)
            exit_code = func.exit_heading('08')

            choice = func.input_heading()

            if choice == 0:
                func.exception_heading(const.heading_zero)
                input()
                func.clear()
                continue

            elif choice == 1:
                func.clear()
                main.main()
                break

            elif choice == 2:
                samsung_usb()
                func.clear()
                continue

            elif choice == 3:
                smart_switch()
                func.clear()
                continue

            elif choice == 4:
                i_tunes()
                func.clear()
                continue

            elif choice == 5:
                sms_contacts_recover()
                func.clear()
                continue

            elif choice == 6:
                i_mobie()
                func.clear()
                continue

            elif choice == 7:
                fone_paw()
                func.clear()
                continue

            elif choice == int(exit_code):
                func.remove_temp(is_wait=True)
                sys.exit()

            else:
                func.exception_range_heading(exit_code)
                input()
                func.clear()
                continue

        except Exception as err:
            func.exception_heading(f'Please input a number. {err}')
            input()
            func.clear()
Exemplo n.º 6
0
def main_program():
    func.set_console_title(const.heading_utilities)
    init()
    while True:
        try:
            func.main_heading()
            func.sub_heading(const.heading_utilities)
            func.back_heading()
            func.sub_heading_softwares('02', const.c_cleaner)
            func.sub_heading_softwares('03', const.power_iso)
            func.sub_heading_softwares('04', const.fonts)
            func.sub_heading_softwares('05', const.winrar)
            func.sub_heading_portable('06', const.dism_p_p)
            func.sub_heading_softwares('07', const.eng_to_urdu_dic)
            func.sub_heading_portable('08', const.cpu_z)
            func.sub_heading_portable('09', const.hw_info)
            func.sub_heading_softwares('10', const.aomei_partition)
            func.sub_heading_portable('11', const.rufus)
            func.sub_heading_softwares('12', const.seven_zip)
            func.sub_heading_softwares('13', const.vs_redistributable)
            func.sub_heading_softwares('14', const.better_rename)
            func.sub_heading_softwares('15', const.auslogics_duplicate)
            func.sub_heading_softwares('16', const.print_conductor)
            func.sub_heading_softwares('17', const.wise_duplicate)
            func.sub_heading_portable('18', const.occt_checking_tool)
            exit_code = func.exit_heading('19')

            choice = func.input_heading()

            if choice == 0:
                func.exception_heading(const.heading_zero)
                input()
                func.clear()
                continue

            elif choice == 1:
                func.clear()
                main.main()
                break

            elif choice == 2:
                c_cleaner()
                func.clear()
                continue

            elif choice == 3:
                power_iso()
                func.clear()
                continue

            elif choice == 4:
                fonts()
                func.clear()
                continue

            elif choice == 5:
                winrar()
                func.clear()
                continue

            elif choice == 6:
                dism_p_p()
                func.clear()
                continue

            elif choice == 7:
                eng_to_urdu_dic()
                func.clear()
                continue

            elif choice == 8:
                cpu_z()
                func.clear()
                continue

            elif choice == 9:
                hw_info()
                func.clear()
                continue

            elif choice == 10:
                aomei_partition()
                func.clear()
                continue

            elif choice == 11:
                rufus()
                func.clear()
                continue

            elif choice == 12:
                seven_zip()
                func.clear()
                continue

            elif choice == 13:
                vs_redistributable()
                func.clear()
                continue

            elif choice == 14:
                better_rename()
                func.clear()
                continue

            elif choice == 15:
                auslogics_duplicate()
                func.clear()
                continue

            elif choice == 16:
                print_conductor()
                func.clear()
                continue

            elif choice == 17:
                wise_duplicate()
                func.clear()
                continue

            elif choice == 18:
                occt_checking_tool()
                func.clear()
                continue

            elif choice == int(exit_code):
                func.remove_temp(is_wait=True)
                sys.exit()

            else:
                func.exception_range_heading(exit_code)
                input()
                func.clear()
                continue

        except Exception as err:
            func.exception_heading(f'Please input a number. {err}')
            input()
            func.clear()
Exemplo n.º 7
0
def main_program():
    func.set_console_title(const.heading_multimedia)
    init()
    while True:
        try:
            func.main_heading()
            func.sub_heading(const.heading_multimedia)
            func.back_heading()
            func.sub_heading_softwares('02', const.k_lite)
            func.sub_heading_softwares('03', const.mp3_tag)
            func.sub_heading_softwares('04', const.helium_music)
            func.sub_heading_softwares('05', const.zortam_mp3)
            exit_code = func.exit_heading('06')

            choice = func.input_heading()

            if choice == 0:
                func.exception_heading(const.heading_zero)
                input()
                func.clear()
                continue

            elif choice == 1:
                func.clear()
                main.main()
                break

            elif choice == 2:
                k_lite()
                func.clear()
                continue

            elif choice == 3:
                mp3_tag()
                func.clear()
                continue

            elif choice == 4:
                helium_music()
                func.clear()
                continue

            elif choice == 5:
                zortam_mp3()
                func.clear()
                continue

            elif choice == int(exit_code):
                func.remove_temp(is_wait=True)
                sys.exit()

            else:
                func.exception_range_heading(exit_code)
                input()
                func.clear()
                continue

        except Exception as err:
            func.exception_heading(f'Please input a number. {err}')
            input()
            func.clear()
def main_program():
    func.set_console_title(const.heading_major)
    init()
    while True:
        try:
            func.main_heading()
            func.sub_heading(const.heading_major)
            func.back_heading()
            func.sub_heading_softwares('02', const.ms_office)
            func.sub_heading_softwares('03', const.adobe_acrobat_reader)
            func.sub_heading_softwares('04', const.adobe_acrobat_pro)
            func.sub_heading_softwares('05', const.adobe_photoshop)
            func.sub_heading_softwares('06', const.adobe_xd)
            func.sub_heading_softwares('07', const.corel_draw)
            func.sub_heading_softwares('08', const.adobe_premiere)
            exit_code = func.exit_heading('09')

            choice = func.input_heading()

            if choice == 0:
                func.exception_heading(const.heading_zero)
                input()
                func.clear()
                continue

            elif choice == 1:
                func.clear()
                main.main()
                break

            elif choice == 2:
                ms_office()
                func.clear()
                continue

            elif choice == 3:
                adobe_acrobat_reader()
                func.clear()
                continue

            elif choice == 4:
                adobe_acrobat_pro()
                func.clear()
                continue

            elif choice == 5:
                adobe_photoshop()
                func.clear()
                continue

            elif choice == 6:
                adobe_xd()
                func.clear()
                continue

            elif choice == 7:
                corel_draw()
                func.clear()
                continue

            elif choice == 8:
                adobe_premiere()
                func.clear()
                continue

            elif choice == int(exit_code):
                func.remove_temp(is_wait=True)
                sys.exit()

            else:
                func.exception_range_heading(exit_code)
                input()
                func.clear()
                continue

        except Exception as err:
            func.exception_heading(f'Please input a number. {err}')
            input()
            func.clear()
def main_program():
    func.set_console_title(const.heading_internet)
    init()
    while True:
        try:
            func.main_heading()
            func.sub_heading(const.heading_internet)
            func.back_heading()
            func.sub_heading_softwares('02', const.firefox)
            func.sub_heading_softwares('03', const.idm)
            func.sub_heading_softwares('04', const.chrome)
            func.sub_heading_softwares('05', const.fdm)
            func.sub_heading_softwares('06', const.net_balancer)
            func.sub_heading_softwares('07', const.net_limiter)
            func.sub_heading_softwares('08', const.net_set_man)
            exit_code = func.exit_heading('09')

            choice = func.input_heading()

            if choice == 0:
                func.exception_heading(const.heading_zero)
                input()
                func.clear()
                continue

            elif choice == 1:
                func.clear()
                main.main()
                break

            elif choice == 2:
                firefox()
                func.clear()
                continue

            elif choice == 3:
                idm()
                func.clear()
                continue

            elif choice == 4:
                chrome()
                func.clear()
                continue

            elif choice == 5:
                fdm()
                func.clear()
                continue

            elif choice == 6:
                net_balancer()
                func.clear()
                continue

            elif choice == 7:
                net_limiter()
                func.clear()
                continue

            elif choice == 8:
                net_set_man()
                func.clear()
                continue

            elif choice == int(exit_code):
                func.remove_temp(is_wait=True)
                sys.exit()

            else:
                func.exception_range_heading(exit_code)
                input()
                func.clear()
                continue

        except Exception as err:
            func.exception_heading(f'Please input a number. {err}')
            input()
            func.clear()
Exemplo n.º 10
0
def main():
    make_font_bigger()
    os.system('mode 120, 45')
    func.set_console_title(const.heading_main_title)
    init()
    while True:
        try:
            func.main_heading()
            func.main_heading_softwares('01', 'All Drivers & Recommended')
            func.main_heading_softwares('02', const.heading_converter)
            func.main_heading_softwares('03', const.heading_developer)
            func.main_heading_softwares('04', const.heading_internet)
            func.main_heading_softwares('05', const.heading_major)
            func.main_heading_softwares('06', const.heading_mobile)
            func.main_heading_softwares('07', const.heading_multimedia)
            func.main_heading_softwares('08', const.heading_pdf)
            func.main_heading_softwares('09', const.heading_utilities)
            func.main_heading_softwares('10', 'Recommended Newer Updated')
            func.main_heading_log_view('11')
            exit_code = func.exit_heading('12')

            choice = func.input_heading()

            if choice == 0:
                func.exception_heading(const.heading_zero)
                input()
                func.clear()
                continue

            elif choice == 1:
                drivers = 'Drivers'
                func.Softwares(file_name=drivers,
                               driver_dir='Audio',
                               setup='Setup.exe',
                               args=r'/S').install()
                func.Softwares(
                    file_name=drivers,
                    driver_dir='Chipset',
                    sub_dri_dir='Intel Active Management Technology',
                    setup='Setup.exe',
                    args=r'-L 0409 -S').install()
                func.Softwares(file_name=drivers,
                               driver_dir='Chipset',
                               sub_dri_dir='Intel Chipset Device',
                               setup='Setup.exe',
                               args=r'-L 0409 -S').install()
                func.Softwares(file_name=drivers,
                               driver_dir='Graphics',
                               setup='igxpin.exe',
                               args=r'-L enu -S').install()
                func.Softwares(
                    file_name=drivers,
                    driver_dir='Network',
                    sub_dri_dir=os.path.join(*['APPS', 'PROSETDX', 'Winx64']),
                    setup='DxSetup.exe',
                    args=r'/QUIET /NORESTART').install()
                developer.git()
                developer.java_jdk(const.java_jdk_08)
                developer.notepad_p_p()
                developer.android_studio()
                internet.firefox()
                mobile.samsung_usb()
                multimedia.k_lite()
                utilities.c_cleaner()
                utilities.fonts()
                utilities.winrar()
                developer.python()
                developer.pycharm()
                func.clear()
                continue

            elif choice == 2:
                func.clear()
                converter.main_program()
                break

            elif choice == 3:
                func.clear()
                developer.main_program()
                break

            elif choice == 4:
                func.clear()
                internet.main_program()
                break

            elif choice == 5:
                func.clear()
                major.main_program()
                continue

            elif choice == 6:
                func.clear()
                mobile.main_program()
                continue

            elif choice == 7:
                func.clear()
                multimedia.main_program()
                continue

            elif choice == 8:
                func.clear()
                pdf.main_program()
                continue

            elif choice == 9:
                func.clear()
                utilities.main_program()
                continue

            elif choice == 10:
                func.Softwares().update_install()
                func.clear()
                continue

            elif choice == 11:
                func.Softwares().get_logs()
                func.clear()
                continue

            elif choice == int(exit_code):
                func.remove_temp(is_wait=True)
                sys.exit()

            else:
                func.exception_range_heading(exit_code)
                input()
                func.clear()
                continue

        except Exception as err:
            func.exception_heading(f'Please input a number. {err}')
            input()
            func.clear()