This App is No Longer Maintained. Visit the Replacement at StrokesPlus.net

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

 All Forums
 General Discussion
 General Discussion
 How to undo the action with the same gesture.
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ivancarv.spk333

38 Posts

Posted - 04/01/2013 :  18:05:15  Show Profile
I created an action called acSendControlDown (), and wanted to do the same gesture for back button(acSendControlup). is it possible?

Chris

28 Posts

Posted - 04/02/2013 :  08:38:40  Show Profile
Hi, I don't understand what back button that you mean. By default StrokesPlus uses acSendKeys("{BROWSERBACK}"). Is that what you need?
Go to Top of Page

ivancarv.spk333

38 Posts

Posted - 04/02/2013 :  12:24:13  Show Profile
the action acSendControlDown () makes the ' Ctrl ' button becomes enabled. But it takes an action to make the button back to normal, otherwise the button is always tight. I wanted to enable/disable button by using a single gesture. is possible?

Note: I will use this gesture to select files.

(Translated Text)
Go to Top of Page

Chris

28 Posts

Posted - 04/03/2013 :  06:20:06  Show Profile
Oh..I understand now. Sure it can be done.
Actually it's almost the same with what you asked before, but easier.
You should try to learn scripting. I will try to explain to you again...

Global Lua:
CtrlButtonState=0

First, create a global variable to determine whether the ctrl is already down or not. And I set the variable into 0, because it is not down yet.

Lua Script:
if CtrlButtonState==0 then
	acSendControlDown()
	CtrlButtonState=1
else
	acSendControlUp()
	CtrlButtonState=0
end

Let's read the script above.
if CtrlButtonState==0 then means that if the variable has value 0, the script will do: acSendControlDown() and CtrlButtonState=1 set the variable to value to 1.
And else means that if the value of CtrlButtonState is not 0, it will release the ctrl and set CtrlButtonState to 0.

Hope you learn more about scripting from my example.
Go to Top of Page

ivancarv.spk333

38 Posts

Posted - 04/05/2013 :  16:35:10  Show Profile
It worked for you? here no. [: (]

on the other post, the one to switch the organization was so swap the Alt + Alt + V to X. [: D]
Go to Top of Page

ivancarv.spk333

38 Posts

Posted - 04/06/2013 :  09:26:18  Show Profile
Thanks, I understand the S + gradually ... the script 'acSendControlup' seems to have no effect. and now?
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000