Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Shellexecute Openeing Separate Instance Of The Application, Not In A Single Instance ....

$
0
0
Hi Friends,

I'm new to autoit, started developing one small application but facing a problem before posting here i tried Google but not able to resolve,

in my project, i'm trying to open KML files in Google Earth, and ShellExecute doing this job exactly what i needed, but one problem im facing, everytime i call ShellExecute it is creating one Google Earth application instance but not in the same already opened instance.

My requirement is to open around 100 KML files in same Google Earth instance, and save the locations in Google earth.

My code is like this.....

[ autoit ]      
ShellExecute ($filename, "", @ScriptDir & "\KML Files" , "open")

$filename ==> variable which will get the each KML file name in the loop.

@ScriptDir & "\KML Files" ==> location of the KML files

in simple way, my requirement is like if we open a MP3 file using ShellExecute, it should open the MP3 in the Default Music Application & if you open one more MP3 using the ShellExecute then it should be opened in the same already opened application but not in a new instance of the application...


Thanks in advance for viewing my post & for supporting me.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>