Search found 6220 matches
- 03 May 2023, 05:37
- Forum: Ask for Help (v2)
- Topic: Critical Error: Invalid memory read/write (with gamepad script)
- Replies: 18
- Views: 891
Re: Critical Error: Invalid memory read/write (with gamepad script)
could be a script bug. could be an ahk bug. without seeing the script and knowing what actions trigger the error, i cant say anything
- 28 Apr 2023, 03:57
- Forum: Ask for Help (v2)
- Topic: Closing a GUI with Escape key Topic is solved
- Replies: 9
- Views: 1474
Re: Closing a GUI with Escape key Topic is solved
Code: Select all
urgui.OnEvent('Escape', (*) => ExitApp())
- 24 Apr 2023, 01:09
- Forum: Ask for Help (v1)
- Topic: RunWait is waiting much longer than needed.
- Replies: 6
- Views: 339
Re: RunWait is waiting much longer than needed.
and what was the exact command that u ran and measured in PowerShell? surely not the same as the one in the ahk script
- 21 Apr 2023, 04:17
- Forum: Ask for Help (v2)
- Topic: GUI - when used a button 1 time, it does not work afterwards
- Replies: 2
- Views: 195
Re: GUI - when used a button 1 time, it does not work afterwards
"nothing happens" is rather vague. maybe nothing observable happens, in whatever application ure trying to dump all this input into, but thats not an ahk problem - its a ur-code-problem. as it is, i dont see a problem with the (bits of) ahk code uve shown so far. if u dont know what ur script is doi...
- 18 Apr 2023, 21:37
- Forum: Ask for Help (v1)
- Topic: MsgBox if condition is true // note working
- Replies: 7
- Views: 432
Re: MsgBox if condition is true // note working
no need to reassure me nor test it. so much is a given - there is no code written anywhere that would result in such an outcome! if thats the behavior u desire, then u have to code it in and tell ahk to do what u want it to docan assure you that the loop will not stop when the condition is true.
- 18 Apr 2023, 21:29
- Forum: Gaming
- Topic: imagesearch slow, looking for improvements
- Replies: 5
- Views: 575
Re: imagesearch slow, looking for improvements
Ive got a strange problem now... it doesnt work with the key value pair. but it works if I do an IF statements yes, very strange problem indeed. logically impossible even! ure doing something wrong or misinterpreting stuff Strange, the stalwarts pixel always change a bit when braced :( the other un...
- 17 Apr 2023, 13:47
- Forum: Gaming
- Topic: imagesearch slow, looking for improvements
- Replies: 5
- Views: 575
Re: imagesearch slow, looking for improvements
imgsearch is slow because ure doing 7 of them, and every time, the entire screen has to be composited together and screenshotted. and this is whats taking time, not the searching itself. u dont need imagesearch. u can differentiate between which unit is selected by checking one common pixel at one p...
- 17 Apr 2023, 04:13
- Forum: Ask for Help (v1)
- Topic: Hotstring slow and inconsistent
- Replies: 7
- Views: 478
Re: Hotstring slow and inconsistent
there are many factors at play here: ur ahk script's hotstring settings ur ahk script's SendMode settings ur ahk script's SetkeyDelay settings ur receiving application's capability of processing that much input at once if its a lot of text, then it would be best that u paste it CTRL-V, instead of se...
- 17 Apr 2023, 04:07
- Forum: Ask for Help (v1)
- Topic: Can anyone implement a simple tesseract dllcall example? Topic is solved
- Replies: 16
- Views: 4334
Re: Can anyone implement a simple tesseract dllcall example? Topic is solved
MsgBox % DllCall("libtesseract500\TessBaseAPIGetUTF8Text", "Ptr", hAPI, "AStr") This is most likely incorrect, should be pStr := DllCall("libtesseract500\TessBaseAPIGetUTF8Text", "Ptr", hAPI, "Ptr") MsgBox, % StrGet(pStr, "UTF-8") wasnt really the point of the example, but yes its incorrect. should...
- 17 Apr 2023, 03:51
- Forum: Ask for Help (v1)
- Topic: MsgBox if condition is true // note working
- Replies: 7
- Views: 432
Re: MsgBox if condition is true // note working
i dont see why that would be an issue. it "only works" when a string that happens to be stored in one variable is case-insensitively-comparable to another string that happens to be stored in another variable. any other (logical or otherwise) issues u might be having with ur script, go beyond the sco...
- 17 Apr 2023, 03:12
- Forum: Ask for Help (v1)
- Topic: MsgBox if condition is true // note working
- Replies: 7
- Views: 432
Re: MsgBox if condition is true // note working
delete
and write
Code: Select all
MsgBox % (((V4 = supp_md5) = 1) && "The two strings are equal.")
Code: Select all
if (V4 = supp_md5)
MsgBox % "The two strings are equal."
- 17 Apr 2023, 01:55
- Forum: Suggestions on Documentation Improvements
- Topic: Dropping files on Gui not working in admin mode
- Replies: 5
- Views: 1277
Re: Dropping files on Gui not working in admin mode
this is intended https://helgeklein.com/blog/how-to-enable-drag-and-drop-for-an-elevated-mfc-application-on-vistawindows-7/ DllCall('ChangeWindowMessageFilter', 'UInt', WM_DROPFILES := 0x0233, 'UInt', MSGFLT_ADD := 1) DllCall('ChangeWindowMessageFilter', 'UInt', WM_COPYDATA := 0x004A, 'UInt', MSGFLT...
- 15 Apr 2023, 12:54
- Forum: Ask for Help (v1)
- Topic: Display Tab chars in GUI checkbox descriptions?
- Replies: 4
- Views: 831
Re: Display Tab chars in GUI checkbox descriptions?
u dont see the tabs because of this ancient untouched code that doesnt pass the DT_EXPANDTABS flag to DrawText() (except unless uve created a Text control): https://github.com/AutoHotkey/AutoHotkey/blame/27a2d5f2ae392c9d2cf2ef1a2f136659831749b8/source/script_gui.cpp#L3379-L3391 from what ive tested,...
- 15 Apr 2023, 05:20
- Forum: Ask for Help (v2)
- Topic: Variable updates in GUI but not elsewhere?
- Replies: 2
- Views: 298
Re: Variable updates in GUI but not elsewhere?
or dont write this code in the first place. most of it isnt needed anyway Locations := [ "The River", "Field", "Desk" ] MyGui := Gui("+AlwaysOnTop +Owner", "File Location") MyDropDownList1 := MyGui.Add("DropDownList", "R3 Choose1", Locations) MyGui.OnEvent("Close", Gui_Escape(*) => ExitApp()) MyGui....
- 14 Apr 2023, 13:13
- Forum: Ask for Help (v2)
- Topic: #Warn All, Off not working with WinWait command that times out waiting for a window to appear
- Replies: 9
- Views: 670
Re: #Warn All, Off not working with WinWait command that times out waiting for a window to appear
register an OnError() handler and have it watch out for TargetError unhandled exceptions specifically(or all kinds of exceptions, but i dont recommend this since ud be giving up the inherent safety that v2 offers u). then ignore/suppress those exceptions
- 14 Apr 2023, 11:05
- Forum: Ask for Help (v2)
- Topic: #Warn All, Off not working with WinWait command that times out waiting for a window to appear
- Replies: 9
- Views: 670
Re: #Warn All, Off not working with WinWait command that times out waiting for a window to appear
well, it doesnt matter if u got that command, because whats being emitted is not a warning, but an unhandled exception(ie an error)
use a Try-Catch block if u dont care about the outcome of the check
use a Try-Catch block if u dont care about the outcome of the check
- 13 Apr 2023, 22:34
- Forum: Ask for Help (v2)
- Topic: Gui Button OnEvent Hover? Topic is solved
- Replies: 7
- Views: 1116
Re: Gui Button OnEvent Hover? Topic is solved
.Bind() whatever extra arguments u need to the callback
or store ur Buttons in a Map<hwnd, Button> in the global scope and access it directly inside the callback, retrieving a particular instance of a Button by the callback-provided hwnd
or store ur Buttons in a Map<hwnd, Button> in the global scope and access it directly inside the callback, retrieving a particular instance of a Button by the callback-provided hwnd
- 13 Apr 2023, 21:38
- Forum: Ask for Help (v2)
- Topic: Gui Button OnEvent Hover? Topic is solved
- Replies: 7
- Views: 1116
Re: Gui Button OnEvent Hover? Topic is solved
Code: Select all
ToolTip(GuiCtrlFromHwnd(ButtonHwnd).TT)
- 13 Apr 2023, 02:47
- Forum: Ask for Help (v2)
- Topic: [V2] Gui in class
- Replies: 7
- Views: 903
Re: [V2] Gui in class
in that case, yes, that solves it (albeit at the expense of ur object no longer exposing a method the client could call anytime they wanted to. if that wasnt an important feature to have, then whatever, it doesnt matter. but in other cases, u wont be able to avoid storing a circular reference regard...
- 12 Apr 2023, 22:20
- Forum: Ask for Help (v2)
- Topic: API calls to Internet Download Manager in AHK v2 Topic is solved
- Replies: 2
- Views: 533
Re: API calls to Internet Download Manager in AHK v2 Topic is solved
#Requires AutoHotkey v2.0.2 CLSID_CIDMLinkTransmitter := "{AC746233-E9D3-49CD-862F-068F7B7CCCA4}" IID_ICIDMLinkTransmitter2 := "{94D09862-1875-4FC9-B434-91CF25C840A1}" CIDMLinkTransmitter := ComObject(CLSID_CIDMLinkTransmitter, IID_ICIDMLinkTransmitter2) bstrUrl := BSTR("https://filesamples.com/sam...