Kenneth Kornblum
2 discussion posts
I bought the Pro/Personal license for the whole package of BF products. This is like my new toy. I am addicted to customizing everything in the universe.
Scripting languages, C# and Visual Basic, no problem. Been writing in those and other languages for years. The thing I cannot figure out is how to get back into an edit session to continue editing an existing script.
Example, I have a function which positions my MS Outlook window where I want it on my LG Ultra Wide monitor. Today I take my laptop out on the patio and the trigger fires. Hmm, bad idea. So, I wrote a script to detect the monitor size using a VB script containing the following in part:
dim monBnds as string
dim isUltraWide as boolean
isUltraWide = False
' get monitor size. if Ultra Wide then customize it
monBnds = BFS.Monitor.GetMonitorBoundsByWindow(windowHandle).ToString
' Test for Ultra Wide resolution
if monBnds = "{X=0,Y=0,Width=3440,Height=1980}" then isUltraWide = True
if isUltraWide then
' do stuff for this monitor
else
' do stuff for Laptop monitor
end if
Love it. It works. Saved it. Now I want to edit it again. I highlight the action, click edit, it pops up a dialog where I can pick the name of my scripted function. I select it and click OK. The dialog closes. Nothing else happens. How on earth do I re-edit my script??
I know this was verbose. I posted the script (from memory) seeking feedback on that while I am at it. But the primary thing I need to know is how to get back into a saved script for edit.
Thanks all.
Kenneth Kornblum
2 discussion posts
Never Mind.
The answer is to look in the Functions tab / Custom Functions and then double-click on your function name.
If you select the "Move Mouse Pointer in Circle" in the list, then click the Edit Function button, that should do it.
You can also double-click the "Move Mouse Pointer in Circle" function to open it's script edit window.
My confusion was between "Custom Functions" and "Scripted Functions"
When I added Move Mouse Pointer in a Circle as a Scripted Function, it worked and
I can return to edit it. If I import it as a Custom Function, the application does not report any error, but I cannot edit it, nor did it work.
So can you compare/contrast a Custom Function vs. a Scripted Function for me?