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.
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
execute macro based on text string
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?
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: execute macro based on text string
Python script:Pako
Code: Select all
valid_value = "AB CD EF"
#found_value = "00 00 00"
found_value = "AB CD EF"
eg.result = found_value == valid_value