AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

script will not work if run from networkdrive

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
tomhansen



Joined: 27 Apr 2008
Posts: 4

PostPosted: Mon Apr 28, 2008 10:32 am    Post subject: script will not work if run from networkdrive Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
Rhys



Joined: 17 Apr 2007
Posts: 730
Location: Florida

PostPosted: Mon Apr 28, 2008 1:18 pm    Post subject: Reply with quote

does plus_sm.gif exist in the same place that your script is being run from?
_________________
[Join IRC!]
Back to top
View user's profile Send private message
tomhansen



Joined: 27 Apr 2008
Posts: 4

PostPosted: Mon Apr 28, 2008 1:20 pm    Post subject: Reply with quote

Hi Rhys - thank you - how stupid of me. It didnt. Now it does and it all works perfect. Thanks again.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group