Search found 2027 matches
- Yesterday, 13:20
- Forum: Bug Reports
- Topic: Is this "DetectHiddenWindows" bug?
- Replies: 4
- Views: 85
Re: Is this "DetectHiddenWindows" bug?
WinGetID() is not an AHK built in function. Try WinExist() ?
- 05 Jan 2021, 23:28
- Forum: Ask For Help
- Topic: ImageSearch works great on one computer, not on another
- Replies: 6
- Views: 114
Re: ImageSearch works great on one computer, not on another
Note: The offset clicking is not working the way you think it is:
Not a fix for your OP just showing another issue.
HTH
Code: Select all
Printx := 1
Printy := 1
%Printx%+=5
%Printy%+=5
MsgBox % Printx A_Tab Printy
HTH
- 05 Jan 2021, 12:17
- Forum: Ask For Help
- Topic: refocusing my mouse cursor to the keyboard cursor Topic is solved
- Replies: 4
- Views: 104
- 05 Jan 2021, 12:14
- Forum: Ask For Help
- Topic: Better Mouse Move? Topic is solved
- Replies: 8
- Views: 132
- 04 Jan 2021, 02:09
- Forum: Ask For Help
- Topic: Help with Loop Topic is solved
- Replies: 1
- Views: 67
Re: Help with Loop Topic is solved
Code: Select all
Loop
{
PixelGetColor, DetectMath, 700, 850
if (DetectMath = 0x36312F)
{
SoundBeep
Pause
}
else
{
PixelSearch, X, Y, 900, 700, 1200, 900, 0xF4A420
if (ErrorLevel = 0)
{
SoundBeep
Pause
}
else
{
Send, test{enter}
Sleep 3000
}
}
}
return
- 04 Jan 2021, 02:04
- Forum: Ask For Help
- Topic: ClipWait
- Replies: 4
- Views: 121
Re: ClipWait
Check ErrorLevel after using Clipwait and it will show if the copy failed for the timeout.
- 03 Jan 2021, 17:32
- Forum: Gaming
- Topic: SetTimer not working consistently
- Replies: 7
- Views: 117
Re: SetTimer not working consistently
The problem with your approach is you are not checking if the game is ready to accept input or has accepted it. This can screw things up as you are seeing. Casting speed/cooldowns, latency, lag, high cpu use etc can cause issues. You will want to rethink your script to prevent timing problems. Take ...
- 03 Jan 2021, 17:15
- Forum: Gaming
- Topic: PixelGetColor Or PixelSearch for a game Topic is solved
- Replies: 39
- Views: 515
Re: PixelGetColor Or PixelSearch for a game Topic is solved
Set CoordMode for how you intend to use it by default its window and not screen.
If the E changes color then check when its not equal ( != ) to gray and send E etc.
(this may help when the color covering the E are not a consistent color of blue)
If the E changes color then check when its not equal ( != ) to gray and send E etc.
(this may help when the color covering the E are not a consistent color of blue)
- 03 Jan 2021, 05:42
- Forum: Gaming
- Topic: (Warcraft) Movement Combined with an Ability Script Request.
- Replies: 3
- Views: 67
Re: (Warcraft) Movement Combined with an Ability Script Request.
Your script as a function: ~w::WowKey(1) ~d::WowKey(1) ~a::WowKey(1) ~s::WowKey(1) WowKey(AbilityKey) { RegExMatch(A_ThisHotkey, "[A-Za-z0-9]", key) if (A_PriorHotkey <> A_ThisHotkey or A_TimeSincePriorHotkey > 200) { KeyWait, % key Exit } Send {%key% down}{%AbilityKey% down}{%AbilityKey% up}{%key% ...
- 31 Dec 2020, 05:41
- Forum: Scripts and Functions
- Topic: ExecScript() - Run AHK script (file, thru pipe, from stdin)
- Replies: 8
- Views: 3095
Re: ExecScript() - Run AHK script (file, thru pipe, from stdin)
Code: Select all
ExecScript(ScriptCode, ["arg"], "name=myscriptnamehere", "dir=" . A_WorkingDir)
DetectHiddenWindows, On
WinClose, myscriptnamehere
- 30 Dec 2020, 13:59
- Forum: Scripts and Functions
- Topic: ExecScript() - Run AHK script (file, thru pipe, from stdin)
- Replies: 8
- Views: 3095
Re: ExecScript() - Run AHK script (file, thru pipe, from stdin)
Is there any way to terminate the generated script from master script? * name - when running through named pipes, 'name' specifies the pipe name. * If omitted, a random value is generated. Otherwise, specify an * asterisk(*) to run from stdin. This option is ignored when a file * is specified for t...
- 28 Dec 2020, 17:06
- Forum: Ask For Help
- Topic: check for colors in one pixelgetcolor
- Replies: 1
- Views: 27
Re: check for colors in one pixelgetcolor
Use: InStr()
Code: Select all
rcolors := "0x595142|0x595141|0x121352|0x131352"
PixelGetColor, nowcolor, rx, ry
If InStr(rcolors, nowcolor)
Send {PgUp}
- 27 Dec 2020, 15:28
- Forum: Gaming
- Topic: need quick W>A>S>D rotation on one key press
- Replies: 4
- Views: 71
Re: need quick W>A>S>D rotation on one key press
Code: Select all
x::send, wasd
- 27 Dec 2020, 15:18
- Forum: Ask For Help
- Topic: Selenium: Something is wrong
- Replies: 1
- Views: 53
Re: Selenium: Something is wrong
That is not how you create a function. Also goto loop label is pointless. try: waitfindElementByIDchange(driver,"ctl00_ContentPlaceHolder2_NonDutyPaidItemDetailUc1_btnAnalysisLookup") msgbox,done waitfindElementByIDchange(driver,id) { loop { try { found := driver.findElementByID(id) if (found) { bre...
- 27 Dec 2020, 15:08
- Forum: Forum Issues
- Topic: When I log in to forum, CSS disappears Topic is solved
- Replies: 44
- Views: 2689
Re: When I log in to forum, CSS disappears Topic is solved
Looks ok now!
- 26 Dec 2020, 01:32
- Forum: Ask For Help
- Topic: HOW CAN I CLICK ON XPATH
- Replies: 2
- Views: 34
Re: HOW CAN I CLICK ON XPATH
Example:
Code: Select all
driver.FindElementByXPath("//td/div/table/tbody/tr/td/table/tbody/tr/td[2]/div").Click
- 26 Dec 2020, 01:25
- Forum: Ask For Help
- Topic: Problem changing a buttons text
- Replies: 1
- Views: 35
Re: Problem changing a buttons text
Try:
Code: Select all
; Create button:
gui add,button,gsaffzeigen vsaffFav w100,xxx
; Change button:
GuiControl,,saffFav,%s%
- 26 Dec 2020, 01:21
- Forum: Forum Issues
- Topic: When I log in to forum, CSS disappears Topic is solved
- Replies: 44
- Views: 2689
Re: When I log in to forum, CSS disappears Topic is solved
Chrome with Digi here and its screwed up. Merry Christmas!
- 26 Dec 2020, 01:17
- Forum: Ask For Help
- Topic: What's the name for this element area in this pages “inspect element”?
- Replies: 12
- Views: 239
Re: What's the name for this element area in this pages “inspect element”?
I was just showing the result which is 90% try: Msgbox % elements := document.getElementsByClassName("track__bar js-width js-width--is-initialised")[6].style.width if you want to loop over all the elements of that type: elements := document.getElementsByClassName("track__bar js-width js-width--is-in...
- 25 Dec 2020, 17:38
- Forum: Ask For Help
- Topic: What's the name for this element area in this pages “inspect element”?
- Replies: 12
- Views: 239
Re: What's the name for this element area in this pages “inspect element”?
document.getElementsByClassName("track__bar js-width js-width--is-initialised")[6].style.width = 90%autohotkeycool wrote: ↑25 Dec 2020, 16:17Or is it not possible to download the section of the element that contains the pace figures?