Search found 12 matches

by zayntheboss
22 Apr 2019, 15:46
Forum: Ask For Help
Topic: QuerySelector CSS selector changes according to variable value Topic is solved
Replies: 2
Views: 225

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
Topic: Illegal Character Topic is solved
Replies: 1
Views: 148

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
Topic: change hotkeys
Replies: 3
Views: 235

Re: change hotkeys

Code: Select all

j::
send, i
return
by zayntheboss
22 Apr 2019, 09:03
Forum: Ask For Help
Topic: Is it possible to use printscreen to save an image Topic is solved
Replies: 9
Views: 697

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
Topic: Illegal Character Topic is solved
Replies: 1
Views: 148

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
Topic: Double click then copy text (need help)
Replies: 2
Views: 262

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
Topic: COM Help
Replies: 0
Views: 184

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
Topic: running two functions at once
Replies: 5
Views: 447

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
Topic: Please help!
Replies: 1
Views: 168

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
Topic: running two functions at once
Replies: 5
Views: 447

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
Topic: test if script is not already running Topic is solved
Replies: 1
Views: 175

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
Topic: test if script is not already running Topic is solved
Replies: 1
Views: 175

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