ArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2021-04-16T20:50:14+02:00 https://brainmodular.org/forums/app.php/feed/topic/6326 2021-04-16T20:50:14+02:00 2021-04-16T20:50:14+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=43339#p43339 <![CDATA[Re: Screen Resolution Script]]> https://www.brainmodular.com/manuals/hh ... usine-path

Statistics: Posted by senso — 16 Apr 2021, 20:50


]]>
2021-04-14T23:28:02+02:00 2021-04-14T23:28:02+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=43335#p43335 <![CDATA[Re: Screen Resolution Script]]> Statistics: Posted by dmitriyc — 14 Apr 2021, 23:28


]]>
2021-04-01T09:37:56+02:00 2021-04-01T09:37:56+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=43309#p43309 <![CDATA[Re: Screen Resolution Script]]> Statistics: Posted by senso — 01 Apr 2021, 09:37


]]>
2021-03-31T23:17:24+02:00 2021-03-31T23:17:24+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=43308#p43308 <![CDATA[Re: Screen Resolution Script]]>
st.loadfromFile(GetApplicationPath + 'LogUsine.log');

should be

st.loadfromFile(GetApplicationPath + '/LogUsine.log');

the format was a bit off and was spitting back an error.

Quick follow up question: is there any way to just simply print the GetApplicationPath?

Statistics: Posted by dmitriyc — 31 Mar 2021, 23:17


]]>
2021-03-19T20:53:22+02:00 2021-03-19T20:53:22+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=43274#p43274 <![CDATA[Re: Screen Resolution Script]]>

CODE:

/////////////////////////////////////////////////////////////////////////////////                                                          // declaration                                                            var refresh,textOut: Tparameter;     var Xout, Yout : Tparameter;     var st   : TStringList;                                                                               // initialisation create parametersprocedure init;var i : integer;                         begin    refresh := CreateParam('get_rez',ptButton);                                SetIsOutPut (refresh,false);      textOut := CreateParam('text',ptTextField);  SetIsInPut(textOut,false);                                  Xout := CreateParam('X',ptdataField);  SetIsInPut( Xout,false);       Yout := CreateParam('Y',ptdataField);  SetIsInPut(Yout,false);    end;               // read                          procedure ReadTextFile;      var all : string; var line : string;var position : integer;   begin  st.create;                        st.clear;       st.loadfromFile(GetApplicationPath + 'LogUsine.log');    all := st.GetCommaText;                                                                                                                                                                       position :=  pos('Resolution',all);                                                           if (position>0) then   begin   position := position+11;    SetStringValue(textOut, copy(all, position, 9));    line  := copy (all, position, 4);     SetValue(Xout, strtoint(line));                        line  := copy (all, position+5, 4);     SetValue(Yout, strtoint(line));   end;                  st.free;         end;         // Callbackprocedure callBack(n : integer);begin     if n=0  then  ReadTextFile;end;

Statistics: Posted by senso — 19 Mar 2021, 19:53


]]>
2021-03-19T04:58:25+02:00 2021-03-19T04:58:25+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=43267#p43267 <![CDATA[Re: Screen Resolution Script]]> Statistics: Posted by dmitriyc — 19 Mar 2021, 03:58


]]>
2018-11-28T13:19:24+02:00 2018-11-28T13:19:24+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=40463#p40463 <![CDATA[Screen Resolution Script]]> will not work if changing res while usine is already launched, but maybe possible with sdk im not sure, ill try to have a look.

Statistics: Posted by 23fx23 — 28 Nov 2018, 12:19


]]>
2018-11-28T08:51:54+02:00 2018-11-28T08:51:54+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=40458#p40458 <![CDATA[Screen Resolution Script]]> Statistics: Posted by rlgsbt — 28 Nov 2018, 07:51


]]>
2018-11-27T23:33:55+02:00 2018-11-27T23:33:55+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=40457#p40457 <![CDATA[Screen Resolution Script]]>

Statistics: Posted by 23fx23 — 27 Nov 2018, 22:33


]]>
2018-11-27T19:14:39+02:00 2018-11-27T19:14:39+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=40454#p40454 <![CDATA[Screen Resolution Script]]> Statistics: Posted by dmitriyc — 27 Nov 2018, 18:14


]]>
2018-11-27T00:55:23+02:00 2018-11-27T00:55:23+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=40444#p40444 <![CDATA[Screen Resolution Script]]>
(paste all in empty script and press compile and init, then 'get rez' button)

CODE:

//////////////////////////////&#58;//////////////////////////// Extract rez from usine log           /////////////////////////                                                          // declaration                                                            var refresh,textOut &#58; Tparameter;     var Xout, Yout &#58; Tparameter;     var st   &#58; TStringList;                                                                               // initialisation &#58; create parametersprocedure init;var i &#58; integer;                         begin    refresh &#58;= CreateParam&#40;'get_rez',ptButton&#41;;                                SetIsOutPut&#40;refresh,false&#41;;      textOut &#58;= CreateParam&#40;'text',ptTextField&#41;;  SetIsInPut&#40;textOut,false&#41;;                                 Xout &#58;= CreateParam&#40;'X',ptdataField&#41;;  SetIsInPut&#40;Xout,false&#41;;       Yout &#58;= CreateParam&#40;'Y',ptdataField&#41;;  SetIsInPut&#40;Yout,false&#41;;    end;               // read                          procedure ReadTextFile;      var all &#58; string; var line &#58; string;var position &#58;  integer;   begin  st.create;                        st.clear;       st.loadfromFile&#40;GetApplicationPath + 'LogUsine.log'&#41;;    all &#58;= st.GetCommaText;                                                                                                                                                                       position &#58;=  pos&#40;'Resolution',all&#41;;                                                           if&#40;position>0&#41; then begin     position &#58;= position+11;    SetStringValue&#40;textOut, copy&#40;all, position, 9&#41;&#41;;    line  &#58;= copy &#40;all, position, 4&#41;;     SetValue&#40;Xout, strtoint&#40;line&#41;&#41;;                        line  &#58;= copy &#40;all, position+5, 4&#41;;     SetValue&#40;Yout, strtoint&#40;line&#41;&#41;;   end;   // itrace&#40;position&#41;;                 st.free;         end;         // Callbackprocedure callBack&#40;n&#58;integer&#41;;begin     if n=0  then   ReadTextFile;end;

Statistics: Posted by 23fx23 — 26 Nov 2018, 23:55


]]>
2018-11-26T21:12:16+02:00 2018-11-26T21:12:16+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=40440#p40440 <![CDATA[Screen Resolution Script]]>

Statistics: Posted by nay-seven — 26 Nov 2018, 20:12


]]>
2018-11-24T18:14:08+02:00 2018-11-24T18:14:08+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=40432#p40432 <![CDATA[Screen Resolution Script]]>
Was wondering if there was a script or something to get my current screen resolution and preferably spit it out as a numerical output?

Statistics: Posted by dmitriyc — 24 Nov 2018, 17:14


]]>
BrainModular BrainModular Users Forum 2021-04-16T20:50:14+02:00 https://brainmodular.org/forums/app.php/feed/topic/6326 2021-04-16T20:50:14+02:00 2021-04-16T20:50:14+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=43339#p43339 <![CDATA[Re: Screen Resolution Script]]> https://www.brainmodular.com/manuals/hh ... usine-path

Statistics: Posted by senso — 16 Apr 2021, 20:50


]]>
2021-04-14T23:28:02+02:00 2021-04-14T23:28:02+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=43335#p43335 <![CDATA[Re: Screen Resolution Script]]> Statistics: Posted by dmitriyc — 14 Apr 2021, 23:28


]]>
2021-04-01T09:37:56+02:00 2021-04-01T09:37:56+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=43309#p43309 <![CDATA[Re: Screen Resolution Script]]> Statistics: Posted by senso — 01 Apr 2021, 09:37


]]>
2021-03-31T23:17:24+02:00 2021-03-31T23:17:24+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=43308#p43308 <![CDATA[Re: Screen Resolution Script]]>
st.loadfromFile(GetApplicationPath + 'LogUsine.log');

should be

st.loadfromFile(GetApplicationPath + '/LogUsine.log');

the format was a bit off and was spitting back an error.

Quick follow up question: is there any way to just simply print the GetApplicationPath?

Statistics: Posted by dmitriyc — 31 Mar 2021, 23:17


]]>
2021-03-19T20:53:22+02:00 2021-03-19T20:53:22+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=43274#p43274 <![CDATA[Re: Screen Resolution Script]]>

CODE:

/////////////////////////////////////////////////////////////////////////////////                                                          // declaration                                                            var refresh,textOut: Tparameter;     var Xout, Yout : Tparameter;     var st   : TStringList;                                                                               // initialisation create parametersprocedure init;var i : integer;                         begin    refresh := CreateParam('get_rez',ptButton);                                SetIsOutPut (refresh,false);      textOut := CreateParam('text',ptTextField);  SetIsInPut(textOut,false);                                  Xout := CreateParam('X',ptdataField);  SetIsInPut( Xout,false);       Yout := CreateParam('Y',ptdataField);  SetIsInPut(Yout,false);    end;               // read                          procedure ReadTextFile;      var all : string; var line : string;var position : integer;   begin  st.create;                        st.clear;       st.loadfromFile(GetApplicationPath + 'LogUsine.log');    all := st.GetCommaText;                                                                                                                                                                       position :=  pos('Resolution',all);                                                           if (position>0) then   begin   position := position+11;    SetStringValue(textOut, copy(all, position, 9));    line  := copy (all, position, 4);     SetValue(Xout, strtoint(line));                        line  := copy (all, position+5, 4);     SetValue(Yout, strtoint(line));   end;                  st.free;         end;         // Callbackprocedure callBack(n : integer);begin     if n=0  then  ReadTextFile;end;

Statistics: Posted by senso — 19 Mar 2021, 19:53


]]>
2021-03-19T04:58:25+02:00 2021-03-19T04:58:25+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=43267#p43267 <![CDATA[Re: Screen Resolution Script]]> Statistics: Posted by dmitriyc — 19 Mar 2021, 03:58


]]>
2018-11-28T13:19:24+02:00 2018-11-28T13:19:24+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=40463#p40463 <![CDATA[Screen Resolution Script]]> will not work if changing res while usine is already launched, but maybe possible with sdk im not sure, ill try to have a look.

Statistics: Posted by 23fx23 — 28 Nov 2018, 12:19


]]>
2018-11-28T08:51:54+02:00 2018-11-28T08:51:54+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=40458#p40458 <![CDATA[Screen Resolution Script]]> Statistics: Posted by rlgsbt — 28 Nov 2018, 07:51


]]>
2018-11-27T23:33:55+02:00 2018-11-27T23:33:55+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=40457#p40457 <![CDATA[Screen Resolution Script]]>

Statistics: Posted by 23fx23 — 27 Nov 2018, 22:33


]]>
2018-11-27T19:14:39+02:00 2018-11-27T19:14:39+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=40454#p40454 <![CDATA[Screen Resolution Script]]> Statistics: Posted by dmitriyc — 27 Nov 2018, 18:14


]]>
2018-11-27T00:55:23+02:00 2018-11-27T00:55:23+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=40444#p40444 <![CDATA[Screen Resolution Script]]>
(paste all in empty script and press compile and init, then 'get rez' button)

CODE:

//////////////////////////////&#58;//////////////////////////// Extract rez from usine log           /////////////////////////                                                          // declaration                                                            var refresh,textOut &#58; Tparameter;     var Xout, Yout &#58; Tparameter;     var st   &#58; TStringList;                                                                               // initialisation &#58; create parametersprocedure init;var i &#58; integer;                         begin    refresh &#58;= CreateParam&#40;'get_rez',ptButton&#41;;                                SetIsOutPut&#40;refresh,false&#41;;      textOut &#58;= CreateParam&#40;'text',ptTextField&#41;;  SetIsInPut&#40;textOut,false&#41;;                                 Xout &#58;= CreateParam&#40;'X',ptdataField&#41;;  SetIsInPut&#40;Xout,false&#41;;       Yout &#58;= CreateParam&#40;'Y',ptdataField&#41;;  SetIsInPut&#40;Yout,false&#41;;    end;               // read                          procedure ReadTextFile;      var all &#58; string; var line &#58; string;var position &#58;  integer;   begin  st.create;                        st.clear;       st.loadfromFile&#40;GetApplicationPath + 'LogUsine.log'&#41;;    all &#58;= st.GetCommaText;                                                                                                                                                                       position &#58;=  pos&#40;'Resolution',all&#41;;                                                           if&#40;position>0&#41; then begin     position &#58;= position+11;    SetStringValue&#40;textOut, copy&#40;all, position, 9&#41;&#41;;    line  &#58;= copy &#40;all, position, 4&#41;;     SetValue&#40;Xout, strtoint&#40;line&#41;&#41;;                        line  &#58;= copy &#40;all, position+5, 4&#41;;     SetValue&#40;Yout, strtoint&#40;line&#41;&#41;;   end;   // itrace&#40;position&#41;;                 st.free;         end;         // Callbackprocedure callBack&#40;n&#58;integer&#41;;begin     if n=0  then   ReadTextFile;end;

Statistics: Posted by 23fx23 — 26 Nov 2018, 23:55


]]>
2018-11-26T21:12:16+02:00 2018-11-26T21:12:16+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=40440#p40440 <![CDATA[Screen Resolution Script]]>

Statistics: Posted by nay-seven — 26 Nov 2018, 20:12


]]>
2018-11-24T18:14:08+02:00 2018-11-24T18:14:08+02:00 https://brainmodular.org/forums/viewtopic.php?t=6326&p=40432#p40432 <![CDATA[Screen Resolution Script]]>
Was wondering if there was a script or something to get my current screen resolution and preferably spit it out as a numerical output?

Statistics: Posted by dmitriyc — 24 Nov 2018, 17:14


]]>