Script error I cant figure out

This is where you talk about Macros, show examples of your macro scripting and SHARE handy segments of script code as examples.

Script error I cant figure out

Postby tomsmith » Tue Feb 08, 2022 2:50 pm

Script error I cant figure out, basically I am trying to set checkbox "82" as ticked, checkbox "70" as un-ticked and then apply settings, seems simple enough, but I just cant figure out what I'm doing wrong, code below, any help would be greatly appreciated?

{

exec.Setcheckboxstate(true,82);
exec.Wait(100);
exec.Setcheckboxstate(false,70);
exec.Wait(100);
exec.Switchbutton(true,168);
exec.Wait(100);

}
tomsmith
 
Posts: 22
Joined: Wed Jan 19, 2022 2:33 pm

Re: Script error I cant figure out

Postby dezsoe » Tue Feb 08, 2022 2:59 pm

Instead of exec.Switchbutton(true,168); write exec.Callbutton(168);
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Script error I cant figure out

Postby tomsmith » Mon Feb 14, 2022 4:55 pm

Thanks Dezsoe, but im still getting script error:

new code:

{

exec.Setcheckboxstate(true,82);
exec.Wait(100);
exec.Setcheckboxstate(false,70);
exec.Wait(100);
exec.Callbutton(168);
exec.Wait(100);

}
tomsmith
 
Posts: 22
Joined: Wed Jan 19, 2022 2:33 pm

Re: Script error I cant figure out

Postby dezsoe » Mon Feb 14, 2022 5:01 pm

Sorry, exec.Setcheckboxstate(true,82); should be AS3.Setcheckboxstate(true,82);. (Next time include the error message, please. :))
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Script error I cant figure out

Postby tomsmith » Mon Feb 14, 2022 10:18 pm

Working perfectly thanks dezsoe
tomsmith
 
Posts: 22
Joined: Wed Jan 19, 2022 2:33 pm


Return to Macros

Who is online

Users browsing this forum: No registered users and 5 guests