Search in blog

Sunday, 9 August 2015

Got more than one phone?

I realised I got phones lying home that I don't use. Why not put them to use? This tutorial will show how to setup your extra phone as an voice-operated-music-player-find-my-car-custom-commands for your cars Bluetooth/AUX stereo.


  • Search filenames and playlists with your voice (choose your phone or the one in the car bluetooth mic) and get nearest match. Play in car or on your phone, you choose.
  • 'Find my car'. Send a map position to your phone.
  • Custom voice commands, do whatever you want.
  • Use in car if you got a Bluetooth stereo or just want a 'find my stolen car' function:
    • You need this:
    • Setup everything:
      • Go here to start Google Music just so you know what it is.
      • Download Google Music Manager.
        • Create a folder with mp3 files that you want to use. Create a head folder like Mp3. And then create sub folders with mp3 files. These sub folders will serve as playlist names. Like Mp3/Kids Mp3/Mine Mp3/Top...
        • In the install: Choose your folder with all your mp3 files. Choose to auto upload files you add in the folders. You only have to put more music in this folder and your mobile will auto download it.
      • On your computer with your own google drive account:
        • Setup Google drive to sync your music folder to your drive. Right click on your Google drive icon down-right on your screen. You need this when we setup music voice search.
        • When all mp3 files are auto uploaded to the cloud it's time to create playlists. Go back to Google Music. And create playlists like the same name as the sub folders in the mp3 head folder.
      • On your extra mobile and on you own phone:
        • Create a new Google account on your extra phone. Call it CarPhone or something. You should also have your own account on this phone. So you can download the pay apps. 
        • In the sync settings with your own account: make sure to sync Google Play Music, Appdata, Google drive. You can uncheck the rest.On the CarPhone account just sync all.
        • Open the app Folder sync. 
          • This app will sync all your music to this phone for use in Tasker and voice search. Click Accounts and sign in to your own google drive account.
          • Click Folders and click the +. Set a sync name like Mp3. In Cloud folder choose your synced mp3 folder. Set Local folder to Music/Mp3. In Scheduler choose use it and interval daily. In Sync options choose 'Sync remove'. In Connections choose Wifi, 3G, 4G, 2G.
          • When done take your own mobile and open Folder sync and do the same.
        • Open the app Google Music.
          • This app will play the music and connect to your Bluetooth buttons on your car stereo pause, next, previous so you can use them to control your phone. When you start the app choose to use your own google account Not the CarPhone account.
          • Click menu and library. In Auto playlist click the 3 dots and choose download. Do this on all your playlists.
          • Click menu and settings. Choose Auto Cache when charging and on wifi. Now all music will auto download to this phone.
          • When done take your own mobile and open Google Music and do the same.
        • Disable lock screen on your extra phone. Tasker must turn on your screen when performing some tasks.
        • On your extra phone start Secure settings and buy pro. Go to options and enable Root Actions.
        • Open Autovoice and enable it. (extra and own phone)
        • Open AutoRemote on the extra and your phone. On this screen you see this device address, like http://goo.gl/hjeGCvA. On your own mobile click the menu mobile icon and +. And add your extra mobile address. Now you can send do-this-messages to the extra mobile.
        • Open Tasker on the extra and your own phone. In Preferences>UI uncheck Beginner Mode.
        • Download these to your extra mobile:
        • Download these to your own mobile:
        • Import them to Tasker.
        • In Music Client (Own phone) and Music Server (Extra phone) open task Music search and Play Music and on line 9 (14 and 18 on the Server Project) in the 'List Files'-action browse to your head folder with all the mp3 sub folders. These tasks will search this folder for music (filenames) and playlists (folders).
        • On your own phone go to Music Client>Tasks and Run Show Settings. On the screen choose Update. And then choose the server phone (extra mobile) in the drop down list. You are now set. Connect your extra phone to your car stereo with Bluetooth.
        • Setup Life360 on extra and own phone.
        • Setup Mobizen on the exta phone. Start Mobizen app and register. Download the pc app on the homepage.
    • What is all Tasks and Profiles and Scenes?
      • Music Client: (You run these with the Music Scene and Settings Scene)
        • Tasks
          • LastMusic: Start the music where you stopped it. (Dont use now you must use Music Search or Play Music)
          • NextMusic: Start next music in playlist.
          • Music Off: Pause Music
          • PrevMusic: Start previous music in playlist.
          • Music search: Voice search by mp3 file name. It will Activate voice recognition on the extra phone or your own phone (Choose in Show Dialog task) and enable bluetooth mic on your car stereo or own phone. Speak when you see the counter on your car stereo. Say 'Heroes' and the task will search for any mp3 file with the text 'Heroes' in the filename and start Google Music and play it on the extra phone.
          • Play Music: Voice search playlist by name.  It will Activate voice recognition on the extra phone or your own phone (Choose in Show Dialog task) and enable bluetooth mic on your car stereo or own phone. Speak when you see the counter on your car stereo. Say 'Kids' and the task will search for any folder file with the text 'Kids' in the folder name and start Google Music and start the playlist on the extra phone.
          • FastVoice: Fast Voice commands. When I drive after my brother I like to play James bond theme song :-) After row 11 you see all the commands. You can change the voice command in the IF statement and choose a task to run. You must change these on the Server and Client project on your and the extra phone.
          • James Bond: Start a playlist in Google Music called James bond. (Change to your own in FastVoice)
          • Sova Musik: Start a playlist in Google Music called Sova Music. (Change to your own in FastVoice)
          • Show Dialog: Show the main dialog you should use when in your car. With this you control all the music. Make a Tasker Shoortcut on your home screen to this task. You may change the labels on the buttons:
            • Senaste: Play Latest music.
            • Pause: Pause/Play toggle
            • Kategori: Voice Search Playlist
            • Sök: Voice Search Filename
            • Förra: Previous in playlist
            • Nästa: Next in playlist
            • This MIC: Use you own phone mic or bluetooth mic when you search. Or use the extra phone mic or bluetooth mic. You can use this to do pranks. Or just start the music in your car when you are home.
            • Car: Send the information to the extra phone or use it on your own phone. You may want to listen to music even if you are not in your car.
            • The mic image is FastVoice commands. Custom commands.
          • Joni: Start a playlist in Google Music called Joni. (Change to your own in FastVoice)
          • Set Server: (Ignore this one) Test set ServerName (the extra phone address)
          • Show Settings: Setup the server (extra phone) address. The one we want to control.
          • Get All Devices: (ignore this one) Will fill the dropdown listbox in the settings scene where you choose your server (extra phone address).
          • Källare: Start a playlist in Google Music called Källlare. (Change to your own in FastVoice)
        • Scenes
          • MusicScene: Main control scene (This is the one you use)
          • Settings: Choose server
      • Music Server:
        • Same as Music Client but with profiles that will trigger the tasks when they receive commands from your own phone.
      • Control Client: (You run these in Tasker with the play button)
        • Tasks:
          • Bt Toggle: Toggle Bluetooth on the extra phone. The extra phone will send back a message if it is on or off. (the on off text maybe must be changed if you don't use English as default language) 
          • Wifi Toggle: Turn off WiFi on the extra phone and turn it on again.
          • GPS Toggle: Toggle GPS. The extra phone will send back a message if it is on or off.
          • Battery status: Send back battery status on the extra phone.
          • Show Message: Show messages from the extra phone.
          • Battery Save Mode: Set the extra phone in battery save mode. (You may need to change this to make it work in the secure settings)
          • Get Map: Tell extra phone to send GPS position to your phone and show a map.
          • Function Open Map: Open the position the extra phone sent.
      • Control Server:
        • Same as Control Client but with profiles that will trigger the tasks when they receive the commands from your phone.

Friday, 24 July 2015

Tasker Music play dir only play one song

.mp3 and .MP3 bug
If the filename is 'MyMusic.MP3' instead of 'MyMusic.mp3' the 'music play dir' wont play it.
Simple fix. Change the MP3 to mp3.

Bluetooth connect bug
This bug starten after I created a BT connected profile (on a Nexus 5). Before, the 'music play dir' worked. Even if BT was enabled. When I removed the BT connected profile the bug where still there. Therefore I quess that the BT connected profile save some settings in tasker that will make the bug appear. 

Tested on another phone, same model. Installed tasker. 'Music play dir' works when BT is enabled. 

TEST STEPS: 
Created a BT connected profile but did not connect any BT device to the phone: still works. 

Connected a BT device (another phone Nexus 5 lollipop). Profile activates and play first song only: Bug appeared. 

Disconnect BT device and BT is enabled: works again. 

Connected a BT device again. Used specific device name in the profile. Profile activates and play first song only: Bug appeared. 

Removed BT connected profile while BT is enabled and manually start 'music play dir': bug, only play one song. 

Disabled BT and manually start 'music play dir': works now 

Enabled BT and manually start 'music play dir': still works. 

Enabled BT and paired and connected a different device (handsfree): works this time ??? 

Tried again: works ??? 

Created a bluetooth connect profile but did not connect any device: works 

Connected a device (Nexus 5 lollipop): bug again, only play one song. 

Removed BT connected profile and disabled bt and enabled it again, press forget device (handsfree) in BT settings, paired and connected the bt handsfree device: works ??? !!! 

TEST CONCLUSION: 
If you create a BT connect profile (will make a bug in tasker) you can delete it and pair and connect a different BT device to remove the bug.

Scene bug:
Create a scene.
Put a button on it.
On Tap add a 'Music play dir'
Go back to  tasks
Create a task with show scene
Run it
When you press the button in the scene only one song will play.

When I manually run 'music play dir' in tasker everything works fine.
No fix for this yet, hope for update.

Friday, 15 May 2015

Game Maker Studio Marketplace update error



  • When you download an asset from the Game Maker Studio Marketplace, everything works fine. But when it comes an update of the asset, you may have problems. You get the old version again, when you download it. You might not even be able to download the new version.
  • Do this:
    • Removed all assets in: %localappdata%\GameMaker-Studio\lib\assets
    • Removed all in: %localappdata%\Temp
    • Start Internet Explorer and clear the cache. (Game maker use internet explorer to download assets)

Tuesday, 12 May 2015

Photoshop pixel art scale


  • When working with pixel graphics, and you want to scale up the image with Photoshop, without smudging. Ctrl + K and select Nearest Neighbour.

Sunday, 8 February 2015

Auto-remove windows updates


  • Windows updates makes the computer run slow. When I help others to get more speed from their computer. I sit for hours and removes all security updates. Now it's the end of it. I have used the AutoHotkey to do it automatically. I have one for the Swedish system (tested on Windows 7 and 8) and one in English (not tested).
  • All you have to do is:
    • 1# Download file
    • 2# Run it
    • 3# Go to Control Panel> Programs and functions> Installed Updates and search for "update for Windows"
    • 4# press F3 (start script)
    • 5# Press the OK button (in the window that came up at point 4#)
      The script will start when the "installed updates" window is in focus.
    • (6# Abort with Escape button)

    Ladda ner för svenska system:
    https://drive.google.com/open?id=0BxE4k4xEiNO2UEI0cUVLTDR2SDQ

    Download for English systems:
    https://drive.google.com/file/d/0BxE4k4xEiNO2QzdjY0VoVG9hQWM/view?usp=sharing


    Click on this window on your computer to make it in focus