Search found 140 matches

by hd0202
08 Nov 2019, 01:16
Forum: Ask For Help
Topic: FileSelectFile(Save) on Read-Only Files Topic is solved
Replies: 24
Views: 992

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: 992

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: 992

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: 992

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: 532

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: 992

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: 173

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...
by hd0202
31 Oct 2019, 07:11
Forum: Ich brauche Hilfe
Topic: Externe Software suchen und anwenden
Replies: 28
Views: 2156

Re: Externe Software suchen und anwenden

schon mal an RunWait gedacht ?
Hubert
by hd0202
30 Oct 2019, 01:03
Forum: Ask For Help
Topic: trying to find name for COM Object for this application
Replies: 13
Views: 532

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

you say you use ESPRIT CAM at work. Do you have access to sample programs written in VBA (Microsoft Visual Basic for Applications) ? They must use this code for connection.

Hubert
by hd0202
22 Oct 2019, 00:47
Forum: Ask For Help
Topic: How to remove FF or bold up arrow sign from .txt file
Replies: 3
Views: 232

Re: How to remove FF or bold up arrow sign from .txt file

Code: Select all

FileRead, String, result.txt
stringreplace, string, string, % chr(12), , all   ; <===
Hubert
by hd0202
19 Oct 2019, 05:36
Forum: Ask For Help
Topic: Help - Using Selection from TreeView
Replies: 4
Views: 298

Re: Help - Using Selection from TreeView

you missed (at least) one comment in my version:

Code: Select all

F1:: Gui, Show, xCenter yCenter, Actions

Send {Click}
Sleep 100
Send {Click}
return	; <== line missing
Hubert
by hd0202
19 Oct 2019, 03:38
Forum: Ich brauche Hilfe
Topic: Fehlerbehandlung von .ini Datei Topic is solved
Replies: 2
Views: 261

Re: Fehlerbehandlung von .ini Datei Topic is solved

entweder simple format

Code: Select all

if 1_Test != ERROR
oder expression format

Code: Select all

if (1_Test != "ERROR")
Hubert
by hd0202
12 Oct 2019, 11:23
Forum: Ich brauche Hilfe
Topic: Ordner Suchen
Replies: 7
Views: 502

Re: Ordner Suchen

die lange Zeit entsteht durch die Rekursion "RD", dadurch wird das Laufwerk "P" vollständig durchsucht (alle Ordner und Unterordner und ... und ...) genügt es nicht, nach der Projektnummer zu suchen ? F9:: Loop Files, P:\2551-*, D { MsgBox, 4, , Dateiname = %A_LoopFileFullPath%`n`nWeiter? IfMsgBox, ...
by hd0202
12 Oct 2019, 04:27
Forum: Ask For Help
Topic: Regex Issues
Replies: 5
Views: 308

Re: Regex Issues

the result of my tests:

the regex tester accepts the "^" as start of a(ny) line of a multiline pattern

AutoHotkey accepts the "^" as start of the haystack of a multiline pattern, even with the "m"option

Hubert
by hd0202
09 Oct 2019, 01:24
Forum: Ask For Help
Topic: AHK Webpage Search
Replies: 11
Views: 1081

Re: AHK Webpage Search

to avoid empty message boxes:

Code: Select all

...
ClipWait,2
If CheckStatus(Clipboard)
	MsgBox % CheckStatus(Clipboard)
Hubert
by hd0202
03 Oct 2019, 07:13
Forum: Ask For Help
Topic: remove all tabs from clipboard headache
Replies: 6
Views: 273

Re: remove all tabs from clipboard headache

without "

Code: Select all

StringReplace, clipboard, clipboard, `t, , All   ;trying to remove tabs
Hubert
by hd0202
25 Sep 2019, 23:05
Forum: Ask For Help
Topic: Help - Using Selection from TreeView
Replies: 4
Views: 298

Re: Help - Using Selection from TreeView

if you want help from this forum, you should show your complete code or a working "basic concept" of your code at least ! Please look at my comments marked with "<==" in the following running "basic concept": Gui, Add, TreeView, gAction ; <== line missing, not even a gui defined !! P1 := TV_Add("Wes...
by hd0202
22 Sep 2019, 23:55
Forum: Ich brauche Hilfe
Topic: ListView, Sortierung nach verschiedenen Kriterien Topic is solved
Replies: 1
Views: 188

Re: ListView, Sortierung nach verschiedenen Kriterien Topic is solved

füge ein G-Label zur Listview hinzu, z.B: gHeader und ergänze die folgende Routine: Header: if (a_guievent = "colclick") and (a_eventinfo = 5) { LV_ModifyCol(6, "Sort") LV_ModifyCol(5, "Sort") } if (a_guievent = "colclick") and (a_eventinfo = 6) { LV_ModifyCol(5, "Sort") LV_ModifyCol(6, "Sort") } re...
by hd0202
20 Sep 2019, 01:00
Forum: Ask For Help
Topic: A problem with nested for-loop
Replies: 3
Views: 279

Re: A problem with nested for-loop

here is my suggestion for your script, please have a look at my comments inside, one is very important: ModificationTimeOld := {} ModificationTimeNew := {} Files1 := ["foo.txt", "bar.txt", "baz.txt"] Files2 := ["foo.png", "bar.png", "baz.png"] for Index, File in Files1 { FileGetTime, TimeNew, % File...
by hd0202
17 Sep 2019, 22:55
Forum: Ask For Help
Topic: Replace string if string exists
Replies: 8
Views: 590

Re: Replace string if string exists

Use the variable "Count" after "StrReplace( ... )" to decide if you delete the file and recreate it.

Hubert

Go to advanced search