Search found 2026 matches

by Xtra
05 Jan 2021, 23:28
Forum: Ask For Help
Topic: ImageSearch works great on one computer, not on another
Replies: 6
Views: 110

Re: ImageSearch works great on one computer, not on another

Note: The offset clicking is not working the way you think it is:

Code: Select all

Printx := 1
Printy := 1

%Printx%+=5
%Printy%+=5

MsgBox % Printx A_Tab Printy
Not a fix for your OP just showing another issue.

HTH
by Xtra
05 Jan 2021, 12:14
Forum: Ask For Help
Topic: Better Mouse Move? Topic is solved
Replies: 8
Views: 129

Re: Better Mouse Move? Topic is solved

MouseMove, X, Y, 0
Use 0 for the speed parameter. See: MouseMove
by Xtra
04 Jan 2021, 02:09
Forum: Ask For Help
Topic: Help with Loop Topic is solved
Replies: 1
Views: 66

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
by Xtra
04 Jan 2021, 02:04
Forum: Ask For Help
Topic: ClipWait
Replies: 4
Views: 120

Re: ClipWait

Check ErrorLevel after using Clipwait and it will show if the copy failed for the timeout.
by Xtra
03 Jan 2021, 17:32
Forum: Gaming
Topic: SetTimer not working consistently
Replies: 7
Views: 115

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 ...
by Xtra
03 Jan 2021, 17:15
Forum: Gaming
Topic: PixelGetColor Or PixelSearch for a game Topic is solved
Replies: 39
Views: 508

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)
by Xtra
03 Jan 2021, 05:42
Forum: Gaming
Topic: (Warcraft) Movement Combined with an Ability Script Request.
Replies: 3
Views: 66

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% ...
by Xtra
31 Dec 2020, 05:41
Forum: Scripts and Functions
Topic: ExecScript() - Run AHK script (file, thru pipe, from stdin)
Replies: 8
Views: 3083

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
by Xtra
30 Dec 2020, 13:59
Forum: Scripts and Functions
Topic: ExecScript() - Run AHK script (file, thru pipe, from stdin)
Replies: 8
Views: 3083

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...
by Xtra
28 Dec 2020, 17:06
Forum: Ask For Help
Topic: check for colors in one pixelgetcolor
Replies: 1
Views: 26

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}
by Xtra
27 Dec 2020, 15:18
Forum: Ask For Help
Topic: Selenium: Something is wrong
Replies: 1
Views: 49

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...
by Xtra
26 Dec 2020, 01:32
Forum: Ask For Help
Topic: HOW CAN I CLICK ON XPATH
Replies: 2
Views: 30

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
by Xtra
26 Dec 2020, 01:25
Forum: Ask For Help
Topic: Problem changing a buttons text
Replies: 1
Views: 32

Re: Problem changing a buttons text

Try:

Code: Select all

; Create button:
gui add,button,gsaffzeigen vsaffFav w100,xxx

; Change button:
GuiControl,,saffFav,%s%
by Xtra
26 Dec 2020, 01:21
Forum: Forum Issues
Topic: When I log in to forum, CSS disappears Topic is solved
Replies: 42
Views: 2559

Re: When I log in to forum, CSS disappears Topic is solved

Chrome with Digi here and its screwed up. Merry Christmas!
by Xtra
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: 234

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...
by Xtra
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: 234

Re: What's the name for this element area in this pages “inspect element”?

autohotkeycool wrote:
25 Dec 2020, 16:17
Or is it not possible to download the section of the element that contains the pace figures?
document.getElementsByClassName("track__bar js-width js-width--is-initialised")[6].style.width = 90%
by Xtra
24 Dec 2020, 16:16
Forum: Ask For Help
Topic: Selenium if this element exists Problem
Replies: 2
Views: 77

Re: Selenium if this element exists Problem

See: Try Catch Example: click: driver.findElementByID("imgbtnLogin").click try { Exists := driver.findElementByID("lblError").Attribute("innerText") MSG_ERROR := InStr(Exists,"000") if (MSG_ERROR > 0) goto,click } catch msgbox,done return If the lblError element exists you can probably just shorten ...

Go to advanced search