Search found 631 matches

by haichen
27 Dec 2022, 09:46
Forum: Ask for Help (v2)
Topic: v2: How to assign the continuation section with "variable b" to "variable a"? Topic is solved
Replies: 6
Views: 772

Re: v2: How to assign the continuation section with "variable b" to "variable a"? Topic is solved

Code: Select all

var3 :=
( LTrim
    "line1:  " var1
	"
	line2: " var2
)

Code: Select all

var3 :=
( LTrim
    "line1:  " var1
	"
	"
	"line2: " var2
)

Code: Select all

p:="`n"
var3 :=
( LTrim
    "line1:  " var1
	p
     "line2: " var2
)
or

Code: Select all

var1 := "text1`n"
by haichen
27 Dec 2022, 06:31
Forum: Ask for Help (v2)
Topic: v2: How to assign the continuation section with "variable b" to "variable a"? Topic is solved
Replies: 6
Views: 772

Re: v2: How to assign the continuation section with "variable b" to "variable a"? Topic is solved

Hi 6Tom,
your whole continuation area is just text. Your inner quotation marks do not separate variables, but are also just text.
This one works:

Code: Select all

var1 := "text1"
var2 := "text2"
var3 :=
( LTrim
    "line1:  " var1
    "`nline2: " var2
)
MsgBox(var3)
by haichen
26 Nov 2022, 11:29
Forum: Ask for Help (v2)
Topic: error with use get
Replies: 6
Views: 677

Re: error with use get

Thank you for this further explanation.
by haichen
26 Nov 2022, 09:49
Forum: Ask for Help (v2)
Topic: error with use get
Replies: 6
Views: 677

Re: error with use get

` is a special sign. With the keyboard it appears only after entering another character. This is exactly why the first three characters are shown correctly.
Try this:

Code: Select all

^+k::
{
    Send  "`````` kotlin {enter}`````` "
}
Result:
```kotlin
```
by haichen
31 Oct 2022, 14:38
Forum: Ask for Help (v1)
Topic: How can I generate a HMAC SHA-1 hash
Replies: 2
Views: 349

Re: How can I generate a HMAC SHA-1 hash

Wow!
Thank you very much. Although I don't think I will understand. Great. Super.
I want to use it to recreate the Google authenticator.
by haichen
31 Oct 2022, 10:09
Forum: Ask for Help (v1)
Topic: How can I generate a HMAC SHA-1 hash
Replies: 2
Views: 349

How can I generate a HMAC SHA-1 hash

I have difficulties to generate a hash HMAC SHA-1 with our scripts e.g. Github ....: https://github.com/jNizM/AHK_CNG Forum .....: https://www.autohotkey.com/boards/viewtopic.php?f=6&t=23413 On the page https://www.liavaag.org/English/SHA-Generator/HMAC/ I succeed with the following values: Input : ...
by haichen
09 Oct 2022, 10:55
Forum: Scripts and Functions (v1)
Topic: CNG (Cryptography API: Next Generation)
Replies: 101
Views: 64200

Re: CNG (Cryptography API: Next Generation)

I am trying to recreate the Google Authenticator. The core is a hmac sha-1 hash. Unfortunately these pages here always show different results than https://github.com/jNizM/AHK_CNG/blob/master/src/v1.1_deprecated/functions/bcrypt_sha1_hmac.ahk Since I think jNizM results are correct, I'm probably mis...
by haichen
01 Oct 2022, 00:47
Forum: Ich brauche Hilfe
Topic: Chrome Bookmarks zwischen speichern
Replies: 12
Views: 1225

Re: Chrome Bookmarks zwischen speichern

Oooh, Sorry. Habe ich tatsächlich falsch verstanden. Mit dem folgenden klappt es bei mir. Einen Link im Lesezeichen-Manager anklicken und dann ^F8: F8::FileAppend, % Clipboard "`n", cpa.txt ^F8:: FileRead, urilist, cpa.txt Loop, parse, urilist, `n, `r ; { clipboard := A_LoopField send ^v ;sleep,600 ...
by haichen
30 Sep 2022, 02:37
Forum: Ich brauche Hilfe
Topic: Chrome Bookmarks zwischen speichern
Replies: 12
Views: 1225

Re: Chrome Bookmarks zwischen speichern

Hi Nussbeisser, auch wenn du aus einer Textdatei per Hand mehrere Links kopierst und bei Chrome in die Adresszeile einfügst, wird das nicht funktionieren. Das liegt nicht an Autohotkey. Das macht der Browser so einfach nicht. Nur wenn Du jede Zeile einzeln kopierst und einfügst wird jedesmal ein Tab...
by haichen
29 Sep 2022, 09:19
Forum: Ich brauche Hilfe
Topic: Chrome Bookmarks zwischen speichern
Replies: 12
Views: 1225

Re: Chrome Bookmarks zwischen speichern

Hi Nussbeisser, wenn Du Deinen Bookmark in einer Datei speicherst, hat er kein Absatzzeichen am Ende. Wenn Du dann noch ein Bookmark anhängst wird das ohne Absatz angehängt. STRG+C, STG+V, Fileappend und Clipboard(ALL) machen genau das, was sie sollen. Sie kopieren/speichern nur das, was Du ausgewäh...
by haichen
06 Sep 2022, 09:28
Forum: Other Utilities & Resources
Topic: change file type association with SetUserFTA
Replies: 2
Views: 2498

Re: change file type association with SetUserFTA

Thanks for the hints. I had tried the DISM import without success. Unfortunately it does not work. I read somewhere that this works once with a newly set up Windows. I have not tested the GPO yet. SetUserFTA.exe .pdf AcroExch.Document.DC works immediately :-) Windows 10 Pro 21H2 10.0.19044.1949 Auto...
by haichen
05 Sep 2022, 10:00
Forum: Scripts and Functions (v2)
Topic: [V2] V2GuiCreator
Replies: 6
Views: 2553

Re: [V2] V2GuiCreator

I don't have time to try it out at the moment, but thanks for this. :-)
by haichen
04 Sep 2022, 11:06
Forum: Other Utilities & Resources
Topic: change file type association with SetUserFTA
Replies: 2
Views: 2498

change file type association with SetUserFTA

Recently I tried to bind pdf directly (commandline, Windows 10) to Adobe Reader. Without success. Only via the properties of a pdf file or the settings for the default apps it is possible to change the program association. With : ASSOC .pdf .pdf=AcroExch.Document.DC ftype .pdf=AcroExch.Document.DC="...
by haichen
28 Aug 2022, 10:13
Forum: Ask for Help (v1)
Topic: How to display ResponseText in UTF-8 format? Topic is solved
Replies: 6
Views: 1815

Re: How to display ResponseText in UTF-8 format? Topic is solved

And here is the code for AutoHotkey V2. whr := ComObject("WinHttp.WinHttpRequest.5.1") whr.Open("GET", "http://some/url", true) whr.Send() whr.WaitForResponse() arr := Whr.responseBody pData := NumGet(ComObjValue(arr)+8 +A_PtrSize,0,"UPtr") length := (arr.MaxIndex() - arr.MinIndex()) + 1 response :=...
by haichen
28 Aug 2022, 06:40
Forum: Scripts and Functions (v2)
Topic: [V2] V2GuiCreator
Replies: 6
Views: 2553

Re: [V2] V2GuiCreator

Is there a V2 version of Autoxywh yet?
by haichen
20 Mar 2022, 12:57
Forum: Ask for Help (v2)
Topic: Help with compiling a V2 script.
Replies: 3
Views: 676

Re: Help with compiling a V2 script.

Hi Tac, VirusTotal shows:
"39 security vendors and no sandboxes flagged this file as malicious"
I have never seen so many false positives on VirusTotal before.
Please check if the download "Ahk2Exe v1.1.34.00_Beta_9b" is corrupted.
by haichen
20 Mar 2022, 09:07
Forum: Scripts and Functions (v1)
Topic: FormatBytes()
Replies: 31
Views: 14135

Re: FormatBytes()

Does this help? n:=9223372036854775807 ; B = 7,99 EB ;n:=200 x:= FormatBytes(n) m:= FormatStringToByte(x) tooltip, % n " B = " x " = " m " B" sleep,4000 return FormatStringToByte(unitstrg){ Units := {B:0, Bytes:0, KB:10, MB:20, GB:30,TB:40, PB:50, EB:60} RegExMatch(unitstrg, "im)(\d+,?\d{0,})\s{0,}(...
by haichen
27 Feb 2022, 15:20
Forum: Scripts and Functions (v1)
Topic: DLFile - 2022/02/27
Replies: 13
Views: 1699

Re: DLFile - 2022/02/27

"Yikes! If you can confirm it is from this script"
Oh I'm sorry, I didn't mean to imply that in any way. There's no connection whatsoever.
by haichen
27 Feb 2022, 13:02
Forum: Scripts and Functions (v1)
Topic: DLFile - 2022/02/27
Replies: 13
Views: 1699

Re: DLFile - 2022/02/27

My computer just crashed with a "system_service_exception".... Runs again.
Basically I don't care. You have created this great tool. I would love an example for V1. If you want to include it in the class, I would find this also wonderful.
by haichen
27 Feb 2022, 12:37
Forum: Scripts and Functions (v1)
Topic: DLFile - 2022/02/27
Replies: 13
Views: 1699

Re: DLFile - 2022/02/27

That's great. I managed to start several downloads in a row for v2. Maybe you could include processing a list or array. No matter if for v1 or v2.

Go to advanced search