Search found 153 matches

by hd0202
03 May 2020, 03:21
Forum: Ask For Help
Topic: Need Help with an Idea of an Sorting script
Replies: 5
Views: 442

Re: Need Help with an Idea of an Sorting script

if you do not want to loose the first website of each domain: :D ; FileRead domains, domains.txt Files := {} Loop Parse, % domains, `n, `r { RegExMatch(A_LoopField, "@\K.*", domain) if Files.HasKey(domain) Files[domain].WriteLine(A_LoopField) else { Files[domain] := FileOpen(domain ".txt", "a") File...
by hd0202
27 Mar 2020, 01:10
Forum: Ask For Help
Topic: Capturing ERRORLEVEL from 8 processes launched with Run
Replies: 2
Views: 313

Re: Capturing ERRORLEVEL from 8 processes launched with Run

To capture the errorcode of an external process you must use RunWait . In that way your processes run sequentially what you do not want (1000 instead of 8). First possibility I see is: run 1 to 8 different named AutoHotkey scripts of equal function, but using different named variables and filenames,...
by hd0202
07 Mar 2020, 04:42
Forum: Ask For Help
Topic: "if variable <>" doesn't work
Replies: 4
Views: 421

Re: "if variable <>" doesn't work

Why is it true when col = 0x2C6750? :shock: Why does "=" work without brackets but not "<>"? ; if (col <> 0x2C6750) or (col <> 0x244238) or (col <> 0x255743) is always true a variable "col" with a value of "0x2C6750" is false in the first condition and is true in the second and the third condition;...
by hd0202
06 Mar 2020, 02:05
Forum: Ask For Help
Topic: "if variable <>" doesn't work
Replies: 4
Views: 421

Re: "if variable <>" doesn't work

If (Expression) { Statements } ... Loop { ... } Until Expression PixelGetColor, col,125,595 ,rgb Clipboard := col ; if (col <> 0x2C6750) or (col <> 0x244238) or (col <> 0x255743) ; if expression, but it is always true if (col <> 0x2C6750) and (col <> 0x244238) and (col <> 0x255743) {Clipboard := co...
by hd0202
10 Feb 2020, 11:53
Forum: Ask For Help
Topic: connect to CryptoTerm via COM
Replies: 0
Views: 230

connect to CryptoTerm via COM

I try to connect to CryptoTerm (IBM 3270 terminal emulator) via COM_CreateObject("CryptoTermCOM.tn3270") like shown in helpfile and on webpage and I get return address 0 with errorlevel 0 -> no connection. I found that the registered "CryptoTermCOM.dll" only contains registration modules while the A...
by hd0202
20 Jan 2020, 09:14
Forum: Scripts and Functions
Topic: Touch Screen Keyboard
Replies: 6
Views: 1618

Re: Touch Screen Keyboard

@burque505 I had similar problems with win 8.1 on desktop. I added

Code: Select all

gui, -dpiscale
and changed the height in

Code: Select all

Gui, Add, Tab3, x935 y0 w283 h250 BackgroundTrans Left Buttons -Wrap, .|.|.|.
; to
Gui, Add, Tab3, x935 y0 w283 h300 BackgroundTrans Left Buttons -Wrap, .|.|.|.
Hubert
by hd0202
27 Dec 2019, 01:50
Forum: Ich brauche Hilfe
Topic: Fileread, Sort funktioniert nicht
Replies: 4
Views: 716

Re: Fileread, Sort funktioniert nicht

Du versuchst, ein Array-Object zu sortieren, das geht so nicht, ist aber auch nicht nötig

Code: Select all

SetWorkingDir %A_ScriptDir%
FileRead, AusgabeVar, KB-Suchbilder.txt

sort, AusgabeVar, CL  D|

FileAppend, %AusgabeVar%, KB-Suchbilder1.txt
return
Hubert
by hd0202
21 Dec 2019, 04:53
Forum: Ich brauche Hilfe
Topic: Überprüfen, ob der Inhalt der Variable mit einem der Elemente aus der Liste übereinstimmt Topic is solved
Replies: 4
Views: 725

Re: Überprüfen, ob der Inhalt der Variable mit einem der Elemente aus der Liste übereinstimmt Topic is solved

Code: Select all

mynumber := 7
myname := "ahk"
mylist := ",abc,xyz,klm,jkl,ahke,asd,"	; komma vorne einfuegen
if (mynumber > 5) &&  !inStr(mylist, "," myname ",")	; mit kommas suchen
MsgBox, YES
Else
MsgBox, NO
Hubert
by hd0202
13 Dec 2019, 08:27
Forum: Ask For Help
Topic: Understanding Associative arrays
Replies: 3
Views: 409

Re: Understanding Associative arrays

Code: Select all

; msgbox, contacts[%array%]??????????
msgbox, % contacts[array]
Hubert
by hd0202
07 Dec 2019, 13:50
Forum: Ich brauche Hilfe
Topic: cT active aid - HotStrings - Script funktioniert nicht
Replies: 5
Views: 2966

Re: cT active aid - HotStrings - Script funktioniert nicht

ich habe dein script unter der version 1.0.47.06 ausgeführt (allerdings ohne CT active aid) und folgende 3 Zeilen sind okay:

Code: Select all

dat := % AddMonth(A_YYYY A_MM,-5)
dat := AddMonth(A_YYYY A_MM,-5)
dat = % AddMonth(A_YYYY A_MM,-5)
Hubert
by hd0202
26 Nov 2019, 02:36
Forum: Ask For Help
Topic: Passing variables to function
Replies: 2
Views: 335

Re: Passing variables to function

as the msgbox command is in a function you must pass the variable as parameter or as global

Hubert
by hd0202
26 Nov 2019, 02:13
Forum: Ask For Help
Topic: Select Most Recent File in a Folder Topic is solved
Replies: 7
Views: 699

Re: Select Most Recent File in a Folder Topic is solved

from the docu: Built-in Variables A number of useful variables are built into the program and can be referenced by any script. With the exception of Clipboard, ErrorLevel, and command line parameters, these variables are read-only; that is, their contents cannot be directly altered by the script. Hu...
by hd0202
08 Nov 2019, 01:16
Forum: Ask For Help
Topic: FileSelectFile(Save) on Read-Only Files Topic is solved
Replies: 24
Views: 2663

Re: FileSelectFile(Save) on Read-Only Files Topic is solved

In my opinion you need not know if the file is readonly ! You want to rename it in any case, readonly or not. Therefore you do not need to get to the second child window, you can modify your script to reach your goal with one ENTER. And I suggest to not use the LBUTTON hotkey so that you can easy br...
by hd0202
07 Nov 2019, 14:10
Forum: Ask For Help
Topic: FileSelectFile(Save) on Read-Only Files Topic is solved
Replies: 24
Views: 2663

Re: FileSelectFile(Save) on Read-Only Files Topic is solved

You are one msgbox too late with your hotkey. With the first msgbox, EDIT1 contains the name of your selected file, if it already exists, and you change the fileattribute to -R, even when it is alredy -R. Sorry for my incorrect reply, I try to make it clear: You are one window too late with your ho...
by hd0202
07 Nov 2019, 03:15
Forum: Ask For Help
Topic: FileSelectFile(Save) on Read-Only Files Topic is solved
Replies: 24
Views: 2663

Re: FileSelectFile(Save) on Read-Only Files Topic is solved

but am I doing something wrong in this code? NO, the problem is your handling ! You are one msgbox too late with your hotkey. With the first msgbox, EDIT1 contains the name of your selected file, if it already exists, and you change the fileattribute to -R, even when it is alredy -R. You can even t...
by hd0202
06 Nov 2019, 11:54
Forum: Ask For Help
Topic: FileSelectFile(Save) on Read-Only Files Topic is solved
Replies: 24
Views: 2663

Re: FileSelectFile(Save) on Read-Only Files Topic is solved

sorry, I misunderstood the problem. Add the following hotkey to your script to change the attribute: #j:: ControlGetText, ifield , Edit1, choose any file ; msgbox, % ifield FileSetAttrib,-R,% a_scriptdir "\" ifield ; FileGetAttrib,attr,% a_scriptdir "\" ifield ; msgbox, % attr return When you select...
by hd0202
04 Nov 2019, 01:48
Forum: Ask For Help
Topic: trying to find name for COM Object for this application
Replies: 13
Views: 2837

Re: trying to find name for COM Object for this application

look for a line like

Code: Select all

??? := Com???("???.application")
Hubert
by hd0202
04 Nov 2019, 01:44
Forum: Ask For Help
Topic: FileSelectFile(Save) on Read-Only Files Topic is solved
Replies: 24
Views: 2663

Re: FileSelectFile(Save) on Read-Only Files Topic is solved

from the docu, modified

Code: Select all

FileGetAttrib, Attributes, % selectedfile
if InStr(Attributes, "R")
    MsgBox The file is read-only.
Hubert
by hd0202
04 Nov 2019, 00:54
Forum: Ask For Help
Topic: Need Help with a Looping a script (beginner)
Replies: 2
Views: 1184

Re: Need Help with a Looping a script (beginner)

^NumpadEnter:: ; Ctrl+numpadEnter hotkey loop { SendRaw % MyRange.Cells(CellNumber).Text ; Send the current cell specified by 'CellNumber' CellNumber++ ; Increase 'CellNumber' by one if (CellNumber > CellCount) { ; If 'CellNumber' is greater than the total amount of cells... MsgBox, 64, Info, Finis...

Go to advanced search