python-embedded-launcher icon indicating copy to clipboard operation
python-embedded-launcher copied to clipboard

Traceback due to trying to load a group using the index of an icon

Open kdschlosser opened this issue 7 years ago • 0 comments

There is also another issue when trying to export an icon. It seems that the code for the export uses the icon "name" when it makes a query about a group.

I am not sure why it does this but If I have 3 icons that are embedded the names would be 1, 2, 3 but I only have a single group and it's name is 1 so if I try to do anything with icon 2 and 3 the traceback below happens

File "C:/Users/Administrator/.PyCharmCE2017.1/config/scratches/scratch_51.py", line 454, in action_export_icon
  ico.load_from_resource(res, args.name, args.lang)
File "C:/Users/Administrator/.PyCharmCE2017.1/config/scratches/scratch_51.py", line 88, in load_from_resource
  info = res.get_resource(RT_GROUP_ICON, res_name, res_lang)
File "C:/Users/Administrator/.PyCharmCE2017.1/config/scratches/scratch_51.py", line 358, in get_resource
  hres = FindResourceEx(self.hsrc, res_type, res_name, res_lang)
File "C:/Users/Administrator/.PyCharmCE2017.1/config/scratches/scratch_51.py", line 161, in ValidHandle
  raise ctypes.WinError()
WindowsError: [Error 1814] The specified resource name cannot be found in the image file.

kdschlosser avatar Sep 16 '17 02:09 kdschlosser