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.

execute macro based on text string

If you have a question or need help, this is the place to be.
Post Reply
dmehling
Posts: 29
Joined: Wed Jun 24, 2009 12:10 am

execute macro based on text string

Post by dmehling »

I have created a macro to find the value of a certain pixel a specified location on the screen, and copy its hexadecimal value as a text string. Now I want to figure out a way to trigger a second macro based on the value of that text string. If it returns one particular value than the macro will execute, but if it is a different value it will not execute. How do I do this?
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: execute macro based on text string

Post by Pako »

dmehling.jpg
dmehling.jpg (7.07 KiB) Viewed 731 times
Python script:

Code: Select all

valid_value = "AB CD EF"
#found_value = "00 00 00"
found_value = "AB CD EF"
eg.result = found_value == valid_value
Pako
Post Reply