Search found 148 matches

by hd0202
15 Dec 2018, 12:41
Forum: Ask For Help
Topic: Decoding Base64 image failed Topic is solved
Replies: 8
Views: 1176

Re: Decoding Base64 image failed Topic is solved

after dllcall check errorlevel and have a look at the help -> dllcall

Hubert
by hd0202
14 Dec 2018, 09:47
Forum: Ask For Help
Topic: Decoding Base64 image and adding to GUI failed Topic is solved
Replies: 22
Views: 2515

Re: Decoding Base64 image and adding to GUI failed Topic is solved

CreateFileA() is for 32-bit systems
CreateFileW() is for 64-bit systems - you seems to have such one

Hubert
by hd0202
14 Dec 2018, 06:58
Forum: Ask For Help
Topic: Help is amazing
Replies: 2
Views: 482

Re: Help is amazing

is there anybody who understands what he is asking ?
by hd0202
14 Dec 2018, 06:54
Forum: Ask For Help
Topic: Decoding Base64 image and adding to GUI failed Topic is solved
Replies: 22
Views: 2515

Re: Decoding Base64 image and adding to GUI failed Topic is solved

I think filename must be full qualified path for use in dllcall
and you must use CreateFileW for 64-bit systems

Hubert
by hd0202
14 Dec 2018, 06:48
Forum: Ask For Help
Topic: Decoding Base64 image failed Topic is solved
Replies: 8
Views: 1176

Re: Decoding Base64 image failed Topic is solved

here is my version (not tested if input is not multiple of 4): Base64Char := "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" Base64Index(c) { Global Base64Char return InStr(Base64Char, c, true) - 1 } Base64Decode(str, ByRef var) { Bytes := 1 loop, % strlen(str) / 4 { buffer := sub...
by hd0202
14 Dec 2018, 03:46
Forum: Ask For Help
Topic: Align code lines on = ?
Replies: 4
Views: 651

Re: Align code lines on = ?

here is my version: vars = ; for test only ( width = 100 height = 20 x = 0 y = 0 ) ; vars := clipboard Arr := StrSplit(vars, "`n", "`r") longest := longestLen(Arr) longestLen(Arr) { maxLen := 0 for each, line in Arr { ; RegExMatch(line, ".*(?==)", m_BeforeEquals) ; if ((currLen := StrLen(m_BeforeEqu...
by hd0202
09 Dec 2018, 04:47
Forum: Ich brauche Hilfe
Topic: neue Variablen in einem Loop erzeugen Topic is solved
Replies: 3
Views: 786

Re: neue Variablen in einem Loop erzeugen Topic is solved

Var_1_%A_Index% := clipboard
Var_2_%A_Index% := clipboard
by hd0202
21 Dec 2017, 01:16
Forum: Ich brauche Hilfe
Topic: Zahlen vergleichen
Replies: 17
Views: 2721

Re: Zahlen vergleichen

Du musst die Zufallszahl für den Vergleich eindeutig machen, indem Du sie mit dem Trennzeichen der Liste umgibst: Liste := " " Loop { Random, Zahl , 1, %bereich% ifnotinstring,liste, % " " zahl " " { Liste := Liste Zahl " " GuiControl,, Display, % Liste eintrag += 1 Zahlen%Eintrag% := Zahl } if eint...
by hd0202
06 Jul 2015, 11:42
Forum: Ask For Help
Topic: most efficient way to compare files and remove lines
Replies: 3
Views: 1348

Re: most efficient way to compare files and remove lines

My suggestion: file1 = %a_scriptdir%\datafile1.txt file2 = %a_scriptdir%\datafile2.txt file3 = %a_scriptdir%\outfile.txt ; ; generate testfiles data1 = ( 123456 123458 ) filedelete, % file1 fileappend, % data1, % file1 data2 = ( 123456,a,b,c,d 123457,e,f,g,h 123458,i,j,k,l 123459,m,n,o,p ) filedelet...
by hd0202
04 Jul 2015, 04:37
Forum: Ask For Help
Topic: Select Item of TreeView
Replies: 4
Views: 1702

Re: Select Item of TreeView

Serach for "Remote Treeview" in this forum and the other forum "www.autohotkey.com"

Hubert
by hd0202
03 Jul 2015, 09:10
Forum: Ask For Help
Topic: Select Item of TreeView
Replies: 4
Views: 1702

Re: Select Item of TreeView

by hd0202
16 Jun 2015, 23:56
Forum: Ask For Help
Topic: Indirect reference Mod() error
Replies: 5
Views: 1499

Re: Indirect reference Mod() error

You must use ":=mod(..." in all three cases --> expression

Hubert
by hd0202
13 Jun 2015, 04:44
Forum: Ask For Help
Topic: Best method for sorting multiple arrays
Replies: 6
Views: 1955

Re: Best method for sorting multiple arrays

Hi, Line 11: defaultColorsArray := {} Is this any different compared to defaultColorsArray := Object() ? No. Line 13: defaultColorsArray[defaultColorsArray_T[A_Index]] := {"X" : colorPickPosition_X[A_Index], "Y" : colorPickPosition_Y[A_Index]} I use an associative array where "color code" is the key...
by hd0202
12 Jun 2015, 03:32
Forum: Ask For Help
Topic: Best method for sorting multiple arrays
Replies: 6
Views: 1955

Re: Best method for sorting multiple arrays

This is my suggestion: ; Select color (MS paint in Windows XP) msPaintSetColorDecimal(r,g,b, colorSameValueHEX:=0x000000) { Static r_last, g_last, b_last Static defaultColorsArray ; Run only first time this function is called. If (!defaultColorsArray.MaxIndex()) { defaultColorsArray_T := [0x000000,0...
by hd0202
10 Jun 2015, 01:15
Forum: Ask For Help
Topic: Best method for sorting multiple arrays
Replies: 6
Views: 1955

Re: Best method for sorting multiple arrays

From your description I get the impression that you use pseudo arrays instead of associative arrays. In the latter you can store all values in one array, you can use the color code as key and have direct access, no shifting or sorting needed.

Hubert
by hd0202
17 May 2015, 09:24
Forum: Ask For Help
Topic: Add Numbers to SubMenu?
Replies: 7
Views: 1592

Re: Add Numbers to SubMenu?

This is my suggestion: prevchar = ind = 0 Loop, parse, Clipboard, `n, `r, { StringLeft, FirstChar, A_LoopField, 1 if (firstchar <> prevchar and prevchar <> "") { Menu, Mymenu, Add, %prevchar%%a_space%Submenu, :Submenu%prevchar% ind = 0 } if !firstchar break prevchar := firstchar ind++ CurrentChar :=...
by hd0202
17 May 2015, 03:39
Forum: Ask For Help
Topic: Gui with many buttons, when a key is pressed with same initial alphabet, it should not launch rather set focus,Lik Menu
Replies: 5
Views: 1453

Re: Gui with many buttons, when a key is pressed with same initial alphabet, it should not launch rather set focus,Lik

This is my suggestion: n_s = 1 n_t = 5 o_s = 6 o_t = 7 f = 1 Gui, Add, Button, G1 default, Nothing Gui, Add, Button, G2, Nothing Gui, Add, Button, G3, Nothing Gui, Add, Button, G4, Nothing Gui, Add, Button, G5, Nothing Gui, Add, Button, G6, Other Gui, Add, Button, G7, Other Gui, Show return 1: MsgBo...
by hd0202
16 Apr 2015, 03:11
Forum: Ask For Help
Topic: Official Join method or function
Replies: 18
Views: 7027

Re: Official Join method or function

here is a new version with 6 methods, which each use "Join", the method GeekDude provided - and with my extension and "Join2", the original method from the docu: out .= "1a --> " ", ".join(["a", "b", "fish"]) "`n" out .= "1b --> " ", ".join2(["a", "b", "fish"]) "`n" out .= "2a --> " ", ".join("a", "...
by hd0202
16 Apr 2015, 01:15
Forum: Ask For Help
Topic: Official Join method or function
Replies: 18
Views: 7027

Re: Official Join method or function

Do you mean this: MsgBox, % ", ".join(["a", "b", "fish"]) MsgBox, % ", ".join("a", "c", "fish") array := ["a", "d", "fish"] MsgBox, % ", ".join(array) Join(s,p*){ static _:="".base.Join:=Func("Join") for k,v in p { if isobject(v) for k2, v2 in v o.=s v2 else o.=s v } return SubStr(o,StrLen(s)+1) } H...
by hd0202
15 Apr 2015, 11:41
Forum: Ask For Help
Topic: [solved]how to search for via routes when there are no direc
Replies: 60
Views: 13391

Re: [unsolved]how to search for via routes when there are no

I have changed your code and marked the changed/inserted lines with "; hd": Loop, %A_ScriptDir%\*.* { if A_loopfilename contains _.txt FileList = %FileList%%A_LoopFileName%`n } Sort, FileList, R ; The R option sorts in reverse order. See Sort for other options. Loop, parse, FileList, `n { if A_LoopF...

Go to advanced search