31 July 2024, 13:26 | #1 |
Returning fan!
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 1,456
|
How to get the Names of the Icons Selected With Another Icon
Hi there!
I'd like to know the paths/names of any icons selected when running a program from its icon but I can only get the paths of the folders of the selected icons I must be missing something but exploring the various DOS/Workbench structures/functions didn't enlighten me Here's what I tried so far, all working but giving me paths only: Code:
wbstartup = (struct WBStartup *)argv; for(i = 0, wbarg = wbstartup->sm_ArgList; i < wbstartup->sm_NumArgs; i++, wbarg++) { fib = AllocDosObject(DOS_FIB, NULL); Examine(wbarg->wa_Lock, fib); EasyRequest(NULL, &requester_struct, NULL, fib->fib_FileName); NameFromLock(wbarg->wa_Lock, buffer, 108); EasyRequest(NULL, &requester_struct, NULL, buffer); Thanks in advance! |
31 July 2024, 14:20 | #2 |
ex. demoscener "Bigmama"
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 1,666
|
WBArg.wa_Name is the name of a selected file, and WBArg.wa_Lock is a lock on the directory containing the file.
|
01 August 2024, 14:43 | #3 |
Returning fan!
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 1,456
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
WorkbenchControlA() - Issue getting selected icons information with just .info files | Daedalus | Coders. System | 2 | 22 November 2023 10:07 |
Issue with icons / confusion over icon sets...? | bjdcleary | New to Emulation or Amiga scene | 5 | 13 October 2019 11:53 |
WB3.1, Fblit,Icon.library 46.4, MagicWB icons and chipmem usage | Yulquen74 | support.Apps | 5 | 13 July 2018 18:51 |
Weid colours for some icons or when holding an icon selected | tygre | support.Other | 7 | 05 September 2015 20:39 |
Matching device names with volume names. | Thorham | Coders. System | 2 | 27 July 2015 12:20 |
|
|