Search found 135 matches

by JKnight_xbt33
13 Jul 2021, 09:01
Forum: Ask for Help (v1)
Topic: trouble getting loopfiles to look through and open specific pdfs Topic is solved
Replies: 4
Views: 449

Re: trouble getting loopfiles to look through and open specific pdfs Topic is solved

Thanks @boiler ,
Worked perfectly first time round, now I know how to search for other file types too if needed.
:clap: :clap:

Really appreciated
J
by JKnight_xbt33
13 Jul 2021, 06:17
Forum: Ask for Help (v1)
Topic: trouble getting loopfiles to look through and open specific pdfs Topic is solved
Replies: 4
Views: 449

Re: trouble getting loopfiles to look through and open specific pdfs Topic is solved

Thanks mikeyww , I've tried your script and unfortunately the effect is the same as mine i.e. doesn't open specific pdfs. The script you suggested opens all the pdfs in the directory that is pasted in the messagebox. Since they're hundreds of pdfs in the pasted directory then this wouldn't be ideal....
by JKnight_xbt33
07 Jul 2021, 07:32
Forum: Ask for Help (v1)
Topic: trouble getting loopfiles to look through and open specific pdfs Topic is solved
Replies: 4
Views: 449

trouble getting loopfiles to look through and open specific pdfs Topic is solved

Dear all, i recently posted and managed to get a working script which allows me to loop through and open a specific folder: https://www.autohotkey.com/boards/viewtopic.php?f=76&t=91471 I tried to modify the script for looping through and opening PDF files. I seem to be having trouble translating thi...
by JKnight_xbt33
02 Jul 2021, 09:06
Forum: Ask for Help (v1)
Topic: control choosestring or control choose not working Topic is solved
Replies: 4
Views: 486

Re: control choosestring or control choose not working Topic is solved

Hi,
No unfortunately not. You can see in the print screen the control name ends in ad17.

I just thought the attributes under where it says Visible Text: on windowspy, were controllable in some format
visible text.PNG
visible text.PNG (138.34 KiB) Viewed 434 times
by JKnight_xbt33
02 Jul 2021, 07:13
Forum: Ask for Help (v1)
Topic: control choosestring or control choose not working Topic is solved
Replies: 4
Views: 486

Re: control choosestring or control choose not working Topic is solved

Thanks boiler , When I look at the visible text from window spy it gives the following attributes of this listbox: collapsablePanel1 FormDataLayoutControl I don't know if at all there exists a listbox control for collapsable panels. If there isn't no worries will accept your previous answer and park...
by JKnight_xbt33
01 Jul 2021, 09:53
Forum: Ask for Help (v1)
Topic: control choosestring or control choose not working Topic is solved
Replies: 4
Views: 486

control choosestring or control choose not working Topic is solved

Dear all, I am having trouble getting any of these controls to work. The controlclick works correctly to click in the target control NN field. But it just cant seem to pick and display the item called "Email" in the listbox. The programme I use is called Q-pulse. In the script below you will see I'v...
by JKnight_xbt33
24 Jun 2021, 05:06
Forum: Ask for Help (v1)
Topic: search for a subfolder from its grandparent folder Topic is solved
Replies: 17
Views: 1254

Re: search for a subfolder from its grandparent folder Topic is solved

boiler , Perfect it works and looks through each folder as indicated with the messagebox. I removed the messagebox and it also works. :D I think I know what the issue was at first. In the actual script I had the hotkey F9 instead of F3 because I already use F3 for another script in my day to day wo...
by JKnight_xbt33
23 Jun 2021, 05:24
Forum: Ask for Help (v1)
Topic: search for a subfolder from its grandparent folder Topic is solved
Replies: 17
Views: 1254

Re: search for a subfolder from its grandparent folder Topic is solved

Hi boiler , thanks for the scripts. I tried the second one with inner loop removed, it came up with the message saying folder is not found. I've decided to post the full file path of the real folders I use (for troubleshooting purposes) but I've anonimised the data. I attempted to find the folder 22...
by JKnight_xbt33
14 Jun 2021, 06:07
Forum: Ask for Help (v1)
Topic: search for a subfolder from its grandparent folder Topic is solved
Replies: 17
Views: 1254

Re: search for a subfolder from its grandparent folder Topic is solved

thanks for the advice, I just made my own nested loop using your advice but its still slow. Any tips on what can be improved from below? The first loop has the %folder% variable in place of the parent folder whereas the 2nd loop has it in place of the subfolder. I wasn't sure how to specify looking ...
by JKnight_xbt33
11 Jun 2021, 03:29
Forum: Ask for Help (v1)
Topic: search for a subfolder from its grandparent folder Topic is solved
Replies: 17
Views: 1254

Re: search for a subfolder from its grandparent folder Topic is solved

Thanks @boiler ,
I've tried your suggested script and it still seems quite slow.

I'll accept the answer because it works in principle but if anyone ever looks back on this post they need to be aware of the speed limitation.

best
J
by JKnight_xbt33
09 Jun 2021, 10:15
Forum: Ask for Help (v1)
Topic: search for a subfolder from its grandparent folder Topic is solved
Replies: 17
Views: 1254

Re: search for a subfolder from its grandparent folder Topic is solved

thanks @boiler
the script works its just that it takes a while to load the folder (~10 seconds)

Is there a way to speed up the recursive search?

Think I may have to accept the answer but not sure if the speed sacrifice is worth it.

best
J
by JKnight_xbt33
09 Jun 2021, 04:56
Forum: Ask for Help (v1)
Topic: search for a subfolder from its grandparent folder Topic is solved
Replies: 17
Views: 1254

search for a subfolder from its grandparent folder Topic is solved

Dear all, I have a relatively simple problem, still haven't found the solution. Just looking for a way to search for a subfolder without having to hard code a new line in my script for its parent folder (e.g. 1301 - 1400) For example if i wanted to search for a folder called 1699 I would have to add...
by JKnight_xbt33
25 May 2021, 11:56
Forum: Ask for Help (v1)
Topic: Edit control not working Topic is solved
Replies: 8
Views: 587

Re: Edit control not working Topic is solved

HI boiler, I've tested using your message box script and both of them gave the output saying Control name is correct. So not sure what to make of it. Perhaps it is indeed the hWnd that causes a bug somehow. I've also checked and the hWnd 4 and it matches with what i defined at the start of the scrip...
by JKnight_xbt33
17 May 2021, 08:40
Forum: Ask for Help (v1)
Topic: call was rejected by callee error 0x80010001
Replies: 1
Views: 906

call was rejected by callee error 0x80010001

Dear all, I've been using a script of months nearly a year without issues. Recently I upgraded from office 2016 to 365 and I am having an issue when I try to implement the line xl.activesheet.usedrange.unmerge have no clue what this is and I don't know if you've seen this before. Here is my full cod...
by JKnight_xbt33
12 May 2021, 08:04
Forum: Ask for Help (v1)
Topic: Edit control not working Topic is solved
Replies: 8
Views: 587

Re: Edit control not working Topic is solved

Thanks, I don't know why it did work when i simplified but i have a hunch that making 2 variables may have caused a problem; With my original code below I made the wintitle variable then put it into the hWnd variable winTitle4 := "_Customer Complaint - Incident Details - Q-Pulse" hWnd4 := WinExist(w...
by JKnight_xbt33
07 May 2021, 06:32
Forum: Ask for Help (v1)
Topic: Edit control not working Topic is solved
Replies: 8
Views: 587

Re: Edit control not working Topic is solved

HI all, What has worked for me is just simplifying the controlclick without relying on hWnd - Control and controlsettext work, however when i close the window the text is not saved in the field. Therefore controlclicking the field and sending the string works since it prompts the window to ask if i ...
by JKnight_xbt33
23 Apr 2021, 05:59
Forum: Ask for Help (v1)
Topic: Edit control not working Topic is solved
Replies: 8
Views: 587

Edit control not working Topic is solved

HI all, I have a window with an edit control field that i want to send a number to. Why is it not clicking the edit control 111? You can see I've defined it in the script as hWnd4 . 1 not clicking.PNG setkeydelay , -1 DetectHiddenWindows On DetectHiddenText On SetTitleMatchMode, 2 winTitle := "Custo...
by JKnight_xbt33
11 Feb 2021, 08:32
Forum: Ask for Help (v1)
Topic: How can I paste text containing linebreaks Topic is solved
Replies: 8
Views: 717

Re: How can I paste text containing linebreaks Topic is solved

6 months later and I've figured out how to do it. Instead of using `n between lines I used `r`n and it worked perfectly. Seems the program I was using doesn't allow `n for linebreaks but allows `r`n. See below for example usage init := "1. text for line 1 bla bla bla bla`r`n2. text for line 2 bla bl...
by JKnight_xbt33
13 Jan 2021, 05:22
Forum: Ask for Help (v1)
Topic: [Word COM] Printing document--print more than 1 copy
Replies: 18
Views: 3131

Re: [Word COM] Printing document--print more than 1 copy

Hi FanaticGuru , It printed in colour, turns out the syntax of the name of the printer was different. Regarding printing double sided it turns out it doesn't work like I thought. When i went ahead to print more than 2 pages it prints odd and even numbers as separate documents (which is what manuel d...
by JKnight_xbt33
11 Jan 2021, 09:59
Forum: Ask for Help (v1)
Topic: [Word COM] Printing document--print more than 1 copy
Replies: 18
Views: 3131

Re: [Word COM] Printing document--print more than 1 copy

Hi FanaticGuru , Your script worked nicely for double sided print [ Edit: 13/01/2021 doesn't print a true double sided copy, only manual duplex] I just cant seem to get the active printer to work (line 5). Is there a specific naming convention I should use? printpath := A_Desktop "\Check List.docx" ...

Go to advanced search