StrokesPlus.net
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
AppleBag  
#1 Posted : Wednesday, July 7, 2021 2:55:13 AM(UTC)
AppleBag

Rank: Newbie

Reputation:

Groups: Approved
Joined: 4/17/2021(UTC)
Posts: 3
United States

Thanks: 2 times
Can this dialog: https://imgur.com/a/Y13tWGO

be moved to a log window with that error message instead, rather than have the dialog popup each time?

After not too long of having it happen all the time it does get annoying to keep having to go back and click the ok button to dismiss it.



Rob  
#2 Posted : Wednesday, July 7, 2021 12:24:41 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,359
United States
Location: Tampa, FL

Thanks: 28 times
Was thanked: 419 time(s) in 356 post(s)
I've added a console window (for user logging at the moment) and I will look at having the option to move these errors to that.

However, I'm wondering why you would have so many constant errors? You shouldn't really have any script errors unless you're actively working on one.

Your screenshot shows an error from script that is only compatible with the previous version of StrokesPlus - why is that line in your script?

Or are you simply trying to convert your old scripts into the new version?
thanks 1 user thanked Rob for this useful post.
Kevin H. on 7/8/2021(UTC)
AppleBag  
#3 Posted : Friday, July 9, 2021 2:47:31 AM(UTC)
AppleBag

Rank: Newbie

Reputation:

Groups: Approved
Joined: 4/17/2021(UTC)
Posts: 3
United States

Thanks: 2 times
thank you Rob. The error doesn't tell me exactly which gesture triggered it, so that makes it slightly harder to track down when I have a lot of gestures, but it looks like it's this one:

acSendKeys("{DELAY=50}^c")
acDelay(50)
local s = acGetClipboardText()
s = 'https://www.google.com/search?hl=en&output=search&q='..s
acShellExecute("open","rundll32.exe","url.dll,FileProtocolHandler "..s, nil, 1)


It's supposed to be triggered on a capital G (for "Google"), and I also have a gesture for a capital O that refreshes the browser. It appears that often-times when trying to refresh a web page in chrome, it recognizes a G instead of an O, might just be bad/lazy gesturing on my part, dunno. :)

I'm still pretty new to SPN and just setup some gestures, but havens't pent much time tweaking everything, sorting out problems, etc, so this is one of them. Is there some code change I need to do to the above to solve the error?

Edited by user Friday, July 9, 2021 2:48:06 AM(UTC)  | Reason: Not specified

Rob  
#4 Posted : Friday, July 9, 2021 3:52:33 AM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,359
United States
Location: Tampa, FL

Thanks: 28 times
Was thanked: 419 time(s) in 356 post(s)
The new version of S+ uses a completely different scripting language (JavaScript), so you can't simply copy/paste scripts from the old version.

There are various reasons this transition occurred, primarily due to international support and that JavaScript is a more common and abundant scripting language that won't be going away anytime soon.

This would be the equivalent script in the new version:
Code:
sp.SendModifiedVKeys([vk.LCONTROL], [vk.VK_C]);
sp.Sleep(50)
var s = clip.GetText();
s = 'https://www.google.com/search?hl=en&output=search&q=' + s
sp.RunProgram("rundll32.exe", "url.dll,FileProtocolHandler " + s, "open", "normal", true, false, false);

thanks 1 user thanked Rob for this useful post.
AppleBag on 7/11/2021(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.