Search found 84 matches

by Pilu
17 Jan 2023, 06:06
Forum: Ask for Help (v1)
Topic: loop folder and copy file
Replies: 1
Views: 167

loop folder and copy file

Hi ,

I would like to loop folder and subfolder in "C:\Archive" it contains a lot of subfolder and files. I have a Filename list. I would like to move the file from folder or subfolder if the filename is mached in the list.

Folder: C:\Archive
Listname: FileNameList
Target folder D:\Recreate
by Pilu
26 Oct 2021, 03:32
Forum: Ask for Help (v1)
Topic: Drag and drop from outlook
Replies: 1
Views: 223

Drag and drop from outlook

Hi, How can I drag and drop the attachments from outlook to ahk gui Gui,2: Font, default, Gui,2:Show, x50 y10 w120 h120,%Filename1% Gui,2:add,edit, x10 y10 h100 w100 vF1 +center -VScroll ,Drop file here return 2Guiclose: exitapp 2GuiDropFiles: olApp := ComObjActive("Outlook.Application") try olItem ...
by Pilu
14 Oct 2021, 05:45
Forum: Ask for Help (v1)
Topic: Script code line break
Replies: 1
Views: 263

Script code line break

Hi ,

how can I split the code more row, becouse I have a long row statement and very dificult work with this?

thanks
by Pilu
28 Jul 2021, 01:27
Forum: Ask for Help (v1)
Topic: If instring regex Topic is solved
Replies: 1
Views: 211

If instring regex Topic is solved

Hi I would like check the string, that it contains a criteria. Every criteria structure like this but contains different number and word, but the length is fixed. every time it start with ~ and end with ~. it start with 32 character what contains mixed letter and number, after _ sign and at the end ...
by Pilu
07 May 2021, 09:37
Forum: Ask for Help (v1)
Topic: Gui statusba style modify
Replies: 1
Views: 115

Gui statusba style modify

Hi, Is It possible modify the status bar text color. I can modify the style and background color, but can't the text color . #NoEnv gui Add,Button,w100,Style 0 gui Add,Button,w100,Style 1 gui Add,Button,w100,Style 2 gui Add,Statusbar, -Theme BackgroundBlue gui Show,w500 h200,Statusbar style test ret...
by Pilu
29 Apr 2021, 07:30
Forum: Ask for Help (v1)
Topic: MSSQL Read show gui listview Topic is solved
Replies: 1
Views: 251

MSSQL Read show gui listview Topic is solved

Hi , I try read spcific range from sql and show in gui listview. I have two problem first I can't filter range. exam.: Select Top 10 from dbo.Report Secound how can show in listview this is my script what i tried: Connection_String := "Provider=SQLOLEDB.1;Password=passw;Persist Security Info=True;Us...
by Pilu
31 Mar 2021, 06:18
Forum: Ask for Help (v1)
Topic: If instring, set diferent value Topic is solved
Replies: 4
Views: 289

Re: If instring, set diferent value Topic is solved

Yes after I find the porblem, that the "" and the {} are missing. Thanx all helps.
by Pilu
31 Mar 2021, 04:32
Forum: Ask for Help (v1)
Topic: If instring, set diferent value Topic is solved
Replies: 4
Views: 289

If instring, set diferent value Topic is solved

Hi, I save the folders path in txt file. I read the text file and loop the folders path and do something. Unfortunately I have some folders where every month and every year, the new folder are created. I try to supplement the folder path with the A_year and A_MM if in srting contain specific foldern...
by Pilu
30 Mar 2021, 02:20
Forum: Ask for Help (v1)
Topic: Import macro to outlook
Replies: 0
Views: 137

Import macro to outlook

Hi,

Is it possible that the macro is imported to outlook vba by ahk? I would like change the old modul to the newest automatically if the .bas file is updated.

Thanks the answers
by Pilu
29 Mar 2021, 07:01
Forum: Ask for Help (v1)
Topic: Set date and time format Topic is solved
Replies: 3
Views: 1436

Set date and time format Topic is solved

Hi,
Is it possible change the system date and time format with AHK? Because every users use different Date and time format and it is a problem for my script.
by Pilu
22 Mar 2021, 03:05
Forum: Ask for Help (v1)
Topic: Loop from text file data Topic is solved
Replies: 2
Views: 227

Re: Loop from text file data Topic is solved

This work. #Persistent SetTimer,Check, 50, return Check: { Loop, read , C:\Users\Új szöveges dokumentum.txt ;msgbox %A_LoopReadLine% ;MoveFilesAndFolders(A_LoopReadLine, "C:\Users\igyorffy\Desktop\Test2",, "split,join,") ErrorCount := MoveFilesAndFolders(A_LoopReadLine, "C:\Users\Test2",, "split,joi...
by Pilu
19 Mar 2021, 10:18
Forum: Ask for Help (v1)
Topic: Loop from text file data Topic is solved
Replies: 2
Views: 227

Loop from text file data Topic is solved

Hi I read some folder path from text file. I try run script every path, but I got error and I dont understand why. The loop works with msgbox, but if I use the move files part, it run error. SetTimer, check, 50000 check: Loop, read, C:\Új szöveges dokumentum.txt { ;msgbox %A_LoopReadLine% ErrorCount...
by Pilu
19 Mar 2021, 09:19
Forum: Ask for Help (v1)
Topic: File move and criteria Topic is solved
Replies: 6
Views: 383

Re: File move and criteria Topic is solved

@boiler many thanks
by Pilu
19 Mar 2021, 08:45
Forum: Ask for Help (v1)
Topic: File move and criteria Topic is solved
Replies: 6
Views: 383

Re: File move and criteria Topic is solved

more words,for instance "split" ,"join", "!!"
by Pilu
19 Mar 2021, 08:36
Forum: Ask for Help (v1)
Topic: File move and criteria Topic is solved
Replies: 6
Views: 383

Re: File move and criteria Topic is solved

@boiler thanks your help it works, other question. How can I add more criteria?
by Pilu
19 Mar 2021, 07:50
Forum: Ask for Help (v1)
Topic: File move and criteria Topic is solved
Replies: 6
Views: 383

File move and criteria Topic is solved

Hi, I found the following script what moves the all file from folder to another folder. how can i set if the filename is contain specific word then it dont move. ErrorCount := MoveFilesAndFolders("C:\Test1\*.*", "C:\Test2") if ErrorCount <> 0 MsgBox %ErrorCount% files/folders could not be moved. Mov...
by Pilu
18 Mar 2021, 09:28
Forum: Ask for Help (v1)
Topic: Outlook auto apply access
Replies: 0
Views: 132

Outlook auto apply access

Hi, I use the following script, when i run the script I must select how many min let the access to the outlook for the script. How can I automatically accept the access without time limit. olApp := ComObjActive("Outlook.Application") try olItem := olApp.ActiveWindow.CurrentItem catch ComObjError(fal...
by Pilu
02 Mar 2021, 03:09
Forum: Ask for Help (v1)
Topic: Regex replace accented characters problem
Replies: 2
Views: 314

Regex replace accented characters problem

Hi, I try replace the accented characters from the string, i use this script. https://www.autohotkey.com/boards/viewtopic.php?t=61626 chars := {a:"[áàâǎăãảạäåāąấầẫẩậắằẵẳặǻ]" ,c:"[ćĉčċç]" ,d:"[ďđð]" ,e:"[éèêěĕẽẻėëēęếềễểẹệ]" ,g:"[ğĝġģ]" ,h:"[ĥħ]" ,i:"[íìĭîǐïĩįīỉị]" ,j:"[ĵ]" ,k:"[ķ]" ,l:"[ĺľļłŀ]" ,n:"[...
by Pilu
24 Feb 2021, 07:51
Forum: Ask for Help (v1)
Topic: Create new xml file and write it Topic is solved
Replies: 1
Views: 266

Create new xml file and write it Topic is solved

Hi, Can tell me somebody, how can I create new xml file and write some data to it for example from gui. gui, add, Edit, x5 y10 w100 vtest1, gui, add, Edit, x5 y35 w100 vtest2, gui, add, Edit, x5 y60 w100 vtest3, Gui, add, Button, x5 y90 w70 h20 vsave, Save Gui, show, AutoSize return I don't find exe...
by Pilu
22 Feb 2021, 09:19
Forum: Ask for Help (v1)
Topic: Ignor error and countinu the script
Replies: 2
Views: 157

Ignor error and countinu the script

Hi, I created this script. When I pull the email attachment to the specific folder, it renaming the file. This script run always. In outlook I have lot of subfolder. When I change the subfolder I get error massege. How can I set If I get error massege, ignore the error and countinu the script. becou...

Go to advanced search