tomhansen
Joined: 27 Apr 2008 Posts: 4
|
Posted: Mon Apr 28, 2008 10:32 am Post subject: script will not work if run from networkdrive |
|
|
hi all
am new to this forum, so forgive me if i do anything wrong. i have a script like this
Problem is that it works if the script is on my desktop, but not if on a shared drive. It goes wrong when it reaches the imagesearch, as it cannot find the image.
Any ideas why this works from local drive, but not from shared drive
| Code: | ::googletranslate::
text = %clipboard%
Run, http://translate.google.com/translate_t
Sleep, 2000
Send, {TAB}{TAB}
send, {TAB}{TAB}
send, {TAB}{TAB}
sleep 2000
send ^v
Sleep, 100
Send, {TAB}
Send {UP 20}
Send {TAB}{ENTER}
sleep, 2000
ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, plus_sm.gif
FoundX+=7
FoundY+=5
click %FoundX%, %FoundY%
sleep 3000
send ^a
send ^c
Winkill, Google Translate
sleep 1000
send {ENTER}
sleep 1000
WinActivate https://office.xxxx.org
sleep 1000
send ^v
return |
|
|