- Aug
- 2,058
- 83
I have found a method that makes it easier for me to use my Android phone. This TCC .BTM makes it even easier to connect my Android phone to my PC.
Joe
Joe
Code:
::-------------------------------------------------------------------------------
:: AD.BTM
:: Allows me to use my Android phone with my
:: computer keyboard and monitor
::
:: Requires https://play.google.com/store/apps/details?id=com.sand.airdroid&hl=en
:: to be installed on your Android phone.
::
:: Requires your Android phone to have an active WiFi connection to the same LAN
:: that your computer is on.
::
:: February 2015 - Joe Caverly
::
:: TCC 17.00.75 Windows Vista [Version 6.0.6002]
:: TCC Build 75 Windows Vista Build 6002 Service Pack 2
::-------------------------------------------------------------------------------
@setlocal
@echo off
::
:: My WiFi range is 101 to 105, adjust this for your WiFi LAN
::
do octet=101 to 105
set themac=%@macaddress[192.168.1.%octet]
::
:: If the MAC Address is the same as my Android phone...
::
iff %themac eq 10-D5-45-70-9F-92 then
echo Found Joe's Android phone, connecting to Airdroid...
firefox.exe -new-tab http://192.168.1.%octet:8888
leave
endiff
enddo
endlocal