ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

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

Updated on September 26, 2020
mikejhca profile image

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 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 3 hours instead. Watching TV, reading books and playing video games often prevents 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.

Listening to Meditation Music Reprogrammed My Brain

Every time I listened to a meditation session I was told that I would feel more relaxed when I said the number 3 three times. Now when I say or think "three, three, three" it makes me feel very relaxed.

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 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 that '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 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.

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.

I wanted to improve my luck. So I made a computer program to help me change my behavior. Increase your luck by behaving like a lucky person.

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


    0 of 8192 characters used
    Post Comment
    • mikejhca profile imageAUTHOR

      Michael H 

      3 weeks ago from Canada

      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.

    • Ericdierker profile image

      Eric Dierker 

      3 weeks ago from Spring Valley, CA. U.S.A.

      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?


    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at:

    Show Details
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the or domains, for performance and efficiency reasons. (Privacy Policy)
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)
    ClickscoThis is a data management platform studying reader behavior (Privacy Policy)