[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qgis-developer
Subject:    [QGIS-Developer] Opening the last processing task via script
From:       Bourdon,_Jean-François_(DIF)_via_QGIS-Developer <qgis-dev
Date:       2022-08-25 19:33:34
Message-ID: QB1PR01MB2948A4647D94DEBD68914BEFB3729 () QB1PR01MB2948 ! CANPRD01 ! PROD ! OUTLOOK ! COM
[Download RAW message or body]

[Intranet logo]
Hi,

I often have to run the same processing task multiple time, but with some p=
arameters changed. Currently, I must open the History (Processing -> Histor=
y or Ctrl-Alt-H) and double-click on the last task. In order to save me... =
one click... I was wondering if it was possible to open via a script the la=
st processing task launched in order to make a tool button. I know that the=
 history itself is stored in the processing.log file inside the user profil=
e but don't know how to, if possible at all, open a pre-filled processing w=
indow. Also, I don't want to launch the task with qgis_process.exe because =
I want to manually edit some parameters.

I know, I know. All this trouble to save one click... but I'll learn someth=
ing!
Thanks for any help

Jean-Fran=E7ois Bourdon, ing.f.
Analyste en t=E9l=E9d=E9tection
Direction des inventaires forestiers
Minist=E8re des For=EAts, de la Faune et des Parcs
5700, 4e Avenue Ouest, local A-108
Qu=E9bec (Qu=E9bec) G1H 6R1
T=E9l=E9phone : 418 627-8669, poste 704304
jean-francois.bourdon@mffp.gouv.qc.ca
mffp.gouv.qc.ca<http://www.mffp.gouv.qc.ca/accueil.jsp>


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR-CA" link="#0563C1" vlink="#954F72">
<img alt="Intranet logo" \
src="https://mffp.gouv.qc.ca/documents/ministere/piv/mffp.png"> <div>
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I often have to run the same processing task multiple time, but \
with some parameters changed. Currently, I must open the History (Processing -&gt; \
History or Ctrl-Alt-H) and double-click on the last task. In order to save me&#8230; \
one click&#8230; I  was wondering if it was possible to open via a script the last \
processing task launched in order to make a tool button. I know that the history \
itself is stored in the <i>processing.log</i> file inside the user profile but don't \
know how to, if possible at all, open a pre-filled processing window. Also, I don't \
want to launch the task with <i>qgis_process.exe</i> because I want to manually edit \
some parameters.<o:p></o:p></p> <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I know, I know. All this trouble to save one click&#8230; but \
I'll learn something!<o:p></o:p></p> <p class="MsoNormal">Thanks for any \
help<o:p></o:p></p> <p class="MsoNormal" style="mso-margin-top-alt:auto"><span \
style="color:black;mso-fareast-language:FR-CA"><o:p>&nbsp;</o:p></span></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto"><b><span \
style="font-size:12.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;mso-fareast-language:FR-CA">Jean-François \
Bourdon, ing.f.</span></b><span \
style="font-size:9.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;mso-fareast-language:FR-CA"><o:p></o:p></span></p>
 <p class="MsoNormal"><b><span \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#2E74B5;mso-fareast-language:FR-CA">Analyste \
en télédétection</span></b><span \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;mso-fareast-language:FR-CA"><br>
 <b><span style="color:#2E74B5">Direction des inventaires forestiers</span></b><br>
<b><span style="color:#2E74B5">Ministère des Forêts, de la Faune et des \
Parcs</span></b><br> <span style="color:#2E74B5">5700, 4<sup>e</sup> Avenue Ouest, \
local A-108</span><br> <span style="color:#2E74B5">Québec (Québec) G1H 6R1</span><br>
<span style="color:#2E74B5">Téléphone : 418 627-8669, poste 704304</span><br>
<b><u><span style="color:#2E74B5">jean-francois.bourdon@mffp.gouv.qc.ca</span></u></b>
 <br>
</span><span style="mso-fareast-language:FR-CA"><a \
href="http://www.mffp.gouv.qc.ca/accueil.jsp"><b><span \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#2E74B5">mffp.gouv.qc.ca</span></b></a></span><span \
style="mso-fareast-language:FR-CA"><o:p></o:p></span></p> <p \
class="MsoNormal"><o:p>&nbsp;</o:p></p> </div>
</div>
</body>
</html>



_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

--===============7128034065499932815==--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic