<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[小黑的博客主页]]></title><description><![CDATA[联系方式：xiaohei-dev@qq.com]]></description><link>https://blog.csdn.net/xiaohei_dev</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; xiaohei_dev]]></copyright><item><title><![CDATA[vsb教程《运行程序》]]></title><link>https://blog.csdn.net/xiaohei_dev/article/details/53931240</link><guid>https://blog.csdn.net/xiaohei_dev/article/details/53931240</guid><author>xiaohei_dev</author><pubDate>Thu, 29 Dec 2016 18:19:54 +0800</pubDate><description><![CDATA[set ws = createobject("wscript.shell")

rem run(sCommand, nStyle, bIsWait)
rem sCommand	命令行及参数列表
rem bIsWait	是否等待执行完成(默认false)
rem nStyle	窗口状态(默认1,0隐/1显)

rem 打开cmd窗口(无参)
rem ws.run("cmd")

rem 打开cmd窗]]></description><category></category></item><item><title><![CDATA[vbs教程《函数过程》]]></title><link>https://blog.csdn.net/xiaohei_dev/article/details/53931231</link><guid>https://blog.csdn.net/xiaohei_dev/article/details/53931231</guid><author>xiaohei_dev</author><pubDate>Thu, 29 Dec 2016 18:19:09 +0800</pubDate><description><![CDATA[rem function有返回值,sub无返回值


rem -------------function: 无参数,无返回值-------------
rem 定义
rem function hello()
rem 	msgbox("hello")
rem end function

rem 调用
rem hello()

rem -------------function: 1参数,无返回值--]]></description><category></category></item><item><title><![CDATA[vbs教程《表格处理》]]></title><link>https://blog.csdn.net/xiaohei_dev/article/details/53931225</link><guid>https://blog.csdn.net/xiaohei_dev/article/details/53931225</guid><author>xiaohei_dev</author><pubDate>Thu, 29 Dec 2016 18:18:04 +0800</pubDate><description><![CDATA[rem 打开程序
set app = createobject("excel.application")

rem 显示当前窗口(默认false隐藏)
app.visible = true

rem 不显示警告(默认true显示)
rem app.displayalerts = false

rem 更改标题栏
app.caption = "新标题是vsb学习测试"

rem 打开工作簿
set]]></description><category></category></item><item><title><![CDATA[vbs教程《变量类型》]]></title><link>https://blog.csdn.net/xiaohei_dev/article/details/53931215</link><guid>https://blog.csdn.net/xiaohei_dev/article/details/53931215</guid><author>xiaohei_dev</author><pubDate>Thu, 29 Dec 2016 18:17:20 +0800</pubDate><description><![CDATA[rem 获取变量的子类型: typename(var)
rem ---------------typename的返回值---------------
rem Byte 		字节型
rem Integer 		整型
rem Long 		长整型
rem Single 		单精度浮点型
rem Double 		双精度浮点型
rem Currency 		货币
rem Decimal 		十进制
re]]></description><category></category></item><item><title><![CDATA[vbs教程《环境变量》]]></title><link>https://blog.csdn.net/xiaohei_dev/article/details/53931211</link><guid>https://blog.csdn.net/xiaohei_dev/article/details/53931211</guid><author>xiaohei_dev</author><pubDate>Thu, 29 Dec 2016 18:15:56 +0800</pubDate><description><![CDATA[set ws = createobject("wscript.shell")

rem 获取环境变量值
rem msgbox(ws.expandenvironmentstrings("%path%"))
rem msgbox(ws.expandenvironmentstrings("%xiaohei_path%"))

rem 系统环境变量对象集合
rem set envs = ws.enviro]]></description><category></category></item><item><title><![CDATA[vbs教程《条件语句》]]></title><link>https://blog.csdn.net/xiaohei_dev/article/details/53931210</link><guid>https://blog.csdn.net/xiaohei_dev/article/details/53931210</guid><author>xiaohei_dev</author><pubDate>Thu, 29 Dec 2016 18:15:10 +0800</pubDate><description><![CDATA[dim x
x = -2

if x < 0 then
	msgbox("x < 0")
elseif x = 0 then
	msgbox("x = 0")
else
	msgbox("x > 0")
end if


select case x
	case 1
		msgbox("x = 1")
	case 2
		msgbox("x = 2")
	case else
		msgbox("x]]></description><category></category></item><item><title><![CDATA[vbs教程《日期时间》]]></title><link>https://blog.csdn.net/xiaohei_dev/article/details/53931202</link><guid>https://blog.csdn.net/xiaohei_dev/article/details/53931202</guid><author>xiaohei_dev</author><pubDate>Thu, 29 Dec 2016 18:13:49 +0800</pubDate><description><![CDATA[dim curdate,curtime,curdatetime
dim mydate,mytime,mydatetime

rem 获取当前日期: 年/月/日
curdate = date()

rem 获取当前时间: 时:分:秒
curtime = time()

rem 获取现在时间: 年/月/日 时:分:秒
curdatetime = now()

rem 将有效数据转成时间类型
mydat]]></description><category></category></item><item><title><![CDATA[vbs教程《文件操作》]]></title><link>https://blog.csdn.net/xiaohei_dev/article/details/53931197</link><guid>https://blog.csdn.net/xiaohei_dev/article/details/53931197</guid><author>xiaohei_dev</author><pubDate>Thu, 29 Dec 2016 18:13:01 +0800</pubDate><description><![CDATA[set fs = createobject("scripting.filesystemobject")

rem -----------------驱动器操作-----------------
rem 驱动器是否存在
rem msgbox(fs.driveexists("c:\"))

rem 获取驱动器对象
rem set drive = fs.getdrive("c:")

rem 驱动器的可]]></description><category></category></item><item><title><![CDATA[vbs教程《数组使用》]]></title><link>https://blog.csdn.net/xiaohei_dev/article/details/53931186</link><guid>https://blog.csdn.net/xiaohei_dev/article/details/53931186</guid><author>xiaohei_dev</author><pubDate>Thu, 29 Dec 2016 18:11:32 +0800</pubDate><description><![CDATA[rem 定义
dim arr(5)

rem 赋值
arr(0) = 20
arr(1) = 2
arr(2) = 5
arr(3) = 3
arr(4) = 1
arr(5) = 100

rem 访问
msgbox(arr(2))

rem 遍历
for each v in arr
	msgbox(v)
next]]></description><category></category></item><item><title><![CDATA[vbs教程《循环语句》]]></title><link>https://blog.csdn.net/xiaohei_dev/article/details/53931182</link><guid>https://blog.csdn.net/xiaohei_dev/article/details/53931182</guid><author>xiaohei_dev</author><pubDate>Thu, 29 Dec 2016 18:10:42 +0800</pubDate><description><![CDATA[rem 定义和赋值数组
dim arr(3)
arr(0) = 20
arr(1) = 10
arr(2) = 25
arr(3) = 7

rem 定义索引
dim idx


rem 循环语句: for 变量 = 初始值 to 结束值 ... next
rem for i = 0 to 3
rem 	rem 内部可使用exit for结束循环
rem 	msgbox(arr(i))
rem n]]></description><category></category></item><item><title><![CDATA[vbs教程《当前目录》]]></title><link>https://blog.csdn.net/xiaohei_dev/article/details/53931178</link><guid>https://blog.csdn.net/xiaohei_dev/article/details/53931178</guid><author>xiaohei_dev</author><pubDate>Thu, 29 Dec 2016 18:09:47 +0800</pubDate><description><![CDATA[set ws = createobject("wscript.shell")

rem 获取当前目录
msgbox(ws.currentdirectory)

rem 设置当前目录
ws.currentdirectory = "d:\"

rem 获取当前目录
msgbox(ws.currentdirectory)

set ws = nothing]]></description><category></category></item><item><title><![CDATA[vbs教程《弹出窗口》]]></title><link>https://blog.csdn.net/xiaohei_dev/article/details/53931170</link><guid>https://blog.csdn.net/xiaohei_dev/article/details/53931170</guid><author>xiaohei_dev</author><pubDate>Thu, 29 Dec 2016 18:08:57 +0800</pubDate><description><![CDATA[set ws = createobject("wscript.shell")

dim x1

rem 弹出输入框 inputbox(text, title, default_value)
x1 = inputbox("请输入一个数字:1/2/3/4/5/16/32/48/64", "标题", 0)

rem 弹出消息框 msgbox(text, type, title)
select case]]></description><category></category></item><item><title><![CDATA[vbs教程《字符串处理》]]></title><link>https://blog.csdn.net/xiaohei_dev/article/details/53931147</link><guid>https://blog.csdn.net/xiaohei_dev/article/details/53931147</guid><author>xiaohei_dev</author><pubDate>Thu, 29 Dec 2016 18:06:49 +0800</pubDate><description><![CDATA[rem 拆分字符串
rem dim arr
rem arr = split("xiaohei,xiaobai,xiaoming", ",")
rem for each substr in arr
rem 	msgbox(substr)
rem next

rem 替换字符串
rem msgbox(replace("xiaohei,xiaobai,xiaoming", ",", "|"))

rem]]></description><category></category></item><item><title><![CDATA[vbs教程《变量使用》]]></title><link>https://blog.csdn.net/xiaohei_dev/article/details/53931125</link><guid>https://blog.csdn.net/xiaohei_dev/article/details/53931125</guid><author>xiaohei_dev</author><pubDate>Thu, 29 Dec 2016 18:04:44 +0800</pubDate><description><![CDATA[rem 定义1个变量
dim x1

rem 定义多个变量
dim x2,x3,x4,x5,x6,x7,x8,x9

rem 1个变量赋值
x1 = -1

rem 多个变量赋值
x2=0:x3=1:x4=3.14:x5=false:x6="false":x7="true":x8="800":x9="9.181716"

rem 类型转换 => int
rem msgbox(cint(x4))
r]]></description><category></category></item><item><title><![CDATA[vbs教程《模拟按键》]]></title><link>https://blog.csdn.net/xiaohei_dev/article/details/53931093</link><guid>https://blog.csdn.net/xiaohei_dev/article/details/53931093</guid><author>xiaohei_dev</author><pubDate>Thu, 29 Dec 2016 18:01:43 +0800</pubDate><description><![CDATA[set ws = createobject("wscript.shell")

rem 运行记录本程序进行测试发送按键
ws.run("notepad")

rem 暂停0.1秒,防止程序还没启动就发送按键
wscript.sleep(100)

rem 输入1个x
rem ws.sendkeys("x")

rem 回车
rem ws.sendkeys("{enter}")

rem 输入10个]]></description><category></category></item><item><title><![CDATA[android关机、重启等电源键功能实现]]></title><link>https://blog.csdn.net/xiaohei_dev/article/details/51513745</link><guid>https://blog.csdn.net/xiaohei_dev/article/details/51513745</guid><author>xiaohei_dev</author><pubDate>Fri, 27 May 2016 11:11:25 +0800</pubDate><description><![CDATA[背景：小黑，玩机刷机日常关机重启少不了使用长按电源键，一个按一个心疼，这强迫症可能很多人有，担心按坏了。手机自带又没有这般快捷键，所以就想下载个关机重启的软件来释放电源键，无奈网上好用的软件广告太多或经常更新，烦人，所以就想自己写个纯洁的程序来自己用，好了不多了，直接上马]]></description><category></category></item><item><title><![CDATA[crc计算]]></title><link>https://blog.csdn.net/xiaohei_dev/article/details/51225047</link><guid>https://blog.csdn.net/xiaohei_dev/article/details/51225047</guid><author>xiaohei_dev</author><pubDate>Sat, 23 Apr 2016 10:48:29 +0800</pubDate><description><![CDATA[// crc表const unsigned long crcTable[256] = {0x00000000L, 0x77073096L, 0xee0e612cL, 0x990951baL, 0x076dc419L, 0x706af48fL, 0xe963a535L, 0x9e6495a3L, 0x0edb8832L, 0x79dcb8a4L, 0xe0d5e91eL, 0x97d2d988L,]]></description><category></category></item><item><title><![CDATA[减小游戏apk安装包大小]]></title><link>https://blog.csdn.net/xiaohei_dev/article/details/51119069</link><guid>https://blog.csdn.net/xiaohei_dev/article/details/51119069</guid><author>xiaohei_dev</author><pubDate>Mon, 11 Apr 2016 09:55:20 +0800</pubDate><description><![CDATA[使用工具: 
TexturePacker


原理:
使用TexturePacker把游戏用到的纹理打包成大的纹理图(配置文件+大图文件), 节省空间, 如下图

最终打包出来的apk大小比原来小了许多, 其中plist文件是记录多张图的信息(名字, 区域, 旋转度等)


实践体验一:
使用TexturePacker把小图打包成大纹理: plist+png
最终游戏资源总]]></description><category></category></item><item><title><![CDATA[解决编译打包apk时自动删除第三方so文件或不完整问题]]></title><link>https://blog.csdn.net/xiaohei_dev/article/details/49902253</link><guid>https://blog.csdn.net/xiaohei_dev/article/details/49902253</guid><author>xiaohei_dev</author><pubDate>Wed, 18 Nov 2015 09:15:44 +0800</pubDate><description><![CDATA[背景：小黑开发cocos2dx游戏，开发完成，接某游戏平台SDK打包APK以实现游戏计费及平台相关功能。


按SDK文档做：把SDK的jar文件都拷贝到安卓项目下的libs目录下, 把SDK的so文件都拷贝到安卓项目下的libs对应目录下（比如：libs/armeabi, libs/armeabi-v7a, libs/x86等）
编译打包结果：并没有把这些so文件打包进apk里面来，（原]]></description><category></category></item></channel></rss>