Vebot 4.0 Verbot Community
Home | About Us | Products Overview | Verbot Standard Edition | Verbots Online | Downloads | Community | Wiki | SDK
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Closing a Program

 
Post new topic   Reply to topic    Verbots Forum Index -> Agents
View previous topic :: View next topic  
Author Message
billmele
PowerBot
PowerBot


Joined: 19 Mar 2005
Posts: 126
Location: North Carolina

PostPosted: Thu Dec 20, 2007 6:47 pm    Post subject: Closing a Program Reply with quote

I know how to open a program using the Run command in the Verbots Output but is there a way to close the previousally opened program using Verbot. I am trying to get away from using a Mouse. I would really like to do more but this would be a good start. Example would be to open Windows Media player using Verbot and when finished using it to Close Windows Media Player using Verbot.
_________________
Thanks,

Bill
Back to top
View user's profile Send private message
leseur sylvain
OmnipotentBot
OmnipotentBot


Joined: 08 Nov 2004
Posts: 1361
Location: Suburb of Paris France

PostPosted: Thu Dec 20, 2007 6:58 pm    Post subject: Reply with quote

Great idea. Some time ago i thought the same kind of
possibility with copy and paste.
Ex:
I select a section mark/paragraph on Web page then i
ask to my Bot
"Put the select text in rule AAAA"

Friendly
Sylvain
_________________
Talk With Athena the GoddessBot
Jeanneton La Française, avec son petit panier sous son bras
Back to top
View user's profile Send private message Send e-mail Visit poster's website
billmele
PowerBot
PowerBot


Joined: 19 Mar 2005
Posts: 126
Location: North Carolina

PostPosted: Fri Dec 21, 2007 5:13 pm    Post subject: Reply with quote

Thanks Sylvain, I will have to think about this idea you have.
_________________
Thanks,

Bill
Back to top
View user's profile Send private message
Somniator
MightyBot
MightyBot


Joined: 17 Jul 2006
Posts: 173

PostPosted: Fri Dec 21, 2007 8:41 pm    Post subject: Reply with quote

Apparently closing external programs using c# isn't that easy because there are different ways of terminating an application and some of them refuse to attend the order because a dialog is open or one or more documents are not saved or whatever.

So there are a bunch of imponderablenesses that have to been taken into account when trying to program a 'close external program' routine.
Sometimes the exit command is the best one, sometimes you have to kill the process.
Back to top
View user's profile Send private message
monkyman1984
NewBot
NewBot


Joined: 01 Dec 2009
Posts: 3

PostPosted: Wed Dec 09, 2009 3:22 am    Post subject: Reply with quote

there may be an alternative if there is some complication with the programming,

I'm no good at programming but problem solving is my specialty.

if there is a possibility for verbot to maintain selection of the current open program, usually the default for the computer is to maintain this selection, then it should be able to utilize the minimize maximize functions (my apologies if this is already discussed elsewhere, I'm new)

that being said, it may also be possible to use coordinates in conjunction with the mouse click (assuming verbot can operate a mouse click, there again I'm new)

then it should be able to maximize and use a default for the top right corner mouse click to close many things, etc, etc,


as I've mentioned, I'm new, but thought I would throw my 2 cents at it for the advanced members to chew on,
let me know if any of these features sound plausable
Back to top
View user's profile Send private message
billmele
PowerBot
PowerBot


Joined: 19 Mar 2005
Posts: 126
Location: North Carolina

PostPosted: Wed Dec 09, 2009 6:48 pm    Post subject: Reply with quote

Matt added some hotkeys back in 2006 but there are only 4 of them and they will not open or close a program. I used a script editor to create closing and navigation keys for Windows Media Player. I then converted them to .exe files so anyone can run them. I use AutoHotKey a free script creator language which comes with it's own editor, converted to .exe files, and many many more extras. The website is located at
[url]/http://www.autohotkey.com[/url]

The documentation is great and the forum is active and helpful with loads of examples. A script file to open and navagate a program would be about 1k each for simple commands like file, back, forward, and play. If converted to .exe each file would be about 198k .

To shut down a program requires you to acquire focus on that program then initate the close down command. Acquireing focus without a lot of programing is not to difficult but you have to be willing to compromise on esthetics and allow the program to flash open, focus, to execute your command an return to a minimized file, assuming it was minimized, while it closes down. That is unless you want it maximized after executing the command then you need another command or simply run the first command such as play then run another command that would maximize the program while it is playing. I know this is confusing but if you can not gain focus the program can not be controlled. Try looking at these scripts at http://www.autohotkey.com/forum/search.php?mode=results
There are no perfect answers. We have asked for the ability to run Windows Keyboard Shortcuts many times and if you had them you would still have the Focus problem to deal with. Good luck!!
_________________
Thanks,

Bill
Back to top
View user's profile Send private message
POWERPLAY07
PowerBot
PowerBot


Joined: 27 Feb 2009
Posts: 127
Location: Adelaide, South Australia

PostPosted: Mon Mar 01, 2010 1:59 am    Post subject: Reply with quote

Why don't you ask Matt about it ?

Seeya Embarassed Wink
Tom
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Verbots Forum Index -> Agents All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum