Search found 31 matches

by 3ggg
16 Jan 2020, 22:31
Forum: Ask For Help
Topic: Goon VPN That Can Be Easily Manipulated with AutoHotKey
Replies: 0
Views: 110

Goon VPN That Can Be Easily Manipulated with AutoHotKey

I have a script where I'm trying to change VPN Connections multiple times.

I've been having lots of problems with:

1. Changing VPN Connection with Mouse Clicks
2. Changing VPN Connection with Found Image Feature

Anyone have a recommendation?
by 3ggg
13 Jan 2020, 15:06
Forum: Ask For Help
Topic: Rename Most Recent File in a Folder? Topic is solved
Replies: 1
Views: 129

Rename Most Recent File in a Folder? Topic is solved

NewFileName := "newfilename.csv" Foo := A_Desktop . DataFilePath Loop %Foo%\*.* If ( A_LoopFileTimeModified >= Time ) Time := A_LoopFileTimeModified, File := A_LoopFileLongPath FileMove,%File%,%Foo%\%NewFileName% ^ This code worked for me for the entire desktop path but I'm not sure how to adjust i...
by 3ggg
31 Dec 2019, 01:01
Forum: Ask For Help
Topic: Question about InInString() Function?
Replies: 1
Views: 120

Question about InInString() Function?

So I'll have a multiline variable and say the needle I want to check to see if it exists in the variable is "apple" If the multiline variable as lkjas dkjf aslbb kdjapplekja s dkl al ksjdfkj asdfjk In this example, I'd want it to be true. Im having problems making this be the case with IfInString be...
by 3ggg
30 Dec 2019, 14:27
Forum: Ask For Help
Topic: Restart Loop If Variable = 0?
Replies: 1
Views: 152

Restart Loop If Variable = 0?

If a script I'm working on goes correctly, the variable output will be between 100-1000. However if it's 0, something went wrong most likely ( manipulating a program outside of AHK). Usually just trying it again a second time fixes the problem. If output = 0 I'd like to just restart the loop and try...
by 3ggg
29 Dec 2019, 11:19
Forum: Ask For Help
Topic: Execute Javascript in AHK?
Replies: 1
Views: 181

Execute Javascript in AHK?

I used to have a Mac and was using this code below with Key Board Maestro, now that I have a PC, I'm trying to adapt it to AHK. The purpose of this script is to retrieve the links to the results from a google search or any other search page if you have the xpath. What would be the easiest way to exe...
by 3ggg
24 Dec 2019, 17:38
Forum: Ask For Help
Topic: Shortcut to disable BlockInput?
Replies: 3
Views: 234

Re: Shortcut to disable BlockInput?

This is working with an example script that's just BlockInput, On Blockinput, MouseMove Return Ctrl + Alt + Del is issued BlockInput ceases. for me if I hit cntrl alt delete, it will open up a full page windows menu that says "cancel" "sign out" "lock" and "switch users". Inside this menu I have ful...
by 3ggg
24 Dec 2019, 11:09
Forum: Ask For Help
Topic: Shortcut to disable BlockInput?
Replies: 3
Views: 234

Shortcut to disable BlockInput?

Cntrl Alt Delete allows you to disable it temporarily inside that menu but it goes back to blocking once you return to the page. Is there anyway to add a separate script or something else to disable blockinput if something’s goes wrong
by 3ggg
23 Dec 2019, 19:22
Forum: Ask For Help
Topic: BlockInput only working for keystrokes, not mouse movements.
Replies: 1
Views: 162

BlockInput only working for keystrokes, not mouse movements.

I thought blockinput was able to block all keystrokes and mouse movements but it seems like it’s only working for keystrokes, is there a different block for the mouse or is there something wrong?
by 3ggg
23 Dec 2019, 12:41
Forum: Ask For Help
Topic: Check if process exists? Topic is solved
Replies: 3
Views: 194

Re: Check if process exists? Topic is solved

Thanks, so how would I do a pause until the process does not exist? Is this correct?

Code: Select all

{
process, exist, excel.exe
if ErrorLevel != 0
    break
Sleep, 1000
}
by 3ggg
23 Dec 2019, 11:52
Forum: Ask For Help
Topic: Check if process exists? Topic is solved
Replies: 3
Views: 194

Check if process exists? Topic is solved

I’ve found a few older forum posts on this but it’s either a legacy format I’m not aware of or I’ve been unable to correctly adapt it to my needs.

What’s a script that’s simply:

If process exists, msg box “process exists”

If process doesn’t exist msg box “process doesn’t exist”
by 3ggg
22 Dec 2019, 23:13
Forum: Ask For Help
Topic: Force an entire webpage to load?
Replies: 1
Views: 144

Force an entire webpage to load?

I have a webpage that lazy loads, it is a search results page. It is not an infinite scroll, it does end eventually. Currently I am just using scroll and sleep to scroll all the way down to load the entire page. Is there a better way to do this with COM?
by 3ggg
22 Dec 2019, 17:14
Forum: Ask For Help
Topic: Scroll slowly to bottom of page with Com?
Replies: 0
Views: 131

Scroll slowly to bottom of page with Com?

Trying to slowly scroll to the bottom of page with Com. It can't be a script that automatically goes to the bottom of the page as I'm working with search results and if that happens, sometimes the middle search results don't load in. The problem is that these pages are different lengths and If I put...
by 3ggg
21 Dec 2019, 19:42
Forum: Ask For Help
Topic: Count how many times specific class is in the source code of a web page? Topic is solved
Replies: 2
Views: 215

Count how many times specific class is in the source code of a web page? Topic is solved

I can get more of the code if necessary but I think the only relevant part is that there's a piece of code that's just class="premium-icon" that I want to count how many there are on the web page. I'm new to AHK and looking to get steered in the right direction as far as what the best method. Is the...
by 3ggg
21 Dec 2019, 11:15
Forum: Ask For Help
Topic: Lock all inputs from doing anything? Topic is solved
Replies: 1
Views: 123

Lock all inputs from doing anything? Topic is solved

I have a script that runs just about 24/7. I runs in the background for 115 minutes,then it requires taking over for 5 minutes. Is there anyway to add something to the script that locks me out for those 5 minutes so I don't acidentally touch the keyboard or mouse and mess something up?
by 3ggg
07 Dec 2019, 14:38
Forum: Ask For Help
Topic: FileMove all files from any folder titled "Data"? Topic is solved
Replies: 2
Views: 1763

FileMove all files from any folder titled "Data"? Topic is solved

I have dozens of subfolders titled "Data" and I want to relocate any files in those subfolders into one gigantic folder with everything in it.

Anyone have any idea how to do this?
by 3ggg
26 Nov 2019, 21:15
Forum: Ask For Help
Topic: Does a Looping ImageSearch cause a lot of strain to the CPU?
Replies: 1
Views: 120

Does a Looping ImageSearch cause a lot of strain to the CPU?

I plan on leaving a Looping ImageSearch in my script for up to 90 minutes. Would this be a bad idea for the CPU? I hear the imagesearch function is computationally intensive. Loop { ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, C:\Users\me\Pictures\AutoHotKey\wait.png if ErrorLev...
by 3ggg
26 Nov 2019, 20:49
Forum: Ask For Help
Topic: Frustrated by simple mouse click macro Topic is solved
Replies: 2
Views: 152

Re: Frustrated by simple mouse click macro Topic is solved

boiler thanks winactivate and winwaitactive seem to be doing the trick for now as far as the the 2nd solution, I was using coordinates that weren't relative the window, they were relative to the to the entire screen ( but still effecting the application ) However, if i picked a coordinate relative ...
by 3ggg
26 Nov 2019, 17:46
Forum: Ask For Help
Topic: Frustrated by simple mouse click macro Topic is solved
Replies: 2
Views: 152

Frustrated by simple mouse click macro Topic is solved

New to AHK, frustrated by this simple mouse click macro that I loop a few times Run, "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\theprogram Sleep, 5000 MouseClick, Left, 266, 835 Sleep, 2000 MouseClick, Left, 113, 184 Sleep, 1000 Send, %variable% Sleep, 1000 MouseClick, Left, 183, 282 Slee...
by 3ggg
26 Nov 2019, 02:49
Forum: Ask For Help
Topic: Select Most Recent File in a Folder Topic is solved
Replies: 7
Views: 440

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

@AHKStudent

tried with multiple different folders, moving things around, still got that boot.stat thing every time. I'm sure I'm getting something wrong

Go to advanced search