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.

Search found 20 matches

by caffeinatedcoder
Tue Feb 14, 2017 9:57 pm
Forum: General Support
Topic: [Help] Is there a way to add an item to the right-click menu
Replies: 2
Views: 1650

Re: [Help] Is there a way to add an item to the right-click

Wow....I feel REALLY stupid right now. Let's just blame it on lack of coffee and never speak of this again.....
by caffeinatedcoder
Tue Feb 14, 2017 8:46 pm
Forum: General Support
Topic: [Help] Is there a way to add an item to the right-click menu
Replies: 2
Views: 1650

[Help] Is there a way to add an item to the right-click menu

I've been looking through the plugins and see there is one that allows you to create custom items in the EventGhost system tray, but I'm looking to add an option to the right click menu that when selected will run a macro. Is this possible? If so, how? If not, any suggestions on an alternative? What ...
by caffeinatedcoder
Mon Jan 23, 2017 5:02 pm
Forum: General Support
Topic: EG payload variable not expanding properly in cmd line arg
Replies: 4
Views: 2067

Re: EG payload variable not expanding properly in cmd line a

Sorry, I noticed after I took that screenshot that the disable parsing was checked. I tried with it unchecked and the variable and it still does exactly what I said in my first post. The way in the screenshot works only with the password hard-coded.

EDIT: Scratch that, I got it working using your ...
by caffeinatedcoder
Mon Jan 23, 2017 3:47 pm
Forum: General Support
Topic: EG payload variable not expanding properly in cmd line arg
Replies: 4
Views: 2067

EG payload variable not expanding properly in cmd line arg

I'm trying to use the following action to unlock my computer

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1722">
<Action>
System.Execute(u'C:\\Windows\\System32\\tscon.exe', u'1 /dest:console /password:myPassworP', 0, False, 2, u'', False, True, u'', False, True, False, False ...
by caffeinatedcoder
Wed Nov 16, 2016 10:03 pm
Forum: General Support
Topic: Will an error in a Python Script Action stop a Macro?
Replies: 14
Views: 4194

Re: Will an error in a Python Script Action stop a Macro?

Wow, that seems like a lot to remember at this moment. Since I already have an edited version of my code, is there any way you could give me some feedback on how that would perform? I mean, I don't need it to be top-of-the-line code as long as it'll get the job done for this one action.
by caffeinatedcoder
Wed Nov 16, 2016 9:32 pm
Forum: General Support
Topic: Will an error in a Python Script Action stop a Macro?
Replies: 14
Views: 4194

Re: Will an error in a Python Script Action stop a Macro?

Okay, so I've taken some time to tweak my Python Script action to the following.

First Python Script Action:
import shutil
import os
import stat

def remove_readonly(func, path, excinfo):
os.chmod(path, stat.S_IWRITE)
func(path)

try:
#os.chmod is used to turn off Read-Only attribute
os ...
by caffeinatedcoder
Wed Nov 16, 2016 7:15 pm
Forum: General Support
Topic: Will an error in a Python Script Action stop a Macro?
Replies: 14
Views: 4194

Re: Will an error in a Python Script Action stop a Macro?

Is there a way for me to use the `raise ValueError` in my script so that the error that occurs in the Python Script action is logged in the EG log while the rest of the Python Script action also tries to continue? I want to be able to know if any of the commands in the python script cause an error ...
by caffeinatedcoder
Wed Nov 16, 2016 6:42 pm
Forum: General Support
Topic: Will an error in a Python Script Action stop a Macro?
Replies: 14
Views: 4194

Re: Will an error in a Python Script Action stop a Macro?

This is the result when adding the line you suggested. The OSD action did run, so I guess that means that the macro does continue to run, right? How could I incorporate that into my actual script posted in my earlier comment?

Image
by caffeinatedcoder
Wed Nov 16, 2016 5:43 pm
Forum: General Support
Topic: Will an error in a Python Script Action stop a Macro?
Replies: 14
Views: 4194

Re: Will an error in a Python Script Action stop a Macro?

Thanks for the quick reply! I would very much like to know for sure. And if that's the case I wish there were a way to allow the macro to continue even after an error within the Python Script action. For some reason I feel like I read somewhere that Python Script actions are executed within their ...
by caffeinatedcoder
Wed Nov 16, 2016 5:03 pm
Forum: General Support
Topic: Trying to use tscon.exe with variable password
Replies: 2
Views: 1495

Trying to use tscon.exe with variable password

I'm trying to to the tscon.exe application to unlock my computer from my phone. It will work when I have my password hard-coded into the command line options: 1 /dest:console /password:(my hard-coded password) (Disable parsing of string is checked).

But it won't work when I try to use a variable ...
by caffeinatedcoder
Wed Nov 16, 2016 4:42 pm
Forum: General Support
Topic: Will an error in a Python Script Action stop a Macro?
Replies: 14
Views: 4194

Will an error in a Python Script Action stop a Macro?

Does anyone know if I have a Python Script in the middle of a macro and there is an Unhandled error within the Python Script will it stop the Macro from continuing or will the actions after the Python Script action still run?
by caffeinatedcoder
Mon Oct 31, 2016 9:03 pm
Forum: Coding Corner
Topic: Trouble getting Dropbox Library working in Python Script
Replies: 10
Views: 3986

Re: Trouble getting Dropbox Library working in Python Script

The errors above seem to be telling me it does have something to do with an encoding issue. Just not sure how to make it work though, because with those first two lines I still get errors.
by caffeinatedcoder
Mon Oct 31, 2016 8:57 pm
Forum: Coding Corner
Topic: Trouble getting Dropbox Library working in Python Script
Replies: 10
Views: 3986

Re: Trouble getting Dropbox Library working in Python Script

This is what I get when I add just the import dropbox line back at the top.

http://i.imgur.com/jacFdLh.png

Also, the script that did nothing didn't upload any files and didn't produce and error, so I'm not sure what else it would do. But, I double-checked and the file was not uploaded to my ...
by caffeinatedcoder
Mon Oct 31, 2016 8:46 pm
Forum: Coding Corner
Topic: Trouble getting Dropbox Library working in Python Script
Replies: 10
Views: 3986

Re: Trouble getting Dropbox Library working in Python Script

Actually, scratch that. If I start from that line nothing happens

Image