Hey there, instead of filling the forum with more threads I thought I'd just put these two into one.
Firstly, I have a script that sets a global variable:
global nudgeValueAnd later in the script it's set and changed and accessed by different functions. It's being manipulated later on in the script by a spinner. But to make it so that the spinner remembers it's last value after it's closed it will see if the global value has been set and if so use it, if not, not.
So...
if nudgeValue == undefined thenRight?
Doing that in the listener works fine, but that one after the other in the script throws up an error: Syntax error: at if, expected
Second question!
My script contains some regular steps that creates a dialog to manipulate the global value. It then creates a four functions which use this global variable.
I want to set-up keyboard shortcuts for these four functions, but how can I without making each an individual script and then assigning keyboard shortcuts?
Many thanks in advance!
Anubis · 2011-03-07
Swordslayer · 2011-03-08