Search found 15 matches

by zayntheboss
13 Oct 2023, 18:17
Forum: Ask for Help (v1)
Topic: Regex Help for a Needle Containing Quotation Marks
Replies: 2
Views: 239

Regex Help for a Needle Containing Quotation Marks

I've been racking my brains for hours on this to no avail. Here's a bit of the string I'm working with. It's a huge chunk of characters on a single line. {"__ref":"UmF0aW5nLTI0NzIyODY4"}},"UmF0aW5nLTI0NzIyODY4":{"__id":"UmF0aW5nLTI0NzIyODY4","__typename":"Rating","comment":"HORRIBLE PROF the lecture...
by zayntheboss
25 Dec 2019, 13:25
Forum: Ask for Help (v1)
Topic: When called from another program, IniRead always throws an Error Topic is solved
Replies: 1
Views: 263

When called from another program, IniRead always throws an Error Topic is solved

I am writing an AHK script that works like this: Receive Email via Outlook -> Outlook writes a mail.txt file that contains the Email contents to a specific folder -> Outlook also runs an AHK converted to EXE "Queue Manager" script to run (runs the appropriate script according to email contents) -> D...
by zayntheboss
22 Apr 2019, 15:46
Forum: Ask for Help (v1)
Topic: QuerySelector CSS selector changes according to variable value Topic is solved
Replies: 2
Views: 813

QuerySelector CSS selector changes according to variable value Topic is solved

Hello Could someone please help me? I'm trying to change the value of my CSS selector based on the value of the variable "num" msgbox % pwb.document.querySelector("#course-list-items > div:nth-child("num") > div > a").InnerText but I keep getting an error that num" is an illegal character. Can someo...
by zayntheboss
22 Apr 2019, 09:35
Forum: Ask for Help (v1)
Topic: Illegal Character Topic is solved
Replies: 1
Views: 458

Re: Illegal Character Topic is solved

nvm I got it pwb := ComObjCreate("InternetExplorer.Application") pwb.visible := true pwb.toolbar := false numberlink := 21 num = 1 InputBox query StringReplace, search, query, %A_Space%, `%20, all navigate = https www.studyblue.com /#search/classes/%search%/scope=ALL Broken Link for safety MsgBox % ...
by zayntheboss
22 Apr 2019, 09:08
Forum: Ask for Help (v1)
Topic: change hotkeys
Replies: 3
Views: 617

Re: change hotkeys

Code: Select all

j::
send, i
return
by zayntheboss
22 Apr 2019, 09:03
Forum: Ask for Help (v1)
Topic: Is it possible to use printscreen to save an image Topic is solved
Replies: 24
Views: 13588

Re: Is it possible to use printscreen to save an image Topic is solved

Here's a script I wrote that does just that ^q:: sleep, 100 send {PrintScreen} sleep, 500 run MSPaint Sleep, 1000 Send, #{Up} Sleep, 500 Mouseclick, left, 250, 250, 5 Sleep, 200 send ^v sleep, 500 Send ^s Random, filename, 10000, 99999 Sleep, 500 Send %filename% Sleep, 500 Send ^l Sleep, 200 Send, d...
by zayntheboss
22 Apr 2019, 08:37
Forum: Ask for Help (v1)
Topic: Illegal Character Topic is solved
Replies: 1
Views: 458

Illegal Character Topic is solved

I get an illegal character error when I try to run this script. Can someone please explain why? In the inputbox that comes up, you're supposed to write the name of some US university (e.g., central michigan university) #NoEnv ; Recommended for performance and compatibility with future AutoHotkey rel...
by zayntheboss
21 Apr 2019, 19:28
Forum: Ask for Help (v1)
Topic: Double click then copy text (need help)
Replies: 2
Views: 1701

Re: Double click then copy text (need help)

Uses CTRL + q to do the desired action; Esc to close app!

Code: Select all

^q::
Click
Sleep, 20
Click
Send, ^c
return

Escape::
ExitApp
by zayntheboss
21 Apr 2019, 19:06
Forum: Ask for Help (v1)
Topic: COM Help
Replies: 0
Views: 449

COM Help

Hi guys, I'm trying to make a program that asks for the name of a university "e.g., central michigan university" then scours the first 10 hits of studyblue for cue cards for different classes, and prints those to a folder on my computer. a screenshot from the site is right here https i.postimg.cc/LX...
by zayntheboss
26 Feb 2019, 10:05
Forum: Ask for Help (v1)
Topic: running two functions at once
Replies: 5
Views: 2944

Re: running two functions at once

I don't think you can run two functions at once in a single script because AHK does not support multithreading. What you can do is run this script in parallel with another script. #Persistent SetTimer, Internet, 500 return ConnectedToInternet(flag=0x40) { Return DllCall("Wininet.dll\InternetGetConn...
by zayntheboss
25 Feb 2019, 22:24
Forum: Ask for Help (v1)
Topic: Please help!
Replies: 1
Views: 422

Please help!

Is there any way to break out of a loop and do something once but continue running the loop?

Sorry for the clickbait, it's just that I'm not very lucky getting answers on this forum, it seems.
by zayntheboss
25 Feb 2019, 17:24
Forum: Ask for Help (v1)
Topic: running two functions at once
Replies: 5
Views: 2944

running two functions at once

Hi! So I cobbled together this function from others' work: #Persistent SetTimer, Internet, 500 return ConnectedToInternet(flag=0x40) { Return DllCall("Wininet.dll\InternetGetConnectedState", "Str", flag,"Int",0) } Internet: If ConnectedToInternet() { MsgBox Connected! } else { MsgBox Not Connected :...
by zayntheboss
24 Feb 2019, 16:38
Forum: Ask for Help (v1)
Topic: test if script is not already running Topic is solved
Replies: 1
Views: 478

Re: test if script is not already running Topic is solved

Got it to work, but it's kinda ugly; you need to create a file and test if it exists:

Loop, 360 {
if FileExist("C:\Users\tgrid\OneDrive\Desktop\running.txt") {
Sleep, 1000
}
else {
break
}
}
MsgBox, Working
by zayntheboss
24 Feb 2019, 15:31
Forum: Ask for Help (v1)
Topic: test if script is not already running Topic is solved
Replies: 1
Views: 478

test if script is not already running Topic is solved

Hi! I was wondering if it was possible to make a script that will loop maybe 30 times, and test if it's already running. If the script isn't running, then it should run the script once, but if the script is running, then it should wait 1000 ms before testing again. Can someone please help me with th...

Go to advanced search