Ok, this option worked for me: 1. Create ~user/projects/jhslocal.ijs:
NB. start jhs and local browser require '~addons/ide/jhs/core.ijs' ShellExecute=: 'shell32 ShellExecuteA i i *c *c *c *c i'&cd SW_SHOWNORMAL=:1 NULL=:<0 startj=: 3 : 0 init_jhs_'' ShellExecute(0;'open';'http://127.0.0.1:65001/jijx';NULL;NULL;SW_SHOWNORMAL) ) 2. create j64-701/jhslocal.bat: "%~dp0jconsole" ~user/projects/jhslocal.ijs -js " startj'' " rem see ~addons/ide/jhs/config/jhs_default.ijs for config info 3. clone the j64-701jhs icon and change the Target to something like: C:\Users\me\j64-j701a\j64-701\bin\jhslocal.bat 4. Optionally change the new icon properties to: Run: Minimized On 1/8/2011 10:53, Eric Iverson wrote: > Perhaps not a good idea for users to edit core.ijs. > > I don't want to hardwire in the start of a browser with the jijx url as many > use cases don't want this. At minimum this would have to added to the jhs > config and I would like to avoid that complexity. Starting jhs and opening a > URL should not be wired together. > > I wonder if you could get what you want by customizing your install as > follows (hand waving): > > 1. create script autourl.ijs that defines startj appropriate for platform, > browser, and url. > > 2. create jhsx.bat file similar to jhs.bat with extra sentences to load > autourl.ijs and do startj'' after the init call. > > 3. create desktop icon to run jhsx.bat > > On Sat, Jan 8, 2011 at 5:33 AM, David Mitchell<[email protected]>wrote: > >> Update addons/ide/jhs/core.ijs: >> >> require'dll' >> >> ShellExecute=: 'shell32 ShellExecuteA i i *c *c *c *c i'&cd >> >> SW_SHOWNORMAL=:1 >> >> NULL=:<0 >> >> startj=: 3 : 0 >> ShellExecute(0;'open';' >> http://127.0.0.1:65001/jijx';NULL;NULL;SW_SHOWNORMAL) >> ) >> >> Update init: >> >> change >> >> jfe 1 >> ) >> >> to >> jfe 1 >> if. IFWIN do. >> startj'' NB. DM 2011 01 08 >> end. >> ) >> >> For me, on Win7_64, this starts a jijx browser window automatically after >> starting j701jhs. >> >> ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
