CheckBox checked?
Posted: 25 Jun 2013 11:47
Hello,
When a bluetooth device (external GPS) is connected I want to lanch an app (GpsInfo, maps external GPS to mocking locations). Check a checkbox in the app, move app to background, and then start a navigation app (Google navigation, TomTom,...)
So I think I have to write a UI script that checks the checkbox and if checked lanches the nav app. If the checkbox becomes unchecked, because it was checked already, it should check it again. It has to be like this because when GPSinfo is restarted and the checkbox wasn't unchecked when the app was closed it shows checked on startup of the app. In delphi it would look something like this:
var T:Integer; //Try max 50 times
T:=0;
While (not Cb.Checked) Or (T=50) do begin
Cb.Checked:= True;
T:= T+ 1;
If (Cb.Checked) then begin
[close Gpsinfo] //Press BackButton
[launch nav app]
end;
end;
How would I convert this to UI script?
Thanks in advance,
Christophe,
Belgium.
When a bluetooth device (external GPS) is connected I want to lanch an app (GpsInfo, maps external GPS to mocking locations). Check a checkbox in the app, move app to background, and then start a navigation app (Google navigation, TomTom,...)
So I think I have to write a UI script that checks the checkbox and if checked lanches the nav app. If the checkbox becomes unchecked, because it was checked already, it should check it again. It has to be like this because when GPSinfo is restarted and the checkbox wasn't unchecked when the app was closed it shows checked on startup of the app. In delphi it would look something like this:
var T:Integer; //Try max 50 times
T:=0;
While (not Cb.Checked) Or (T=50) do begin
Cb.Checked:= True;
T:= T+ 1;
If (Cb.Checked) then begin
[close Gpsinfo] //Press BackButton
[launch nav app]
end;
end;
How would I convert this to UI script?
Thanks in advance,
Christophe,
Belgium.