Johana wrote:Hello everyone! I am trying a simple code after my co worker introduced me to this awesome software!
Here's the code: (I have change the urls for security reasons)
Code: Select all
^'::
IfWinExist http://bla.blfa.com/Something/Somedocuments/processes/One Note for them/some-file-for-me.pdf - Internet explorer
WinActivate
Else
{
Run "http://bla.blfa.com/Something/Somedocuments/processes/One Note for them/some-file-for-me.pdf" - Internet explorer
}
Return
This is opening up the url time after time even if there's a open window already.
In the spy tool it truncates the url showing something similiar:
http://bla.blfa.com/Something/Somedocum ... cesses/One Note for them/s - Internet explorer
I tried the truncated url as well, still didn't help.. Any suggestions? The PDF opens inside IE
a) I'd first try to use a set of quotation marks in a path that contains space characters "http:/......... "
b) probably AHK isn't able to deal with such a long path in here (?), so why not shorten it using a variable instead?
c) have you checked IE's "internet options" already? There's a tab section to (re)configure some settings too.
d) in case you want to start a specific set of pages/pdfs every day using IE's tabs, you can configure/set this via IE's "Startpage" registry settings.
Check out AHK's
RegWrite command for this.
BTW, I'm pretty sure that you've to correct this ...
Code: Select all
Run http://bla.blfa.com/Something/Somedocuments/processes/One Note for them/some-file-for-me.pdf - Internet explorer
to that ...
Code: Select all
Run "http://bla.blfa.com/Something/Somedocuments/processes/One Note for them/some-file-for-me.pdf"
... for a well known reason
![Wink ;)](./images/smilies/icon_e_wink.gif)