Search found 3907 matches

by swagfag
Yesterday, 12:40
Forum: Ask For Help
Topic: Any limits on ImageSearch?
Replies: 7
Views: 3484

Re: Any limits on ImageSearch?

if there is a cracked screen on the machine? Can that affect it? i dont know. maybe but probably not. u can run this script, with the dlls placed in the scripts folder, to find out at which point ImageSearch is failing. adjust ur coords/path as needed. CoordMode, Pixel, Screen is hardcoded, so ther...
by swagfag
Yesterday, 10:00
Forum: Ask For Help
Topic: Very slow hotstrings replacement in Atlantis Word Processor
Replies: 16
Views: 4546

Re: Very slow hotstrings replacement in Atlantis Word Processor

the possibility of SendInput having reverted to SendEvent, in which case, whatever default key delays apply to SendEvent at the time of sending
by swagfag
Yesterday, 03:35
Forum: Ask For Help
Topic: Trying to get the url links from a page but having no luck Topic is solved
Replies: 5
Views: 1844

Re: Trying to get the url links from a page but having no luck Topic is solved

wb := ComObjCreate("InternetExplorer.Application") wb.Visible := True wb.Navigate("https://intervarsity.org/chapters?state=GA") While wb.readyState != 4 || wb.document.readyState != "complete" || wb.busy sleep, 10 ; Sleep, 5000 ; on my machine I need this to wait for that data to load MsgBox halt f...
by swagfag
Yesterday, 02:05
Forum: AutoHotkey v2 Help
Topic: A strange __set() disturbance Topic is solved
Replies: 28
Views: 13233

Re: A strange __set() disturbance Topic is solved

It is not a meta set being called. It is a prop setter. and i never claimed it was. im highlighting the discrepancies between both functions' signatures(which apparently only serves to confuse people, see vvhitevvizard 's 41st gripe with v2[ 1 , 2 ] and this case) why isnt meta-set's(and others') P...
by swagfag
09 Aug 2020, 20:34
Forum: Ask For Help
Topic: Any limits on ImageSearch?
Replies: 7
Views: 3484

Re: Any limits on ImageSearch?

ErrorLevel 2 means the image couldn't be loaded(due to the supplied image path being wrong or extremely unlikely internal Windows reasons)
either ur paths are bad or ur folder structure is bad, which basically boils down to ur paths being bad

also theres no A_#ScriptDir builtin variable
by swagfag
09 Aug 2020, 17:07
Forum: AutoHotkey v2 Help
Topic: A strange __set() disturbance Topic is solved
Replies: 28
Views: 13233

Re: A strange __set() disturbance Topic is solved

Exercice to write .defineProp( name, { get: …/…, set: …/… } ) : ... get: objBindMethod( this, 'gsProp' ), set: objBindMethod( this, 'gsProp' ) ... by using ObjBindMethod() here, uve created a circular reference, which means any instance of ur object wont ever get automatically deleted, unless u man...
by swagfag
09 Aug 2020, 14:46
Forum: Ask For Help
Topic: Trying to get the url links from a page but having no luck Topic is solved
Replies: 5
Views: 1844

Re: Trying to get the url links from a page but having no luck Topic is solved

Code: Select all

document.querySelectorAll('a.results[href^="/contact/"]')
then access the .href property
by swagfag
09 Aug 2020, 12:57
Forum: Ask For Help
Topic: Best way to troubleshoot Gdip_ImageSearch? Topic is solved
Replies: 20
Views: 4338

Re: Best way to troubleshoot Gdip_ImageSearch? Topic is solved

because the flag doesn't exist on pre 8.0 systems (iirc)
by swagfag
09 Aug 2020, 10:34
Forum: Ask For Help
Topic: A4Tech X7 Anti-Vibrate enable script
Replies: 3
Views: 1503

Re: A4Tech X7 Anti-Vibrate enable script

its not an AHK thing, its a windows thing - a programming pattern for structuring GUI applications https://docs.microsoft.com/en-us/windows/win32/learnwin32/window-messages eg(with made up message names): when u right click ur mouse driver tray icon, windows sends to ur mouse driver application the ...
by swagfag
09 Aug 2020, 09:23
Forum: Ask For Help
Topic: A4Tech X7 Anti-Vibrate enable script
Replies: 3
Views: 1503

Re: A4Tech X7 Anti-Vibrate enable script

u can detect ur plugging the mouse in with a WM_DEVICECHANGED OnMessage() handler

about automating the UI, id suggest poking around to see if u can post some messages to it
by swagfag
09 Aug 2020, 09:10
Forum: Ask For Help
Topic: Best way to troubleshoot Gdip_ImageSearch? Topic is solved
Replies: 20
Views: 4338

Re: Best way to troubleshoot Gdip_ImageSearch? Topic is solved

have u verified whether u actually get an image back when u run ...FromHWND()? ure probably getting just a black screen. u probably had the DWM disabled on win7, so ur captures were working, but on win10 it cant be disabled. if are, in fact, getting an image back, then dump it to disk, load both ima...
by swagfag
09 Aug 2020, 08:48
Forum: Ask For Help
Topic: "if..is type" not working with a property of an object Topic is solved
Replies: 3
Views: 1282

Re: "if..is type" not working with a property of an object Topic is solved

it doesnt work due to the documented limitation of If Var Is Type that it only accepts plain variables and doesnt work with expressions. write urself a type function wrapping If Var Is Type or use one of the numerous ones other people have already posted on the forums or other places on the internet...
by swagfag
08 Aug 2020, 18:06
Forum: AutoHotkey v2 Help
Topic: A strange __set() disturbance Topic is solved
Replies: 28
Views: 13233

Re: A strange __set() disturbance Topic is solved

I would have preferred a simple v2 like VB or Java i, too, would have preferred $LANGUAGE_IM_WORKING_IN to have been an amalgamation of all my favorite features from languages 1..N, but that doesnt seem all that realistic. i guess it could be... if i wrote my own language! however, syntax differenc...
by swagfag
08 Aug 2020, 08:19
Forum: Bug Reports
Topic: [a119] bug: truthy evaluation of byref empty string
Replies: 1
Views: 825

Re: [a119] bug: truthy evaluation of byref empty string

as @aseiot reports https://www.autohotkey.com/boards/viewtopic.php?p=346302#p346302, this is probably about to get fixed in the next release(although i havent personally tested it)
by swagfag
07 Aug 2020, 22:25
Forum: Wish List
Topic: [v2] possible improvements to rare error msg?
Replies: 0
Views: 402

[v2] possible improvements to rare error msg?

see https://www.autohotkey.com/boards/viewtopic.php?p=346235#rare_error for a "realworldish" example Obj := {} Obj.DefineProperty('myProp', { get: {} ; "function object", lacking .Call() }) MsgBox Obj.HasOwnProp('myProp') ; true MsgBox Obj.myProp ; "... doesnt have a property named 'myProp'" basical...
by swagfag
07 Aug 2020, 21:14
Forum: Ask For Help
Topic: D3D9 Ordinal address
Replies: 1
Views: 1243

Re: D3D9 Ordinal address

Code: Select all

addrOrdinal23 := DllCall("GetProcAddress", "Ptr", d3d9_dll, "UInt", 23, "Ptr")
assuming d3d9_dll is a valid module handle. then add ur offset
by swagfag
07 Aug 2020, 19:51
Forum: Ask For Help
Topic: Strange situation: "++" VS "+1"
Replies: 7
Views: 1571

Re: Strange situation: "++" VS "+1"

this is too convoluted to explain(and probably understand). basically, if u hardcode a reference to the variable hGuiImg1 in the global scope(ie, the auto-execute section's or that of any label/hotkey/hotstring), at compile time(ie, when the script has loaded) the blank(until assignment) global vari...
by swagfag
07 Aug 2020, 19:30
Forum: AutoHotkey v2 Help
Topic: A strange __set() disturbance Topic is solved
Replies: 28
Views: 13233

Re: A strange __set() disturbance Topic is solved

This is a simple ClassObject with a property name sure but note E1.name on a line on its own written like this is the invocation of the method .name() passing 0(1 * - the this ) params, and not property access( get ). largely pedantry, but lets be clear about this This is a simple ClassObject with ...

Go to advanced search