stevecasper Posted December 20, 2008 Report Share Posted December 20, 2008 Well, I'm stoked about ME Pro, so here I am re-creating my most-often used-at-home macros on the new system and I've just come across what I hope is a simple matter of adjusting a preference. I have a macro that opens a dialog box so I can choose what often-visited website I'd like. Example: Wikipdedia. So my dialog box prompts me and I select Wikipedia, another prompt opens asking me what I want to search for. At this point I would normally put in something like "Italian dressing" or "rhododendron" or whatever I happen to be curious about. So far, so good. I previously also had it set so that if the prompt remains "" (aka BLANK), then it just goes to the Wikipdedia home page. Alas, in ME Pro, if nothing is entered into the prompt window, the "OK" button remains inactive. I can work with this at home because, really, I could just set the default for that variable as "Wiki Home" or "----" and send it automatically to the Wikipedia home page when the variable = "-----". But that's for my personal use. At work I have a similar set-up where I need to combine various serial numbers into a program we use. How many serial numbers is dependent on the account. Maybe there is one, maybe there are ten. So my macro prompts me for a serial number and I enter it. The macro then types the serial number into the correct box and prompts me for the next one, and so on. When there are no more serial numbers, I leave the prompt blank, and the macro recognizes that to mean it is time to move on. I don't want to limit my co-workers with the necessity to remember just how many dashes it takes, in case they start typing a number and then realize they don't need one after all. Is there a preference to activate the "OK" button when the prompt is left blank? Or am I just going to have to suck it up and deal with it or find a different work-around? The bottom line, I guess, is simply this: Can't "" be legitimate contents for a text variable? Here's my code, in case somebody wants to take a close look and tell me what I could do differently to make this work the way I want (or in case somebody has a more efficient way to do the whole thing): <VARIABLE SET STRING Option="\x00" Destination="%T1%" Value="A"/> <MULTIPLE CHOICE MENU Style="\x00" Result="\x00" Dest="%T1%" Title="Launch What Page?" Prompt="What web site are you launching?" Options="Google\r\nDictionary\r\nWikipedia\r\nPGMacros\r\nOther" Left="Center" Top="Center" Monitor="0" Width="443" Height="296" OnTop="FALSE"/> <IF VARIABLE Variable="%T1%" Condition="\x00" Value="A" IgnoreCase="FALSE"/> <VARIABLE SET STRING Option="\x01" Destination="%T2%" Prompt="What are we searching?" Mask="FALSE" OnTop="FALSE" Left="Center" Top="Center" Monitor="0"/> <IF VARIABLE Variable="%T2%" Condition="\x00" Value="gmail" IgnoreCase="FALSE"/> <WEB SITE URL="http://mail.google.com" Wait="FALSE" Default_Browser="TRUE" _IGNORE="0x000C"/> <ELSE/> <VARIABLE MODIFY STRING Option="\x0F" Destination="%T2%" ToReplace=" " ReplaceWith="+" All="TRUE" IgnoreCase="FALSE"/> <WEB SITE URL="http://www.google.com/search?hl=en&q=%T2%" Wait="FALSE" Default_Browser="TRUE" _IGNORE="0x000C"/> <END IF/> <END IF/> <IF VARIABLE Variable="%T1%" Condition="\x00" Value="B" IgnoreCase="FALSE"/> <VARIABLE SET STRING Option="\x01" Destination="%T2%" Prompt="What are we defining?" Mask="FALSE" OnTop="FALSE" Left="Center" Top="Center" Monitor="0"/> <IF VARIABLE Variable="%T2%" Condition="\x00" IgnoreCase="FALSE"/> <WEB SITE URL="http://dictionary.reference.com/" Wait="FALSE" Default_Browser="TRUE" _IGNORE="0x000C"/> <ELSE/> <VARIABLE MODIFY STRING Option="\x0F" Destination="%T2%" ToReplace=" " ReplaceWith="%20" All="TRUE" IgnoreCase="FALSE"/> <WEB SITE URL="http://dictionary.reference.com/browse/%T2%" Wait="FALSE" Default_Browser="TRUE" _IGNORE="0x000C"/> <END IF/> <END IF/> <IF VARIABLE Variable="%T1%" Condition="\x00" Value="C" IgnoreCase="FALSE"/> <VARIABLE SET STRING Option="\x01" Destination="%T2%" Prompt="What are we searching?" Mask="FALSE" OnTop="FALSE" Left="Center" Top="Center" Monitor="0"/> <IF VARIABLE Variable="%T2%" Condition="\x00" IgnoreCase="FALSE"/> <WEB SITE URL="http://en.wikipedia.org/wiki/Main_Page" Wait="FALSE" Default_Browser="TRUE" _IGNORE="0x000C"/> <ELSE/> <VARIABLE MODIFY STRING Option="\x0F" Destination="%T2%" ToReplace=" " ReplaceWith="_" All="TRUE" IgnoreCase="FALSE"/> <WEB SITE URL="http://en.wikipedia.org/wiki/%T2%" Wait="FALSE" Default_Browser="TRUE" _IGNORE="0x000C"/> <END IF/> <END IF/> <IF VARIABLE Variable="%T1%" Condition="\x00" Value="D" IgnoreCase="FALSE"/> <WEB SITE URL="http://pgmacros.invisionzone.com/" Wait="FALSE" Default_Browser="TRUE" _IGNORE="0x000C"/> <END IF/> <IF VARIABLE Variable="%T1%" Condition="\x00" Value="E" IgnoreCase="FALSE"/> <VARIABLE SET STRING Option="\x01" Destination="%T2%" Prompt="What website?" Mask="FALSE" OnTop="FALSE" Left="Center" Top="Center" Monitor="0"/> <IF VARIABLE Variable="%T2%" Condition="\x07" Value=".com" IgnoreCase="FALSE"/> <IF VARIABLE Variable="%T2%" Condition="\x07" Value=".org" IgnoreCase="FALSE"/> <IF VARIABLE Variable="%T2%" Condition="\x07" Value=".net" IgnoreCase="FALSE"/> <IF VARIABLE Variable="%T2%" Condition="\x07" Value=".gov" IgnoreCase="FALSE"/> <IF VARIABLE Variable="%T2%" Condition="\x07" Value=".edu" IgnoreCase="FALSE"/> <VARIABLE MODIFY STRING Option="\x06" Destination="%T2%" Value=".com"/> <END IF/> <END IF/> <END IF/> <END IF/> <END IF/> <WEB SITE URL="http://%T2%" Wait="FALSE" Default_Browser="TRUE" _IGNORE="0x000C"/> <END IF/> Quote Link to comment Share on other sites More sharing options...
joe Posted December 20, 2008 Report Share Posted December 20, 2008 After trying your code it is unclear whether this is a design change to the command or a bug. I suspect it's a bug. The work-around is to enter a character (any character) and then a backspace. The OK button will remain enabled, which is what leads me to suspect a bug. Quote Link to comment Share on other sites More sharing options...
stevecasper Posted December 20, 2008 Author Report Share Posted December 20, 2008 After trying your code it is unclear whether this is a design change to the command or a bug. I suspect it's a bug. The work-around is to enter a character (any character) and then a backspace. The OK button will remain enabled, which is what leads me to suspect a bug. Ok, I see that works. If it's a bug, I can live with that. Early versions are rarely 100%. Hopefully it gets fixed in an early version update. Thanks! Quote Link to comment Share on other sites More sharing options...
terrypin Posted December 21, 2008 Report Share Posted December 21, 2008 Steve: I was about to hastily try your code before I leave for a trip but happily see that Joe diagnosed it fast. Joe: Any chance of a new book, or 'Pro Appendix'? See this post Quote Link to comment Share on other sites More sharing options...
joe Posted December 22, 2008 Report Share Posted December 22, 2008 Joe: Any chance of a new book, or 'Pro Appendix'? No target date has been set, but yes, absolutely. Quote Link to comment Share on other sites More sharing options...
kevin Posted December 22, 2008 Report Share Posted December 22, 2008 This issue has been added to our bug tracking database and assigned the tracking number [iSS6278]. Bugs can be reported via our Report a Bug web page. Feature requests can be entered via our Request a Feature web page. Quote Link to comment Share on other sites More sharing options...
stevecasper Posted December 22, 2008 Author Report Share Posted December 22, 2008 This issue has been added to our bug tracking database and assigned the tracking number [iSS6278]. Bugs can be reported via our Report a Bug web page. Feature requests can be entered via our Request a Feature web page. Thanks Kevin and Joe! So far I am loving ME Pro. You guys at Insight are awesome! Quote Link to comment Share on other sites More sharing options...
chris Posted December 24, 2008 Report Share Posted December 24, 2008 Just to let you know, this was a bug as the dialog box wasn't supposed to disable the OK button. It has been fixed and will be available in the next release. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.