Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

New version 0.5.0-rc3 is out

Keep up to date with EG related information here.
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: New version 0.5.0-rc3 is out

Post by kgschlosser »

what is this program Ptedit51.exe?

and is it something that is an application. or a run once and is done very quickly?
if it is an application that is going to run for longer then 5 seconds then make sure you have Wait until it finishes unchecked.


But also you can do this very simply without the need to trigger another event. to make it far easier to deal with and to narrow down where a potential issue could be I would like you to make a macro with the Python Script action in it. and paste the code below into it. once that is done then i will need you to put the System.Attached event into it.

Code: Select all

if eg.event.payload[0] == '\\\\?\\USB#VID_04F9&PID_2041#K1G711347#{a5dcbf10-6530-11d2-901f-00c04fb951ed}':
    eg.plugins.System.Execute('C:\\Program Files (x86)\\Brother\\Ptedit51\\Ptedit51.exe', '', 0, False, 2, '', False, False, '', False, False, False, False)
and lets see if there is still an issue after that
If you like the work I have been doing then feel free to Image
User avatar
topix
Experienced User
Posts: 441
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

Re: New version 0.5.0-rc3 is out

Post by topix »

@K: hah, i was faster :P

Ptedit51.exe is a editor for creating labels with Brother P-Touch Labelprinter.
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: New version 0.5.0-rc3 is out

Post by kgschlosser »

yeah yeah. I was busy keying out instructions on how to set permissions for WMI

But actually it has absolutely nothing to do with special characters.. it has all to do with he is trying to concatenate a python list to a string. now that will not work. I am thinking if he removes the []'s from the event that is in the macro that triggers the PTouch and in the macro that converts the System.Attached instead of entering{eg.event.payload} he enters {eg.event.payload[0]} in the trigger event action this would most likely solve the issue.


or simply change the {eg.event.payload} in the trigger event action to {str(eg.event.payload)} that will work as well.
If you like the work I have been doing then feel free to Image
Post Reply