Skip to main content

Reprogramming Your Brain. How to Program Your Mind Like a Computer.

I wanted to change my behavior. So I made a simple computer program to reprogram myself.

Good luck affirmation on a photo.

Good luck affirmation on a photo.

Mental Programming

If it is 12:00 pm then I have lunch. If it is 8:00 pm then I turn on my TV. People follow a lot of if then rules and while statements like a computer program. When you are already programmed to take the action, then getting yourself to do it is easy. Think of a habit as a few lines of code. Changing your behavior is usually difficult because it goes against your programming.

The more you do something the harder it is to change your behavior. Maybe you want to exercise but you end up watching TV for three hours instead. Watching TV, reading books, and playing video games often prevent people from getting what they really want. You are programmed to sit still. So you don't take the actions you need to take to achieve your goals.

Bad habits are hard to break but so are good ones.

Wishing and Hoping

If you are not doing the work to accomplish your goals then you are just wishing and hoping. A lot of people want to lose weight but they don't change their behavior. Wanting something is not enough. You need to take action. Starting a task that you are not in the habit of doing is often the hardest part.

Getting off the couch and onto a treadmill can be harder than running for 40 minutes. One of the main reasons people don't take action is because they are programmed not to. It is easier to do what you normally do. Reprogram your brain, take action and get what you want.


Affirmations are positive statements that are repeated hundreds of times. I only need to add a command to a computer program once for it to work. Your brain is not the same as a computer. Statements or commands need to be repeated over and over again. Reprogramming your mind requires repetition.

Say 'Cold showers are refreshing' 20 times a day and eventually you will get into the habit of having cold showers. Keep telling yourself that you like to exercise while you watch TV and you will probably get into the habit of exercising while you watch TV. It worked for me.

  • I like to exercise while I watch TV.
  • I turn off the TV at 11:00 pm.
  • I am productive in my free time.
  • I make my own good luck.
  • I eat healthy food.

Figure out what you want. Then make up affirmations that will help you take the actions you need to take. You can write down affirmations, say them, listen to them or read them. Do them as a daily exercise. Like a daily physical workout, it will take time to get the results you want. Since repeating the same sentence over and over again can get boring you may want to add text to photos and videos.

How to Put Text on a Video

One way to add text to a video is to use a video editor. If the program was made for editing videos then you should be able to add text. Adding the text would only take a few seconds but loading and saving the video could take a long time. You would make the changes and save a copy of the video. It is similar to using an image editor to add text to a photo.

Another way is to put text over the top of the video while it is playing. Don't add the text to the video file. Just display the video at level 1 and the text at level 2. This method saves a lot of time and disk space. It only takes a few extra seconds to add the text and you are not limited to one video.

A Web Page That Reprograms Your Mind

I decided to make a computer program that reprograms me. Basically, it is a web page that allows me to play videos or photo slideshows in my browser and display text on top. When the text being displayed is an affirmation, I can reprogram myself while watching videos and looking at images. It was made using HTML and JavaScript. You could copy it and run it on your computer.

Scroll to Continue

Read More From Remedygrove

Choose videos that make you feel good or ones associated with the same topic as your affirmations. If you are trying to program yourself to exercise more you could watch exercise videos. I like to watch relaxing videos while programming myself. Load a group of photos and it will display a slide show. Select multiple videos and it will play them one after the other. Replace the default statements with your own.

Entertain yourself by watching videos and looking at slide shows while the affirmations are reprogramming your brain.

A Simple Affirmations Program

<html lang="en">
<!-- Copyright Michael Hadwen,, -->
<title>Reprogram Your Mind with Affirmations</title></head>
<META name="description" content="">
<META name="keywords" content="">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1, user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
div {height: 100vh;width: 100%;background-color: powderblue;margin: auto;}

video {max-height: 100vh;max-width: 100%;background-color: powderblue;
  margin: auto;position: relative;top: 50%;transform: translateY(-50%);}

img {max-height: 100vh;max-width: 100%;background-color: powderblue;
  margin: auto;position: relative;top: 50%;transform: translateY(-50%);

  -webkit-transition: opacity 1s ease-in-out;
  -moz-transition: opacity 1s ease-in-out;
  -o-transition: opacity 1s ease-in-out;
  transition: opacity 1s ease-in-out;
input[type=checkbox] {-webkit-appearance:checkbox;}
<body  style="margin:0; padding:0;overflow-x: hidden;background-color:RGBA(255,0,0,0);">
<CENTER><font color="white"><canvas id="canvas" style="position:absolute;display:none;border:0px;visibility:visible; z-index: 3;"></canvas>

<div id="VDiv">
<video id="vidElement" autoplay title="video" style="border:2px;visibility:visible;max-width:100%;display:initial;"></video>
<img id="picture" style="border:2px;visibility:visible;max-width:100%;display:initial; z-index: 1;display:none;"></img>
<div id="VDiv2" style="position:absolute;left:0px;top:0px;">
<img id="picture2" style="border:2px;visibility:visible;max-width:100%;display:initial; z-index: 2;display:none;"></img>

<textarea id="TextBox" rows="4" cols="50" style="font-size: 16px;">
I am productive in my free time.

I make my own good luck.


<a style="color:black;">Left <input type="number" id="TextX" value=0 min="0" max="1000"> &nbsp Top <input type="number" id="TextY" value=50 min="0" max="600">
&nbsp Opacity <input type="number" id="Alpha" value=50 min="30" max="100"> &nbsp Size <input type="number" id="FS" value=30 min="10" max="100"></a>
<br><a style="color:black;">Show Affirmations <input style="color:black;" id="ShowAff" onchange="DisplayAffs()" type="checkbox" checked></a> &nbsp &nbsp <input class="Buttons" id="FileInput" style="width: 120px;display:initial;" onchange="GetFiles()" type=file multiple  accept="image/*,video/*" > <a style="color:black;">Center <input style="color:black;" id="ALIGN" onchange="ChangeAlign()" type="checkbox" checked></a><br><br><br>

var TextX=document.getElementById("TextX"),TextY=document.getElementById("TextY");
var ShowAff=document.getElementById("ShowAff");
var canvas=document.getElementById("canvas"),Context1=canvas.getContext("2d");
var picture=document.getElementById("picture");picture.type="image";
var video=document.getElementById("vidElement");
var Files=document.getElementById('FileInput');
var TxtBox=document.getElementById("TextBox"),TextNum=-1;
var LoadingImage=0,TimeDelay,Stop=false,First=false;

function DisplayAffs() {if(ShowAff.checked) {"initial";video.controls=false;} else {"none";video.controls=true; }  }

function ChangeAlign() {if(ALIGN.checked) {"50%";"translateY(-50%)"; } else 
   {"0";"translateY(0)"; };;

function GetFiles() 
   Stop=true;clearTimeout(TimeDelay);LoadingImage=0;First=true;;"opacity 0";;

function Transition(N)
 if(Stop) return;
 if(N==0) {;;} else if(N==1) {picture2.src=picture.src;;}
 if(N<2) TimeDelay=setTimeout(Transition,1000,N+1); else TimeDelay=setTimeout(ChangedVideo,1000);

function ChangedVideo()  //1st check videos,2nd photos
   if(Stop) return;
   LoadingImage++;if(LoadingImage>Files.files.length) {LoadingImage=1;}   
      videoURL = URL.createObjectURL(Files.files[LoadingImage-1]);
      video.src = videoURL;"none";"none";"initial";
      if(ShowAff.checked) video.controls=false; else video.controls=true;
      video.onended = function(){ if(Files.files[LoadingImage-1].type.indexOf("image")==0) return;ChangedVideo(); };
   } else if(Files.files[LoadingImage-1].type.indexOf("image")==0)
      videoURL = URL.createObjectURL(Files.files[LoadingImage-1]); 
      picture.onload=function(){video.src=null; if(Files.files.length>1) TimeDelay=setTimeout(Transition,1000,0); }   
      if(First) { picture.src=videoURL;First=false;;}
      else {;setTimeout(function(){picture.src=videoURL;},1000);}

var rect=document.getElementById("VDiv").getBoundingClientRect(),OP2=0,ChangeOp=1;
function Draw()
   var Left=parseInt(TextX.value),Top=parseInt(TextY.value); 
   OP2=OP2+ChangeOp;if(OP2>200) ChangeOp=-1;if(OP2<=-80) {ChangeOp=1;TextNum=TextNum+1;} = OP2/100;
   var gradient = Context1.createLinearGradient(0, 0, canvas.width, 0);    // Create & fill with gradient
   gradient.addColorStop("0", "magenta");gradient.addColorStop("0.5", "blue");gradient.addColorStop("1.0", "red");
   Context1.strokeStyle = gradient;Context1.font = document.getElementById("FS").value+"px Verdana";Context1.fillStyle ="white";

   var Text=TxtBox.value,Sentences=Text.split(".");   if(TextNum<0 || TextNum>=Sentences.length-1) TextNum=0;
   if(TextNum==Math.floor(TextNum)) Text=Sentences[ Math.floor(TextNum) ]+"."; else Text="";
   Context1.textAlign = "center";Context1.fillText(Text, Left, Top);Context1.strokeText(Text, Left, Top);

function mouseDown(e) {rect=canvas.getBoundingClientRect();TextX.value=e.clientX-rect.left;;} 

canvas.addEventListener('mousedown', mouseDown, false);
function onload() {;"100vh";"100vw";"initial";TextY.value=parseInt(rect.height*.8)-30;TextX.value=parseInt( (rect.width/2) );Draw();}
window.onload = onload();


Instructions to Copy the Program

  1. Left click and drag the mouse over the text to select it.
  2. Let go of the left button and click on the right button to get the copy option.
  3. Copy the text.
  4. Paste it into a into a word processor like NotePad.
  5. Save it with the htm extension so it can be opened with your browser. For example "affirmations.htm".

You can also run the affirmations program from my website.

Take Action to Achieve Your Goals

Changing your behavior can be difficult. Programming yourself is fairly easy. If you don't treat affirmations as magic then you can use them to get what you want. They can make it easier to change your behavior. Use affirmations that help you take the actions you need to take to achieve your goals.

As an experiment, I programmed myself to like cold showers. I feel very relaxed when I repeat the number 3 three times. Every day I wake up a few minutes before my alarm is set to go off. I often exercise while watching TV because I told myself I like to exercise while I watch TV. Recently I started using my computer program to improve my luck. See what you can do.

How can you get yourself to use affirmations? Include them with the things you normally do. You probably already watch videos, look at pictures, visit websites, listen to music, and type sentences on your computer or mobile device. Watching a video or typing some statements before you turn off your computer is easy.

Words are powerful when they are repeated over and over again. I cured my seasonal allergies while listening to a guided meditation recording. You can program your mind like a computer using affirmations, but it requires repetition.

This content is accurate and true to the best of the author’s knowledge and is not meant to substitute for formal and individualized advice from a qualified professional.

© 2020 Michael H


Michael H (author) from Canada on September 26, 2020:

I don`t worry about the computer running my life because I control the computer. Programming yourself gives you more control over your thoughts, feelings and actions. Your actions can be influenced by love, compassion and a computer program.

Programming yourself is like picking the content of the commercials you watch.

Eric Dierker from Spring Valley, CA. U.S.A. on September 26, 2020:

Well this is certainly interesting. Don't you worry about the computer running your life rather than things like love and honor and bravery and compassion?

Related Articles