Search found 2042 matches

by Xtra
Yesterday, 16:07
Forum: Ask For Help
Topic: ListBox ControlGet Topic is solved
Replies: 2
Views: 81

Re: ListBox ControlGet Topic is solved

; Test Environment: Win10 Home Version 19041.804, AutoHotkey_L Version 1.1.33.02 #SingleInstance, force Global LB_GETCOUNT := 0x018B Gui, Add, ListBox, +HWNDhListBox Multi vListBoxList w180, Apple|Banana|Cherry Gui, Add, Button, Default, OK Gui, Show, AutoSize, Test Return ButtonOK: Gui, Submit, No...
by Xtra
Yesterday, 13:04
Forum: Ask For Help
Topic: GDI+ DPI Issue
Replies: 14
Views: 351

Re: GDI+ DPI Issue

It probably wont have the look you want but for fun see if this makes any difference on the scaling. (while also setting Gdip_SetPixelOffsetMode to 4) DllCall("gdiplus\GdipSetInterpolationMode", "UPtr", pGraphics, "int", 2) ; HighQuality = 2 Make it retro like a title screen from a Nintendo Entertai...
by Xtra
Yesterday, 12:18
Forum: Ask For Help
Topic: GDI+ DPI Issue
Replies: 14
Views: 351

Re: GDI+ DPI Issue

I dont think you are doing anything wrong. Just for fun try removing the smoothing mode call and see what happens. (dont set it at all)

You can read about window scaling here:
https://docs.microsoft.com/en-us/windows/win32/hidpi/high-dpi-desktop-application-development-on-windows?redirectedfrom=MSDN
by Xtra
Yesterday, 11:53
Forum: Gaming
Topic: Speed
Replies: 3
Views: 83

Re: Speed

MouseMove, X, Y [, Speed, Relative]
try

Code: Select all

SetDefaultMouseSpeed, 0

t::
MouseGetPos, x, y
MouseMove, x, y-105, 0
; sleep 1
return

; or:
t::MouseMove, 0, -105, 0, R
by Xtra
Yesterday, 11:39
Forum: Ask For Help
Topic: Handle - RunWait / CMD - ErrorLevel
Replies: 2
Views: 69

Re: Handle - RunWait / CMD - ErrorLevel

I use pdftotext.exe for millions of files at a time without issues.
Not sure why you are including margins but i would remove them.

HTH
by Xtra
Yesterday, 11:10
Forum: Ask For Help
Topic: GDI+ DPI Issue
Replies: 14
Views: 351

Re: GDI+ DPI Issue

Gdip_SetPixelOffsetMode(pGraphics,PixelOffsetMode) { ; CONSTANTS ; 0 PixelOffsetModeDefault Equivalent to PixelOffsetModeNone. ; 1 PixelOffsetModeHighSpeed Equivalent to PixelOffsetModeNone. ; 2 PixelOffsetModeHighQuality Equivalent to PixelOffsetModeHalf. ; 3 PixelOffsetModeNone Indicates that pix...
by Xtra
23 Feb 2021, 12:19
Forum: Ask For Help
Topic: Compare pixel color multiple times from same coordinate Topic is solved
Replies: 4
Views: 97

Re: Compare pixel color multiple times from same coordinate Topic is solved

Example: #NoEnv CoordMode, Pixel, Screen coord1 := 534 coord2 := 533 MsgBox, 4096, PixelChange result, % PixelChange(coord1,coord2) ExitApp PixelChange(x,y) { PixelGetColor, pixelCheck1, coord1, coord2, RGB ; Get initial color to check against Loop, 5 { Loop, 10 ; Break 20 seconds into smaller 2 sec...
by Xtra
20 Feb 2021, 18:48
Forum: Tutorials
Topic: Using SeleniumBasic v3.141.0.0 with AHK
Replies: 7
Views: 197

Re: Using SeleniumBasic v3.141.0.0 with AHK

For V3 if there was documentation (in english) it would be easier to deal with.
Thanks again for posting.
by Xtra
20 Feb 2021, 18:44
Forum: Tutorials
Topic: Using SeleniumBasic v3.141.0.0 with AHK
Replies: 7
Views: 197

Re: Using SeleniumBasic v3.141.0.0 with AHK

I removed the offset click to simplify the example: #NoEnv driver := ComObjCreate("Selenium.ChromeDriver") driver.Get("https://www.Google.com") element := driver.FindElementByXPath("//input[@class='gLFyf gsfi']") driver.Actions.moveToElement(element).click().perform() MsgBox, 4096, Actions, ??, 5 dr...
by Xtra
20 Feb 2021, 17:26
Forum: Tutorials
Topic: Using SeleniumBasic v3.141.0.0 with AHK
Replies: 7
Views: 197

Re: Using SeleniumBasic v3.141.0.0 with AHK

Thanks for posting this.

Ive used actions before to offset click an element.
Example:

Code: Select all

driver.Actions.moveToElement(element).moveByOffset(-100, 0).click().perform()
I will eventually try this version. Wish it had its own installer to keep it simple and user friendly.
by Xtra
16 Feb 2021, 14:20
Forum: Ask For Help
Topic: Weird obs studio issue Topic is solved
Replies: 5
Views: 64

Re: Weird obs studio issue Topic is solved

Try using: ControlSend for sending to the inactive OBS window.
by Xtra
10 Feb 2021, 04:37
Forum: Gaming
Topic: Help with optimzing PixelSearch Topic is solved
Replies: 2
Views: 76

Re: Help with optimzing PixelSearch Topic is solved

X1, Y1 The X and Y coordinates of the starting corner of the rectangle to search, which can be expressions . Coordinates are relative to the active window unless CoordMode was used to change that. X2, Y2 The X and Y coordinates of the ending corner of the rectangle to search, which can be expressio...
by Xtra
06 Feb 2021, 01:46
Forum: Ask For Help
Topic: preventing a shortcut for running another
Replies: 18
Views: 239

Re: preventing a shortcut for running another

Click the help file link and see the examples there.
by Xtra
05 Feb 2021, 19:01
Forum: Ask For Help
Topic: preventing a shortcut for running another
Replies: 18
Views: 239

Re: preventing a shortcut for running another

See: #MenuMaskKey
You could try using:

Code: Select all

#MenuMaskKey vkE8
by Xtra
04 Feb 2021, 12:13
Forum: Ask For Help
Topic: Imagesearch independent of resolution and zoom level?
Replies: 5
Views: 929

Re: Imagesearch independent of resolution and zoom level?

A variant of BoBo's code: CoordMode, Pixel, Screen CoordMode, Mouse, Screen imgPath := "C:\myFolder\mySubfolder\" img := [] img[1920,1080] := "1.png" img[2560,1440] := "2.png" img[3840,2160] := "3.png" if FileExist(image := imgPath . img[A_ScreenWidth,A_Screenheight]) { ImageSearch, X, Y, 0, 0, A_Sc...
by Xtra
25 Jan 2021, 13:20
Forum: Bug Reports
Topic: Is this "DetectHiddenWindows" bug?
Replies: 10
Views: 264

Re: Is this "DetectHiddenWindows" bug?

WinGetID() is not an AHK built in function. Try WinExist() ?
by Xtra
05 Jan 2021, 23:28
Forum: Ask For Help
Topic: ImageSearch works great on one computer, not on another
Replies: 6
Views: 118

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: 140

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: 68

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

Go to advanced search