瀏覽單個文章
bingjunin
Major Member
 

加入日期: Feb 2005
文章: 167
如果指令改為這樣又是什麼意思呢?

#if A_cursor="Unknown"
~^LButton::
Delay:=150 ;執行延遲毫秒數:設越小執行速度越快,但太小有可能執行失敗
Send {Tab}
Sleep %delay%
Send +{Tab}
Sleep %delay%
js_code=
(
var save_href=document.activeElement.href;
var techchart_href=save_href.replace("stock/","stock/astock/techchart?stockno=");
document.activeElement.href=techchart_href;
)
ExecuteJavascriptOnUrlBar(js_code,Delay)
Sleep %Delay%
Send ^{Enter}
js_code=
(
document.activeElement.href=save_href;
)
ExecuteJavascriptOnUrlBar(js_code,Delay)
return
#if

ExecuteJavascriptOnUrlBar(str,delay:=100){
Send ^l
Sleep %delay%
AutoInput("_javascript:" . str . ";void(0);",delay)
Sleep %delay%
Send {Home}{Delete}{Enter}
Return
}

AutoInput(InputStr,delay:=100){
clipboard_save = %ClipboardAll%
clipboard :=
Sleep %delay%/2
clipboard = %InputStr%
Sleep %delay%/2
ClipWait
Sleep %delay%/2
Send ^v
clipboard = %clipboard_save%
return
}
 
舊 2019-06-27, 02:41 PM #2
回應時引用此文章
bingjunin離線中