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
 Lua Scripts
 General Action Scripts
 Custom command help: Press and hold win and tab
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

johnyct9760

USA
11 Posts

Posted - 11/25/2015 :  20:39:51  Show Profile  Visit johnyct9760's Homepage
Hi there,

So I'm kind of stuck. I'm trying do add a code that when I draw a D it presses and holds the windows key and the tab key at the same time, thus giving me the 3d window select:

http://prntscr.com/970xmo

This is where I've gotten so far on my own:

http://prntscr.com/970wsm


-- Tell Stroks Plus to Issuse the press and hold of Windows and Tab keys.

acSendKeys("{TAB}")


Now I know that's not quite right in 2 ways:

1) The above command is just press not press and hold
2) I have no idea what the Luna command for the windows key is?

Any help from the community would be much appreciated.

Rob

USA
2615 Posts

Posted - 11/29/2015 :  07:58:01  Show Profile  Visit Rob's Homepage
While not impossible, pressing and holding keys are going to be problematic to get to work consistently.

I'd recommend using this instead:

acSendKeys("^%{TAB}") --Send CRTL+ALT+Tab

For Win10, this works fine as well:

acSendKeys("@{TAB}") --Send WIN+Tab
Go to Top of Page

johnyct9760

USA
11 Posts

Posted - 11/29/2015 :  09:44:29  Show Profile  Visit johnyct9760's Homepage
Could you tell me what the luna code for the windows key is plz?
Go to Top of Page

Rob

USA
2615 Posts

Posted - 11/30/2015 :  10:56:50  Show Profile  Visit Rob's Homepage
acSendKeys("@") --Sends a single keypress (Down and Up) of the Windows key
acSendKeys("{VKEY 91}") --Also sends a single keypress (Down and Up) of the Windows key, using the VKey
acSendKeyDown(91) --Sends only the down command (press) for the Windows key
acSendKeyUp(91) --Sends only the up command (release) for the Windows key

The StrokesPlus Help page explains all of the above:

http://www.strokesplus.com/help/#acSendKeysUsage
Go to Top of Page

johnyct9760

USA
11 Posts

Posted - 11/30/2015 :  21:13:43  Show Profile  Visit johnyct9760's Homepage
Ok so I'm trying to do windows key and left arrow at the same time with and S motion for stack windows side by side but I couldn't find a any mention of the arrows on the help doc that was referenced.

Have the base code rdy to go all I need is the luna short code for the left and right arrows.


-- Presses the windows key and the left arrow
-- same time to stack you open windows side by
-- side. 

acSendKeys("@arrowLeft")


I found the arrowLeft command on this page:
https://wiki.inspired-lua.org/Category:Events

But its not working a little help plz and thank you!
Go to Top of Page

Rob

USA
2615 Posts

Posted - 11/30/2015 :  21:28:06  Show Profile  Visit Rob's Homepage
The link I provided does have it, "{LEFT}". So:

acSendKeys("@{LEFT}")

S+ doesn't use Inspired Lua that you referenced, so that won't work at all. Any function that starts with "ac" (like acSendKeys) is a custom function that I have written and built into S+. No other program or Lua implementation is going to use or reference it.

I suggest you do some reading up on scripting to get more familiar with how to do different things. Also, please read the help page thoroughly and look through the forums for other posts to help you figure out how to make your own scripts.

I don't mind helping, but I unfortunately don't have the time to hold anyone's hands through stuff that is completely available in the help and the forums.

Hope you get things working how you like!
Go to Top of Page

johnyct9760

USA
11 Posts

Posted - 12/01/2015 :  08:57:22  Show Profile  Visit johnyct9760's Homepage
Thanks for all the help I appreciate it, I'm not trying to be a pest I'll stay off the forum unless absolutely necessary.
Go to Top of Page

Rob

USA
2615 Posts

Posted - 12/01/2015 :  09:29:23  Show Profile  Visit Rob's Homepage
You're not being a pest, I've just had some bad experiences with people who never tried. They just expected me or someone else to figure everything out for them.

S+ is definitely not designed to be very novice friendly (on purpose); so I get that it can be a bit overwhelming if you're not experienced in scripting or programming. I don't want to discourage you from asking questions, but I also don't want to enable people either! Otherwise, they will never learn on their own :-)
Go to Top of Page

johnyct9760

USA
11 Posts

Posted - 12/01/2015 :  11:22:49  Show Profile  Visit johnyct9760's Homepage
I'm going to tell you something you should approach adobe with this idea of building strokes right into its design programs. I mean so many graphic designers use tablets over mice and this is just a god send for work my flow.

Edited by - johnyct9760 on 12/01/2015 11:33:00
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