Search found 20 matches

by ShawnT
29 Jan 2020, 14:49
Forum: Ask For Help
Topic: Goto is exiting the loop after its used once.
Replies: 2
Views: 235

Re: Goto is exiting the loop after its used once.

Ok found this, so i put the lines of code above loop and it works perfectly.

https://autohotkey.com/board/topic/20943-question-about-loops-and-goto/
by ShawnT
29 Jan 2020, 14:29
Forum: Ask For Help
Topic: Goto is exiting the loop after its used once.
Replies: 2
Views: 235

Goto is exiting the loop after its used once.

Trying to clean this code up a bit. Instead of using the same code both times in the else statements I added a GoTo, the problem is that it exits the script after one time accessing, i want it to keep looping thru the other *.pdfs in the folder. Just like it would if i kept the redundant code in bot...
by ShawnT
29 Jan 2020, 13:46
Forum: Ask For Help
Topic: More fun with custom commands Topic is solved
Replies: 6
Views: 564

Re: More fun with custom commands Topic is solved

Kinda how I imagine it: ; ~~~ functions ~~~ helper_LoopColors(Path, ShadesVarible, loopnumber) { loop, %loopnumber% { CustomShade := "*"((A_Index*5)+ShadesVarible) ProgressBar := ((A_Index*5)+ShadesVarible) GUI_UpdateProgress(ProgressBar) ;update GUI foundObj := FindColor(1, A_ScriptDir "\data\colo...
by ShawnT
29 Jan 2020, 13:44
Forum: Ask For Help
Topic: More fun with custom commands Topic is solved
Replies: 6
Views: 564

Re: More fun with custom commands Topic is solved

While you now have it calling functions dynamically, you are still making mistakes regarding passing parameters, specifically here: FindColor("\Images\Default\Menu\Folder\Selected.jpg ", 80, "FunctionMouseClick", ((x+1), (y+1))) You do not have a value of x or y that you are passing, which wouldn't...
by ShawnT
14 Jan 2020, 16:01
Forum: Ask For Help
Topic: More fun with custom commands Topic is solved
Replies: 6
Views: 564

More fun with custom commands Topic is solved

More fun with custom commands. Continuing on after boiler got me got me thru the last block, here . Now i am stuck on trying to get more than one parameter to work. Specifically with the Mouse function needing the x and the y from inside the main function. Thanks in advance for any help. ;;Ctrl+shif...
by ShawnT
09 Jan 2020, 16:23
Forum: Ask For Help
Topic: help with Custom Functions Topic is solved
Replies: 2
Views: 322

Re: help with Custom Functions Topic is solved

That works! Thank you so much!
by ShawnT
08 Jan 2020, 15:56
Forum: Ask For Help
Topic: help with Custom Functions Topic is solved
Replies: 2
Views: 322

help with Custom Functions Topic is solved

I have been struggling all day to try and get this to work So i have a custom function that has the framework of something i use about a dozen times in a code. Depending on the ErrorLevel and times thru the loop i have it do a multitude of things from naming new variables to mouse clicks. ^+u:: Them...
by ShawnT
19 Nov 2019, 15:53
Forum: Ask For Help
Topic: need syntax help for if file exist in a loop Topic is solved
Replies: 2
Views: 197

Re: need syntax help for if file exist in a loop Topic is solved

thank you so much! works like a charm now.
by ShawnT
19 Nov 2019, 15:19
Forum: Ask For Help
Topic: need syntax help for if file exist in a loop Topic is solved
Replies: 2
Views: 197

need syntax help for if file exist in a loop Topic is solved

#Persistent SetTimer, MoveFiles, 10000 return MoveFiles: if (FileExist("D:\CADD FILES COMPUTER\*.DWG")) And (!FileExist("D:\CADD FILES COMPUTER\*.DWL*")){ sleep 5000 Loop, D:\CADD FILES COMPUTER\*.DWG { SplitPath, A_LoopFileFullPath,,,, name FileGetTime, TimeLocal, D:\CADD FILES COMPUTER\%name%.DWG...
by ShawnT
27 Feb 2019, 15:38
Forum: Ask For Help
Topic: Help for getting owner properties from a file on a server Topic is solved
Replies: 8
Views: 1221

Re: Help for getting owner properties from a file on a server Topic is solved

Hi Shawn, Try this: AllPDFs:="\\192.168.168.1\plats\PDF DRAWINGS\*.PDF" Loop,%AllPDFs% { CurrentFile:=A_LoopFilePath oOwner:=ComObjGet("winmgmts:").ExecQuery("Associators Of {" "Win32_LogicalFileSecuritySetting='" CurrentFile "'} Where As" "socClass= Win32_LogicalFileOwner ResultRole=Owner") For it...
by ShawnT
27 Feb 2019, 13:42
Forum: Ask For Help
Topic: Help for getting owner properties from a file on a server Topic is solved
Replies: 8
Views: 1221

Re: Help for getting owner properties from a file on a server Topic is solved

Ok with some testing it appears to use the directory wording that is put into the loop. So that can't be it, trying to also figure out this code and i can't for the life of me understand how you got what wrote down. I am lost right after "ComObjGet" =P
by ShawnT
27 Feb 2019, 12:36
Forum: Ask For Help
Topic: Help for getting owner properties from a file on a server Topic is solved
Replies: 8
Views: 1221

Re: Help for getting owner properties from a file on a server Topic is solved

The server is windows 2012 r2. I am thinking maybe it is the directory isn't being put in right? Loop, \\192.168.168.1\plats\PDF DRAWINGS\*.PDF{ oOwner:=ComObjGet("winmgmts:").ExecQuery("Associators Of {" "Win32_LogicalFileSecuritySetting='" \\192.168.168.1\plats\PDF DRAWINGS\ A_LoopFileName "'} Whe...
by ShawnT
26 Feb 2019, 14:33
Forum: Forum Issues
Topic: What is with the IP bans and other aggressive security?
Replies: 21
Views: 11340

Re: What is with the IP bans and other aggressive security?

Is there any way to get my work computer un ip banned? Don't know what happened.
by ShawnT
26 Feb 2019, 14:30
Forum: Ask For Help
Topic: Help for getting owner properties from a file on a server Topic is solved
Replies: 8
Views: 1221

Re: Help for getting owner properties from a file on a server Topic is solved

I tried the code but it still isn't able to grab the owner from the server. I'll keep poking around and trying stuff, thanks for the help and Any additional incite is appreciated.
by ShawnT
21 Feb 2019, 15:42
Forum: Ask For Help
Topic: Help for getting owner properties from a file on a server Topic is solved
Replies: 8
Views: 1221

Help for getting owner properties from a file on a server Topic is solved

took some code from this post and have tried to set it up to look at a folder on my server but id seem to error out. I have tested it on files on my computer and it seems to work fine. Error: 0x80041002 - Source: SWbemServicesEX Description: Not Found Help File: (null) HelpContext: 0 Specifically: G...
by ShawnT
14 Nov 2018, 16:12
Forum: Ask For Help
Topic: Script with PixelSearch works with my computer not with anyone elses Topic is solved
Replies: 3
Views: 821

Re: Script with PixelSearch works with my computer not with anyone elses Topic is solved

Thanks for the input Xtra, I think i am going to try and work with image search instead of pixel and see how far that takes me. ControlClick looks promising for a few issues i have been having in other scripts as well.

thanks Again!
by ShawnT
10 Nov 2018, 00:13
Forum: Ask For Help
Topic: Script with PixelSearch works with my computer not with anyone elses Topic is solved
Replies: 3
Views: 821

Script with PixelSearch works with my computer not with anyone elses Topic is solved

I have a script that uses PixelSearch to figure out where to click on the program. I have been using it on my computer for years now but i can never get it to work on anyone else's. Anyone have any idea why that is? I have coded it to where i can resize the programs window and it still fires, again ...
by ShawnT
08 Mar 2017, 11:00
Forum: Ask For Help
Topic: Moving files from my work server to my work computer Topic is solved
Replies: 5
Views: 1500

Re: Moving files from my work server to my work computer Topic is solved

Sorry I rushed thru that last post. FileGetTime, OutputVar , D:\CADD FILES COMPUTER\123456.DWG Msgbox %OutputVar% This works and returns the message box with the time/date. Now taking from my last post I tried to replicate the same path thing that worked for FileMove. FileGetTime, OutputVar , \\eps...
by ShawnT
07 Mar 2017, 22:12
Forum: Ask For Help
Topic: Moving files from my work server to my work computer Topic is solved
Replies: 5
Views: 1500

Re: Moving files from my work server to my work computer Topic is solved

Sorry I rushed thru that last post. FileGetTime, OutputVar , D:\CADD FILES COMPUTER\123456.DWG Msgbox %OutputVar% This works and returns the message box with the time/date. Now taking from my last post I tried to replicate the same path thing that worked for FileMove. FileGetTime, OutputVar , \\epsi...
by ShawnT
07 Mar 2017, 20:32
Forum: Ask For Help
Topic: Moving files from my work server to my work computer Topic is solved
Replies: 5
Views: 1500

Re: Moving files from my work server to my work computer Topic is solved

From what I can tell I have read and write permissions. Messed around and made this work. Filemove, ‪\\epsi\plats\Test, D:\CADD FILES COMPUTER, 1 Now the next step, any idea why this path wouldn't work with FileGetTime? FileGetTime, OutPutVar, \\epsi\plats\Test dosen't work, I'll start a different t...

Go to advanced search