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
 Help with actions
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

kracov

7 Posts

Posted - 04/18/2019 :  21:53:21  Show Profile  Reply with Quote
I'm a new user and I'm trying to add an action. Actually I was trying to edit the Refresh gesture action.
This is what I edited:

-- this code sends the F5 key to refresh the window

acSendKeys("^+r")

Where "^+r" is supposed to be CTRL+SHIFT+R. But it actually disables it. I use it for refreshing gmail in the browser.

Rob

USA
2588 Posts

Posted - 04/19/2019 :  03:58:01  Show Profile  Visit Rob's Homepage  Reply with Quote
I just copied and pasted your acSendKeys("^+r") line and tested in GMail, it seems to reload fine for me.

What do you mean when you say "But it actually disables it."?
Go to Top of Page

kracov

7 Posts

Posted - 04/19/2019 :  04:37:34  Show Profile  Reply with Quote
Yeah. The gesture doesn't work. And when I try the keyboard command nothing happens. It's fixed by exiting Strokesplus
Go to Top of Page

Rob

USA
2588 Posts

Posted - 04/19/2019 :  04:52:03  Show Profile  Visit Rob's Homepage  Reply with Quote
What keyboard layout are you using? Meaning, is it a non-US English layout?

Do any these behave any differently?
acSendControlDown()
acSendShiftDown()
acSendKeys("r")
acSendShiftUp()
acSendControlUp()

OR

acSendKeyDown(162)  --Left Control
acSendKeyDown(160)  --Left Shift
acSendKeys("r")     --r
acSendKeyUp(160)    --Left Control
acSendKeyUp(162)    --Left Shift

OR

acSendKeyDown(162) --Left Control
acSendKeyDown(160) --Left Shift
acSendKeyDown(82)  --r
acSendKeyUp(82)    --r 
acSendKeyUp(160)   --Left Control
acSendKeyUp(162)   --Left Shift
Go to Top of Page

kracov

7 Posts

Posted - 04/19/2019 :  04:55:18  Show Profile  Reply with Quote
i dont know about any of that. what preferences file should i send to you and where?
Go to Top of Page

Rob

USA
2588 Posts

Posted - 04/19/2019 :  04:57:16  Show Profile  Visit Rob's Homepage  Reply with Quote
Did you try any of the three script sets above? The keyboard layout isn't something within StrokePlus, that would be in Windows.
Go to Top of Page

kracov

7 Posts

Posted - 04/19/2019 :  04:58:55  Show Profile  Reply with Quote
how do i add those scripts?
Go to Top of Page

kracov

7 Posts

Posted - 04/19/2019 :  05:02:17  Show Profile  Reply with Quote
ohh i see. i added a hotkey in the Hotkeys tab that was conflicting with it. i removed it and the gesture works now

Edited by - kracov on 04/19/2019 05:03:27
Go to Top of Page

Rob

USA
2588 Posts

Posted - 04/19/2019 :  05:02:53  Show Profile  Visit Rob's Homepage  Reply with Quote
Just copy and paste them from above in place of your acSendKeys code. Only copy one set (5 lines) per try, otherwise it would execute all of them. Click Apply or OK then see if the gesture reloads GMail. If not, try the next set of 5 lines.
Go to Top of Page

Rob

USA
2588 Posts

Posted - 04/19/2019 :  05:03:55  Show Profile  Visit Rob's Homepage  Reply with Quote
Ah, that would probably do it too! Glad you got it figured out.
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