Search found 299 matches

by pneumatic
27 Sep 2017, 21:54
Forum: Bug Reports
Topic: Undocumented behaviour of Edit control's gLabel
Replies: 28
Views: 5599

Re: Bizarre, undocumented behaviour of Edit control's gLabel

Yes, the variable method doesn't work, but the -g method seems to work. -g must actually be turning off the associated WM altogether , because if not and it's simply ignoring the WM, then +g should be executing before the WM arrives, as per the case with variable method. I hope it's not just a luck ...
by pneumatic
27 Sep 2017, 19:23
Forum: Ask For Help
Topic: Can't set timeout for ComObjCreate("Msxml2.XMLHTTP")
Replies: 8
Views: 3304

Re: Can't set timeout for ComObjCreate("Msxml2.XMLHTTP")

First of all, this request appears to return quite fast for me. I don't see how you are having 3 seconds of unresponsiveness in your GUI. Different internet connection speeds I guess, and I think it still gets cached a little bit after the first download. But even if it was quick it's still not goo...
by pneumatic
27 Sep 2017, 17:32
Forum: Ask For Help
Topic: Can't set timeout for ComObjCreate("Msxml2.XMLHTTP")
Replies: 8
Views: 3304

Re: Can't set timeout for ComObjCreate("Msxml2.XMLHTTP")

I think the problem is the com object is not the right version, because there are at least 2 other similar versions of that object which support those same features EXCEPT setting the timeout: https://msdn.microsoft.com/en-us/library/ms760305(v=vs.85).aspx https://www.w3schools.com/xml/ajax_xmlhttpr...
by pneumatic
27 Sep 2017, 16:47
Forum: Bug Reports
Topic: Undocumented behaviour of Edit control's gLabel
Replies: 28
Views: 5599

Re: Bizarre, undocumented behaviour of Edit control's gLabel

define a variable which causes the routine to return if set to (eg) true I don't think that would work reliably enough for me because the EN_CHANGE/WM_SETTEXT event is happening in the background in its own thread according to its own timing and can't be guaranteed to have finished before putting t...
by pneumatic
27 Sep 2017, 05:59
Forum: Bug Reports
Topic: Undocumented behaviour of Edit control's gLabel
Replies: 28
Views: 5599

Re: Bizarre, undocumented behaviour of Edit control's gLabel

Even the workaround of adding gLabels afterwards is STILL not good enough, because putting new contents into the control with GuiControl causes the gLabel to fire, and there doesn't seem to be any way of preventing it. You may not think it's important to update a control without triggering glabel, b...
by pneumatic
26 Sep 2017, 20:57
Forum: Ask For Help
Topic: Can't set timeout for ComObjCreate("Msxml2.XMLHTTP")
Replies: 8
Views: 3304

Re: Can't set timeout for ComObjCreate("Msxml2.XMLHTTP")

kczx3 wrote:Try specifying version 6.0 when you create the COM object and using the setTimeouts method.
https://www.reddit.com/r/vba/comments/4 ... nchronous/
Tried without success, but thanks for the suggestion.
by pneumatic
26 Sep 2017, 18:24
Forum: Ask For Help
Topic: Can't set timeout for ComObjCreate("Msxml2.XMLHTTP")
Replies: 8
Views: 3304

Re: Can't set timeout for ComObjCreate("Msxml2.XMLHTTP")

First attempt at a workaround. edit: note that this isn't actually monitoring connection timeout but rather an "abort if entire download is not complete in x seconds" and would not work for large files that take more than a few seconds to download. I will try to come up with a solution for that by m...
by pneumatic
26 Sep 2017, 05:13
Forum: Ask For Help
Topic: Can't set timeout for ComObjCreate("Msxml2.XMLHTTP")
Replies: 8
Views: 3304

Can't set timeout for ComObjCreate("Msxml2.XMLHTTP")

Hello I am trying to download a very small piece of text without having it freeze my whole script for several seconds. At first I tried URLDownloadToFile which suffers that problem, and also it seems to be reported as unreliable with firewall/antivirus. Then I tried the second example in the doc (Wi...
by pneumatic
26 Sep 2017, 01:18
Forum: Bug Reports
Topic: Bug with replication of script when reload
Replies: 6
Views: 2219

Re: Bug with replication of script when reload

Possibly related , https://autohotkey.com/boards/viewtopic ... 14&t=37510
Doesn't look like you are renaming the window though, so probably not.
by pneumatic
26 Sep 2017, 01:12
Forum: Ask For Help
Topic: KeyboardHook installing itself without apparent reason
Replies: 2
Views: 638

KeyboardHook installing itself without apparent reason

The first instance of the below script has no keyboard hook, however any more instances have their keyboard hook installed.

Code: Select all

#SingleInstance Off
#Persistent
#NoEnv
SetBatchLines -1
DetectHiddenWindows On
KeyHistory
Return

^!Numpad1::
return
by pneumatic
26 Sep 2017, 01:07
Forum: Bug Reports
Topic: WinSetTitle breaks #SingleInstance Force
Replies: 2
Views: 949

WinSetTitle breaks #SingleInstance Force

Renaming the script's own window, even to the same name it's normally given by AHK, causes #SingleInstance Force to no longer work

Code: Select all

#SingleInstance Force
#Persistent
#NoEnv
SetBatchLines -1
DetectHiddenWindows On
WinSetTitle ,% "ahk_id " A_ScriptHwnd ,,MyScript.ahk - AutoHotkey v1.1.24.03
Return
by pneumatic
25 Sep 2017, 19:03
Forum: Bug Reports
Topic: Undocumented behaviour of Edit control's gLabel
Replies: 28
Views: 5599

Re: Bizarre, undocumented behaviour of Edit control's gLabel

There's no quirk at all. I presume Windows has some good reason for sending a message of "controls contents have changed" on creation (even though they haven't in the case of Edit=0 and UpDown=0). If there is a good reason, then ok fair enough, it's not a quirk with Windows, but it's still a quirk ...
by pneumatic
24 Sep 2017, 20:31
Forum: Bug Reports
Topic: Undocumented behaviour of Edit control's gLabel
Replies: 28
Views: 5599

Re: Bizarre, undocumented behaviour of Edit control's gLabel

Should we just add the line, "Controls gLabel might fire at any random given time when anything totally unrelated happens, due to the way windows works. I was under the impression AHK is supposed to be an API that translates my commands into "the way windows works". [Looking at your GUI you can see...
by pneumatic
23 Sep 2017, 18:26
Forum: Bug Reports
Topic: Undocumented behaviour of Edit control's gLabel
Replies: 28
Views: 5599

Undocumented behaviour of Edit control's gLabel

An Edit control's gLabel fires on control creation if attached to an UpDown control This issue was reported back in 2013 here , but doesn't seem to have been addressed, so I am nagging you again here to fix it. Why? Because it causes noobs like me to pull their hair out for hours on end wondering w...
by pneumatic
17 Sep 2017, 15:37
Forum: Ask For Help
Topic: How are these strings interpreted? Topic is solved
Replies: 2
Views: 635

How are these strings interpreted? Topic is solved

In my script I am using the strings +++ and --- to function as open/close folding delimiters for Notepad++. For example: +++ ;Script Settings #Persistent #NoTrayIcon SetBatchLines -1 --- So far they don't seem to be interfering with the execution of my script, but I suspect they are still getting in...
by pneumatic
13 Sep 2017, 16:57
Forum: Ask For Help
Topic: Simple question about If statement Topic is solved
Replies: 4
Views: 967

Re: Simple question about If statement Topic is solved

Since you both offer the same solution, I don't know whose to tick. I guess I'll go with teadrinker because you made a function out of it (sorry A_AhkUser :D)

Although I'm not sure whether the solution is actually any faster than just assigning the array value to a var :think:
by pneumatic
13 Sep 2017, 16:17
Forum: Ask For Help
Topic: Simple question about If statement Topic is solved
Replies: 4
Views: 967

Simple question about If statement Topic is solved

if Array[A_Index] is not number if % Array[A_Index] is not number if % (Array[A_Index]) is not number if % Array[%A_Index%] is not number if Array[%A_Index%] is not number if (Array[A_Index]) is not number Please put me out of my misery and tell me it's not possible. The documentation seems to impl...
by pneumatic
31 Aug 2017, 23:03
Forum: Ask For Help
Topic: Slider control's A_GuiEvent = 4 is unreliable
Replies: 34
Views: 5759

Re: Slider control's A_GuiEvent = 4 is unreliable

wouldn't you rather code in the best practice you can, rather than a quick band-aid. I agree thats why I ended up putting the code elsewhere on other controls in my script rather than using one of these band aids. Also constantly monitoring WM_LBUTTONUP with OnMessage for the entire time your progr...
by pneumatic
31 Aug 2017, 07:49
Forum: Ask For Help
Topic: Slider control's A_GuiEvent = 4 is unreliable
Replies: 34
Views: 5759

Re: Slider control's A_GuiEvent = 4 is unreliable

You said that your current control label is running about 24 ms on your i7-4790k CPU. So a timer delay of max 15.6 ms doesn't matter. Even though the documentation doesn't specifically say, I believe it's the timer's duration in addition to the slider's subroutine time which is actually occurring. ...
by pneumatic
31 Aug 2017, 04:16
Forum: Ask For Help
Topic: Slider control's A_GuiEvent = 4 is unreliable
Replies: 34
Views: 5759

Re: Slider control's A_GuiEvent = 4 is unreliable

just me wrote:It does work in the demo. :roll:
But not well enough for the reasons mentioned.

Go to advanced search