Batch administrator privileges

Most of the time CMD command request Administrator privileges to run. Lets make a batch auto check if have admin privileges @echo off goto check_Permissions :check_Permissions echo. echo ADMINISTRATOR LEVEL REQUESTED. CHECKING PERMISSIONS … echo. net session >nul 2>&1 if %errorLevel% == 0 ( echo Success: ADMINISTRATION LEVEL PERMISSION CONFIRMED echo. cls ) else ( echo … Read more

Windows 10 missing network protocols Fixed

After upgrading to Windows 10 I lost my connectivity, Lan and wireless. The error : one or more network protocols are missing from this computer I found this command FIX the problem: Open CMD (administrator rights) Type :  netsh winsock reset catalog Reboot If still limited connection, try to uninstall Avast antivirus. Should be work now, if … Read more

Turn off camera dark screen on Unity 5 (c#)

This is a method I used to turn off camera in Blind Setting Camera.main.cullingMask to Zero using UnityEngine; using System.Collections; /******************************************** UNITY 5.2.3 Blind Project ’15 Turn ON / Turn OFF Camera & Lights v 1.0 www.Finalmarco.com /********************************************/ public class SpegniLuci : MonoBehaviour { // Use this for initialization void Start () { //Turn Off … Read more

Scene pause Unity 5 (c#)

Pausing a scene using UnityEngine; using System.Collections; //Finalmarco.com public class PausaGioco : MonoBehaviour { bool paused = false; void Update () { if(Input.GetKeyDown(“p”)) { gamePaused(); } } void OnGUI() { if (paused == true) { GUILayout.Label(“GAME IS PAUSED”); if(GUILayout.Button (“CLICK TO UNPAUSE”)) { gamePaused(); } } } void gamePaused() { if (Time.timeScale == 1) { … Read more

Quitting a scene using ESC key Unity5 (c#)

Quitting a scene using ESC key in Unity 5 using UnityEngine; using System.Collections; // Finalmarco.com – Random Blind code public class ExitGame : MonoBehaviour { // Use this for initialization void Start () { Cursor.visible = false; } // Update is called once per frame void Update () { if (Input.GetKeyDown(KeyCode.Escape)) { //Application.Quit(); Application.LoadLevel (“_Menu”); … Read more