StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Register | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General Discussion
 General Discussion
 How to create a gesture for closing a program?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

patrickcas

26 Posts

Posted - 03/15/2015 :  14:04:23  Show Profile  Reply with Quote
Hi everybody,

I'm new here.

Since I do not have much expertise in PC's, I need your help in order to create a gesture for closing a window of programs (e.g.: VLC, Photoshop,...).

I would like to create a gesture which could close ANY window of ANY programs: I tried to use Windows - Tab/Close but it did not work (but Windows - Minimize works perfectly for both windows of folders and programs).

Any help is much appreciated.

Thanks, and ciao from Italy.

Hax

128 Posts

Posted - 03/15/2015 :  15:32:58  Show Profile  Reply with Quote
Hi, you can close a program using

acCloseApplication(nil, gsx, gsy)

or

acSendKeys("{DELAY=50}%{F_4}")
Go to Top of Page

patrickcas

26 Posts

Posted - 03/16/2015 :  04:39:20  Show Profile  Reply with Quote
Hax, thank you very much for you kind and fast reply.

I have poor PC knowledge though, so I need more detailed instructions on how to proceed.
If you could write how to do that step by step, I would be very gateful.

Thanks, and ciao from Italy.
Go to Top of Page

Hax

128 Posts

Posted - 03/16/2015 :  09:11:43  Show Profile  Reply with Quote
How to create actions:
http://www.strokesplus.com/help/#CreatingActions


So create a new action (or use an older one), choose a gesture (or create a new one) and put acCloseApplication(nil, gsx, gsy) under Lua Script:

Go to Top of Page

patrickcas

26 Posts

Posted - 03/16/2015 :  13:56:02  Show Profile  Reply with Quote
WOW! It works flawlessly!!!

Thank you again! A wonderful program!!!!

Ciao from Italy.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000