Search found 157 matches

by blue83
02 Jun 2022, 06:02
Forum: Scripts and Functions (v1)
Topic: RunCMD() v0.97 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.
Replies: 247
Views: 87922

Re: RunCMD() v0.94 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.

Hi @SKAN ,

Can you help me with wait function, I mean how to wait RunCMD for lets say 10 seconds and if is not finished than close it and give msgbox that something is wrong, if is under 10s than everything is fine and script can continue.

Thanks,
blue
by blue83
19 May 2022, 05:58
Forum: Ask for Help (v1)
Topic: PDF to PDF/A
Replies: 3
Views: 402

Re: PDF to PDF/A

Hi @RussF yes, but with use of Autohotkey and for free.

Thank you @mikeyww I am on that trail too with Ghostscript, but some pdfs I can convert, some can not.

I will still look into that topic.

Thank you
blue
by blue83
19 May 2022, 04:26
Forum: Ask for Help (v1)
Topic: PDF to PDF/A
Replies: 3
Views: 402

PDF to PDF/A

Hi,

Can anyone knows how to convert PDF to PDF/A format?

thanks,
blue
by blue83
17 Feb 2022, 11:15
Forum: Scripts and Functions (v1)
Topic: RunCMD() v0.97 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.
Replies: 247
Views: 87922

Re: RunCMD() v0.94 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.

Aha, I see now.
Thank you for tip, you have already that function.

It looks like all I need is little hint.

Thank you
blue
by blue83
17 Feb 2022, 10:56
Forum: Scripts and Functions (v1)
Topic: RunCMD() v0.97 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.
Replies: 247
Views: 87922

Re: RunCMD() v0.94 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.

haha @SKAN , it is not about .py, you can imagine any use case with cmd, just that can be read line by line trough tooltip in real time

blue
by blue83
16 Feb 2022, 02:58
Forum: Scripts and Functions (v1)
Topic: RunCMD() v0.97 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.
Replies: 247
Views: 87922

Re: RunCMD() v0.94 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.

Hi @SKAN ,

Can you help me and start lets say test.py file, but read output line by line in real time trough tooltip?

Thank you,
blue
by blue83
24 Dec 2021, 08:06
Forum: Scripts and Functions (v1)
Topic: CreateFormData - Create "multipart/form-data" for http post (Updated:2019-01-13)
Replies: 47
Views: 28482

Re: CreateFormData - Create "multipart/form-data" for http post (Updated:2019-01-13)

Hi,

When I put this code it works great.

Code: Select all

objParam := { files : ["test1.pdf","test2.pdf"] }
But if I put this code then I have a problem, can you help me?

Code: Select all

file1 := "test1.pdf"
file2 := "test2.pdf"
newvar := file1 . "," . file2
objParam := { files : [newvar] }
by blue83
08 Jun 2021, 00:53
Forum: Scripts and Functions (v1)
Topic: RunCMD() v0.97 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.
Replies: 247
Views: 87922

Re: RunCMD() v0.94 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.

Hi @SKAN ,

Thank you for your help.

Acctually all the time I was retyping my code and your function, but finally problem was im my .exe file.

But without you to open my eyes I would still have this problem :)

Thank you!

Blue
by blue83
07 Jun 2021, 16:46
Forum: Scripts and Functions (v1)
Topic: RunCMD() v0.97 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.
Replies: 247
Views: 87922

Re: RunCMD() v0.94 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.

Hi,

Can you help me.

This is working fine

Code: Select all

avar := RunCmd("" A_ScriptDir "\Upload.exe", "" A_ScriptDir "\" folder1 "", "UTF-8")
but this code with 2 subfolders does not

Code: Select all

avar := RunCmd("" A_ScriptDir "\Upload.exe", "" A_ScriptDir "\" folder1 "\" folder2 "", "UTF-8")
by blue83
14 May 2021, 02:25
Forum: Scripts and Functions (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 453863

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

Hi kagato , Thank you for your reply. Actually I am asking can CRSF token replace JSESSIONID in API request and can you post that example? I am trying connect with API on active session in Chrome, I have all the cookies (document.cookies;), but JSESSIONID can not be extracted because it is HTTP only...
by blue83
12 May 2021, 03:38
Forum: Scripts and Functions (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 453863

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

Thank you @teadrinker ,

Do you know how to get JSESSIONID which is Httponly and secure?

Or how to handle API request with CSRF token instead of JSESSIONID if it is possible?

Thanks
Blue
by blue83
11 May 2021, 08:24
Forum: Scripts and Functions (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 453863

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

Hi,

Does anyone knows how to get session from Chrome for XMLHttpRequest like on IE?

Thank you
by blue83
27 Feb 2021, 12:55
Forum: Ask for Help (v1)
Topic: read file in binary mode
Replies: 11
Views: 1151

Re: read file in binary mode

Thank you @Smile_ for clarification.

I was 99% sure that this is the reason, but I will try to find another way.

At the end this is good post for someone else with same problem.

Blue
by blue83
27 Feb 2021, 09:24
Forum: Ask for Help (v1)
Topic: API key protect
Replies: 4
Views: 450

Re: API key protect

Thank you @mikeyww .

I will try that way.
by blue83
27 Feb 2021, 07:05
Forum: Ask for Help (v1)
Topic: read file in binary mode
Replies: 11
Views: 1151

Re: read file in binary mode

Aha ok :)
by blue83
27 Feb 2021, 06:56
Forum: Ask for Help (v1)
Topic: read file in binary mode
Replies: 11
Views: 1151

Re: read file in binary mode

When I put variable in msgbox.
by blue83
27 Feb 2021, 06:46
Forum: Ask for Help (v1)
Topic: read file in binary mode
Replies: 11
Views: 1151

Re: read file in binary mode

I am trying upload file using API.

For now my biggest problem is when I read that file like you and @Smile_ said I get some strange Chinese sings?!?

Blue
by blue83
27 Feb 2021, 06:23
Forum: Ask for Help (v1)
Topic: read file in binary mode
Replies: 11
Views: 1151

Re: read file in binary mode

Hi, Thank you for answers, but still I am missing something. In Python code is: file = open("Capture.jpg", 'rb') print(file) Output is: <_io.BufferedReader name='Capture.jpg'> That works, but I am trying to translate that code into ahk. Caputre.jpg has 49KB, but after uploading with API has 50 KB, a...

Go to advanced search