I send the file to ie with changing the file path but I don't want to open a new ie window, if the older one is still open.
I find and refresh same window but I couldn't find how to restore and bring to front that window if it is minimized.
Do you have an idea?
Not right now how to do this with VBS, thought it would be possible, but i would just use AHK AutoHotkey for such tasks.
I will reply with an AHK script later.
Pseudo code:
Command: path\to\AutoHotkey.exe
Arguments:path\to\your\script.ahk %FileName%
If Arguments.Count > 0 Then
strPara = Arguments.Item(0)
replaced = replace(strPara,"\","/")
If is active iE
focus iE
launch URL
ElseIf
start iE
launch URL
Else
MsgBox "No parameter given."
End If
Also I wonder if I can pass the result of a script to HE as an argument in a way, to use with a tool for example?
Yes, you can do something like
- putting the result to the clipboard and using HE's var %Clipboard% in the next tool to read the clipboard content, or
- writing the result into an temp file and read this from -, or use it as parameter for next tool
Maybe Alex want to add this here >
Tools parameter: Outputas an another possibility Output feature as e.g.
Argument: %StoreResult% in memory for reuse
and reuse this with e.g.
Argument: %StoredResult%