Search found 263 matches

by jsong55
07 Jun 2024, 20:03
Forum: Ask for Help (v2)
Topic: CreateFormData file format and name Topic is solved
Replies: 11
Views: 421

Re: CreateFormData file format and name Topic is solved

teadrinker Wow thank you! Powerful coding as usual from you. It worked even better now because the previous version had issues with large files. There were timeouts and errors. Not so for yours. Only 1 slight tweak I made in adding caption to the SAFEARRAY SendDocument(chatId, filePath, caption) { ...
by jsong55
06 Jun 2024, 22:04
Forum: Ask for Help (v2)
Topic: CreateFormData file format and name Topic is solved
Replies: 11
Views: 421

Re: CreateFormData file format and name Topic is solved

@Draken
doesn't help for this case, the file is basically the full name without the slashes when passed to telegram
by jsong55
06 Jun 2024, 10:29
Forum: Ask for Help (v2)
Topic: CreateFormData file format and name Topic is solved
Replies: 11
Views: 421

Re: CreateFormData file format and name Topic is solved

bumping ... anyone has any idea?
by jsong55
04 Jun 2024, 21:36
Forum: Ask for Help (v2)
Topic: CreateFormData file format and name Topic is solved
Replies: 11
Views: 421

CreateFormData file format and name Topic is solved

I originally posted it here - https://www.autohotkey.com/boards/viewtopic.php?f=6&t=7647&p=574014#p574014 Thanks RaptorX for this. Started using with Telegram bot and I realized the files that get sent have the filename of the entire path without the slashes. How to use the actual file name. e.g. re...
by jsong55
04 Jun 2024, 00:00
Forum: Scripts and Functions (v1)
Topic: CreateFormData - Create "multipart/form-data" for http post (Updated:2019-01-13)
Replies: 48
Views: 29864

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

Thanks RaptorX for this. Started using with Telegram bot and I realized the files that get sent have the filename of the entire path without the slashes. How to use the actual file name. e.g. report.txt will be report.txt instead of CUserDocumentsReport this is the SendDocument code url_str := "http...
by jsong55
27 May 2024, 04:16
Forum: Ask for Help (v2)
Topic: Can't seem to turn off the onclipboard change function after toggling it on Topic is solved
Replies: 2
Views: 206

Re: Can't seem to turn off the onclipboard change function after toggling it on Topic is solved

@niCode
Ah thank you for pointing that out. Additionally I needed to add static to ensure multiple BoundFunc are NOT created

as such

Code: Select all

        static Bound_clip_change_fn:=ObjBindMethod(this, "clip_change_fn")
by jsong55
26 May 2024, 21:37
Forum: Ask for Help (v2)
Topic: Can't seem to turn off the onclipboard change function after toggling it on Topic is solved
Replies: 2
Views: 206

Can't seem to turn off the onclipboard change function after toggling it on Topic is solved

on_icon:="C:\Users\user\OneDrive\AHK Scripts\Icon\switch-on.ico" off_icon:="C:\Users\user\OneDrive\AHK Scripts\Icon\switch-off.ico" class MainWin { BuildGui() { global g g := GuiExt() g.SetFont("cBlack s10","Calibri") g.Add("Picture","xm y+0" " w100 h-1" " v" "toggle",off_icon) g["toggle"].OnEvent(...
by jsong55
25 May 2024, 05:24
Forum: Ask for Help (v2)
Topic: FileInstall not working Topic is solved
Replies: 4
Views: 367

Re: FileInstall not working Topic is solved

@TAC109 ah thanks think I got it mixed up.
by jsong55
19 May 2024, 23:16
Forum: Ask for Help (v2)
Topic: FileInstall not working Topic is solved
Replies: 4
Views: 367

Re: FileInstall not working Topic is solved

Thank you 1 works.

though I thought it will be ignored in uncompiled mode. or I read the help files wrongly?
by jsong55
19 May 2024, 21:14
Forum: Ask for Help (v2)
Topic: FileInstall not working Topic is solved
Replies: 4
Views: 367

FileInstall not working Topic is solved

Code: Select all

Run("C:\Users\meuser\OneDrive\AHK\Icon\whatsapp.ico") ; to prove the file exists and the path is correct
FileInstall("C:\Users\meuser\OneDrive\AHK\Icon\whatsapp.ico", A_ScriptDir "\Icons\whatsapp.ico",0)
Simple but just not sure why I get

Error Failed

I'm running it not compiled. Thanks
by jsong55
15 Apr 2024, 05:45
Forum: Ask for Help (v2)
Topic: How to call nested function? Topic is solved
Replies: 15
Views: 712

Re: How to call nested function? Topic is solved

@xMaxrayx thanks for your contribution but the context of my question wasn't clear. And in that context lexikos answer is best and I have marked his :)
by jsong55
14 Apr 2024, 06:27
Forum: Ask for Help (v2)
Topic: How to call nested function? Topic is solved
Replies: 15
Views: 712

Re: How to call nested function? Topic is solved

@rommmcek
try

Code: Select all

MyGui.Click:=Button_Click.Bind()
by jsong55
13 Apr 2024, 19:26
Forum: Ask for Help (v2)
Topic: How to call nested function? Topic is solved
Replies: 15
Views: 712

Re: How to call nested function? Topic is solved

Code: Select all

MyGui.Click := Button_Click
This works. I used this too.
by jsong55
12 Apr 2024, 03:25
Forum: Ask for Help (v2)
Topic: How to call nested function? Topic is solved
Replies: 15
Views: 712

Re: How to call nested function? Topic is solved

@lexikos
Sorry to make you guess. I'll use example code next time I ask the question.
by jsong55
12 Apr 2024, 03:24
Forum: Ask for Help (v2)
Topic: How to call nested function? Topic is solved
Replies: 15
Views: 712

Re: How to call nested function? Topic is solved

Oh Brilliant suggestion. I did just that. Used BoundFunc to attach it to the Gui object as a method.
So now it can be called anywhere.
by jsong55
12 Apr 2024, 02:09
Forum: Scripts and Functions (v1)
Topic: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
Replies: 77
Views: 23063

Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation

@TAC109 can we request a feature to use our own password? Say from a disposable ini file.
by jsong55
12 Apr 2024, 01:54
Forum: Ask for Help (v2)
Topic: How to call nested function? Topic is solved
Replies: 15
Views: 712

Re: How to call nested function? Topic is solved

Thanks! Yes I think my use case is such where I build the gui with a function BuildGui() Then I added a button and have a nested function BtnClicked(*) Now somewhere else in the code I want to run the BtnClicked function, without having to Focus the Control and Send {enter} as the Gui Window may not...
by jsong55
11 Apr 2024, 21:17
Forum: Scripts and Functions (v1)
Topic: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
Replies: 77
Views: 23063

Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation

I go with ScriptGuard as there are some differences in _H vs _L and I don't have time to modify too much code to adjust
by jsong55
11 Apr 2024, 21:09
Forum: Ask for Help (v2)
Topic: How to call nested function? Topic is solved
Replies: 15
Views: 712

How to call nested function? Topic is solved

Code: Select all

fn1()
    {
        fn2()
        {

        }
    }
by jsong55
10 Apr 2024, 00:16
Forum: Scripts and Functions (v1)
Topic: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
Replies: 77
Views: 23063

Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation

Good point but let's not discuss in this thread.. is there a thread to tackle that?

Go to advanced search