Hi folks!
I am having a lot of fun messing around with the scripts I have found and I thought I would like to make my own. Unfortunately, my method of scripting involves hacking apart existing scripts and trying to make them work for what I want to do. Sadly, I am unable to make any headway here with my lack of understanding of C#.
Could someone look at the below mess and point me in the right direction to accomplish my goal? I would like for the “scan” button to be pressed at an interval. Pressing the “V” (keyboard shortcut)key, would be great, also but, I couldn’t find anything that permits that.
EDIT: What is the board code for a “Code Block”? - ANSWERED; TY VIIR
Thanks!
//Run until stopped
while(true)
{
//Read Eve memory capture
var Measurement = Sanderling?.MemoryMeasurementParsed?.Value;
//Find Dscan window
var ?????? = Measurement?.WindowOther?.FirstOrDefault(w => (w?.Caption.RegexMatchSuccessIgnoreCase("Directional Scanner") ?? false) && (w?.isModal ?? false));
//Click SCAN button
var ConfirmButton = ConfirmWindow.ButtonText?.FirstOrDefault(text => text.Text.RegexMatchSuccessIgnoreCase("Scan") );
Sanderling.MouseClickLeft(YesButton);
}
// wait for ten seconds before repeating.
Host.Delay(10000);