![]() |
| The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum. |
|
Post Reply
|
| Author | |||
anonymous
Groupie
Joined: January 15 2004 Location: United States Status: Offline Points: 46 |
Post Options
Thanks(0)
Quote Reply
Topic: How to close another applicationPosted: August 15 2006 at 2:48am |
||
|
I know how to start another Windows program using ESC STX >, but how can I close the program?
|
|||
![]() |
|||
PSchellenbach
Admin Group
Moderator Joined: December 15 2003 Location: United States Status: Offline Points: 2150 |
Post Options
Thanks(0)
Quote Reply
Posted: August 15 2006 at 3:01am |
||
|
You can use the AppFind and AppClose statements from a script. Also, you need to use ESC STX < instead of > because the > form will cause AccuTerm to wait until the app is closed by the user. The < form allows AccuTerm to run in parallel with the launched app.
For example, if you open IE with:
you can close it with:
If you need to be more precise about locating the app you want to close, you can get a list of all open apps, then use a loop to find the one you are interested in and close it:
Thanks, Pete |
|||
![]() |
|||
mdsi2000
Groupie
Joined: October 12 2006 Location: United States Status: Offline Points: 69 |
Post Options
Thanks(0)
Quote Reply
Posted: January 12 2010 at 12:21am |
||
|
Hello Peter, I can use this piece of code to close IE. But I have a question on opening a IE. How can I CAPTURE the output of that webpage?
I tried:
*
URL = 'http://www.411.com/search/ReversePhone?full_phone=':SRCH:'&localtime=survey'
CMD = ESC:STX:'<':URL:CR PRINT CMD CAPTURING JUNK But obiously, it doesn't compile because you can't use CAPTURING in a PRINT statement.
Thanks,
Peter G.
|
|||
![]() |
|||
Shrek59
Senior Member
Joined: December 04 2006 Location: New Zealand Status: Offline Points: 208 |
Post Options
Thanks(0)
Quote Reply
Posted: January 12 2010 at 12:30am |
||
|
How about using cURL or WGET?
Brian
|
|||
![]() |
|||
mdsi2000
Groupie
Joined: October 12 2006 Location: United States Status: Offline Points: 69 |
Post Options
Thanks(0)
Quote Reply
Posted: January 12 2010 at 6:53am |
||
|
Hello, How would that work? I'm not familiar...
Thanks,
-Peter G.
|
|||
![]() |
|||
Shrek59
Senior Member
Joined: December 04 2006 Location: New Zealand Status: Offline Points: 208 |
Post Options
Thanks(0)
Quote Reply
Posted: January 12 2010 at 8:27am |
||
|
Hi Peter,
cURL is a command-line utility to perform http transfers. You can use it to download a webpage using a command like: [path-to-curl]\curl.exe -o destination-filename url-to-get For example: curl -o .\dest\webpage.htm http://www.rbnz.govt.nz/statistics/exandint/b1/data.html There are a heap of options that I haven't explored. I've only used it to automate the download of spreadsheets, but it is much more functional than that. WGET is broadly similar. They say they aren't the same as each other, but you be the judge ... Have a look at both and see if they meet your needs. Cheers, Brian |
|||
![]() |
|||
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |