Hi, I stumbled upon the question when doing some maintainance. From WB a program can be started in one of these three ways: 1): the common method of double-clicking its icon in which case ((struct WBStartup *)argv)->sm_NumArgs == 1 2:) an equally common method is by specifying a tool as default tool for a project and then double-clicking that project's icon. In this case ((struct WBStartup *)argv)->sm_NumArgs == 2 3:) 'elastic banding' one or more files and clicking the program's icon WHILE HOLDING LShift. In this case ((struct WBStartup *)argv)->sm_NumArgs == the number of files selected + 1. The question now is that how can I distinguish between the 2nd and the 3rd way when in the latter only one file has been selected? In both cases ((struct WBStartup *)argv)->sm_NumArgs == 2. Please enlighten my dimlit mind. OldFart
Mon, 2011-11-21 14:13#1
How to distinguish between activating a program as default tool and by shift-clicking?