2016年11月10日 星期四

[Unity] 筆記

> 欲不顯示material的黑色背景部分
Shader - Particles/Additive

material背景為黑色的話,不顯示,顯示有顏色處
適用:bullet



2016年11月5日 星期六

[MATLAB] 微分後代值求解 (gradient, syms, eval)


Example:

function output = sigmoidalGradient(input)

    syms a;                                     % variable
    y = gradient(1/(1+exp(-a)));    % get gradient of the function
    a = input;                                 % let variable a be some number
    output = eval(y);                     % evaluate the funciton

end



2016年7月15日 星期五

[AutoIt] 類似批次檔的好用東西 筆記篇

1. #RequireAdmin
Q:
Run安裝程式時,如為需系統管理員權限的程式
直接Run("setup.exe")沒反應,也沒跳出詢問視窗

Solution:
Run之前加上#RequireAdmin即可
代表這個script要求存取系統管理員權限


2. Tutorial Websites

AutoIt Scripting Tutorial 9 Automating Installers & Programs Part 1
https://www.youtube.com/watch?v=MuOq6AOQ_gI&list=PL4Jcq5zn02jKpjX0nqI1_fS7mEEb5tw6z&index=10


3. MouseClick
在AutoIt的編輯下,反白函數(double click),按F1,可看到該函式的說明(很好用!)
關於$MOUSE_CLICK_LEFT和$MOUSE_CLICK_PRIMARY
起初不太懂PRIMARY的差別
上網查了下資料
應該因為考慮到左右撇子的使用習慣
一般右撇子(電腦的預設設定),滑鼠左鍵為主要選擇鍵,但有些人可能會改成右鍵為主要選擇鍵
所以$MOUSE_CLICK_PRIMARY就很貼心的出現啦!
無論左鍵或右鍵,皆可以指定到主要選擇鍵


4. Send
查詢鍵盤除了英數、符號以外的key(Enter、Space、Tab...)
在Editor視窗中打Send,反白Send按F1查詢


3. 運算子
<>:不等於
其他:
http://blog.automaticlife.tw/2014/07/autoit.html





2016年1月29日 星期五