Search found 156 matches

by SAbboushi
08 Aug 2018, 18:44
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.0.06.01 Lexikos' DebugVars build [Updated 12th July 2017]
Replies: 24
Views: 13164

Re: SciTE4AutoHotkey v3.0.06.01 Lexikos' DebugVars build [Updated 12th July 2017]

Thanks for the replies-- I didn't write any of the code though, I just packaged it. I know - your post makes that quite clear! I was just posting about the disappearing window in case it was helpful to someone else. Do you have a hotkey that minimizes windows? I do not think there is any other way t...
by SAbboushi
08 Aug 2018, 10:56
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.0.06.01 Lexikos' DebugVars build [Updated 12th July 2017]
Replies: 24
Views: 13164

Re: SciTE4AutoHotkey v3.0.06.01 Lexikos' DebugVars build [Updated 12th July 2017]

2 annoyances: one I've found how to resolve each time I start a new debug session on my script, my debug Variables window opens up several pixels wider than it was last time. I suspect it has to do with AHK V1 WinGetPos gets the full window dimensions, while the Gui Show, w%Width%... command ignores...
by SAbboushi
08 Aug 2018, 01:18
Forum: AutoHotkey v2 Development
Topic: How to make sure timer is run again instead of reset Topic is solved
Replies: 12
Views: 2264

Re: How to make sure timer is run again instead of reset Topic is solved

There is only one timer for every unique Callback , that is why, if you pass two unique boundfuncs ( func('MsgBox1').bind() ), you can have two calls to the function. If MsgBox1 is a closure, you can just refer to it by name, then a new closure is created for every call to settimer . Thanks for tha...
by SAbboushi
04 Aug 2018, 16:14
Forum: AutoHotkey v2 Development
Topic: How to make sure timer is run again instead of reset Topic is solved
Replies: 12
Views: 2264

Re: How to make sure timer is run again instead of reset Topic is solved

2.The timer subroutine itself takes longer than its own period to run, [...] I'm assuming that #2 is not relevant to a period of -1 or to my post... but if I'm missing something, would you please point it out? But this has nothing to do with the issue. I assume you're referring to my question Is th...
by SAbboushi
04 Aug 2018, 15:47
Forum: AutoHotkey v2 Development
Topic: AHK V2: Why does auto-execute thread get interrupted by timers...
Replies: 23
Views: 3392

Re: AHK V2: Why does auto-execute thread get interrupted by timers...

WoW! Thanks for explaining and the examples. I just could not see that from the documentation and my testing. Is there some advantage to it working this way that I just can't see, or is the behavior a byproduct of some limitation or something else?
by SAbboushi
04 Aug 2018, 13:52
Forum: AutoHotkey v2 Development
Topic: AHK V2: Why does auto-execute thread get interrupted by timers...
Replies: 23
Views: 3392

Re: AHK V2: Why does auto-execute thread get interrupted by timers...

The key point is about which commands have this effect (commands which display a dialog), not about the exact moment at which it happens. You are clearly calling MsgBox, and this is making the thread interruptible. For those who are confused like I was: Lexikos's response was helpful to make sense ...
by SAbboushi
04 Aug 2018, 10:43
Forum: AutoHotkey v2 Development
Topic: AHK V2: Why does auto-execute thread get interrupted by timers...
Replies: 23
Views: 3392

Re: AHK V2: Why does auto-execute thread get interrupted by timers...

unless the auto-execute thread takes longer than 100ms to run?? ...or has ended. I thought I finally understood it... that you were telling me the timer threads were created after the auto-execute thread had ended, which is why they started as the "standard default" non-critical... but I added Loop...
by SAbboushi
04 Aug 2018, 09:13
Forum: AutoHotkey v2 Development
Topic: AHK V2: Why does auto-execute thread get interrupted by timers...
Replies: 23
Views: 3392

Re: AHK V2: Why does auto-execute thread get interrupted by timers...

oops - let me ammend: ... which doesn't make sense to me: because this suggests to me that "default values" I define in the auto-execute section (e.g. Critical) are ignored not used as default settings for new threads unless the auto-execute thread takes longer than 100ms to run??
by SAbboushi
04 Aug 2018, 01:30
Forum: AutoHotkey v2 Development
Topic: AHK V2: Why does auto-execute thread get interrupted by timers...
Replies: 23
Views: 3392

Re: AHK V2: Why does auto-execute thread get interrupted by timers...

Seems I must be somewhat dumb, because it's still not clear to me despite my testing: If the auto-execute section takes a long time to complete (or never completes), the default values for the above settings will be put into effect after 100 milliseconds. :crazy: As best as I can tell (based upon my...
by SAbboushi
04 Aug 2018, 00:37
Forum: AutoHotkey v2 Development
Topic: AHK V2: Why does auto-execute thread get interrupted by timers...
Replies: 23
Views: 3392

Re: AHK V2: Why does auto-execute thread get interrupted by timers...

Thanks lexikos - that's the info I needed to understand what was going on! re: setting defaults in the auto-execute section: I assume you're responding to my query Adding Sleep 100 between Critical and SetTimer statements results in M1_critical = 16. So this delay seems to determine whether or not t...
by SAbboushi
03 Aug 2018, 23:23
Forum: AutoHotkey v2 Development
Topic: AHK V2: Why does auto-execute thread get interrupted by timers...
Replies: 23
Views: 3392

Re: AHK V2: Why does auto-execute thread get interrupted by timers...

Already done that-- and Helgef has already posted the one reference to MsgBox above. Both you and Helgef are telling me the same thing, but it's not making sense. It seems to me that the documentation differs from my testing: A critical thread becomes interruptible when a MsgBox or other dialog is d...
by SAbboushi
03 Aug 2018, 18:53
Forum: AutoHotkey v2 Development
Topic: AHK V2: Why does auto-execute thread get interrupted by timers...
Replies: 23
Views: 3392

Re: AHK V2: Why does auto-execute thread get interrupted by timers...

Adding Sleep 100 between Critical and SetTimer statements results in M1_critical = 16. So this delay seems to determine whether or not the timer thread starts as Critical or not. Hoping someone can clarify this (to me) confusing behavior and whether it contradicts the documentation reference I posted.
by SAbboushi
03 Aug 2018, 17:30
Forum: AutoHotkey v2 Development
Topic: AHK V2: Why does auto-execute thread get interrupted by timers...
Replies: 23
Views: 3392

Re: AHK V2: Why does auto-execute thread get interrupted by timers...

OK... now I'm more confused. I discovered the A_IsCritical command which looked like the way to answer my own question: positioning Critical after the SetTimer statements did not set MsgBox1 thread to Critical. However, positioning Critical before the SetTimer statements did not set MsgBox1 thread t...
by SAbboushi
03 Aug 2018, 16:49
Forum: AutoHotkey v2 Development
Topic: AHK V2: Why does auto-execute thread get interrupted by timers...
Replies: 23
Views: 3392

Re: AHK V2: Why does auto-execute thread get interrupted by timers...

I didn't post the functions called by the timers -- didn't think that was relevant to answer my question(s), but since I don't understand what's going on, maybe I'm mistaken! MsgBox1() { MsgBox "M1`n+" ElapsedTime := A_TickCount - StartTime static j:=0 j++ gui:=guicreate(,"gui1") gui.Add("Text","w30...
by SAbboushi
03 Aug 2018, 16:19
Forum: AutoHotkey v2 Development
Topic: AHK V2: Why does auto-execute thread get interrupted by timers...
Replies: 23
Views: 3392

Re: AHK V2: Why does auto-execute thread get interrupted by timers...

I don't see how that applies: if auto-execute is a critical thread, then it would need to be interrupted IN ORDER FOR MsgBox1 to display -- unless you're confirming that the timers are set to Critical even though they were (Edit: set enabled) before the Critical statement...?
by SAbboushi
03 Aug 2018, 15:38
Forum: AutoHotkey v2 Development
Topic: AHK V2: Why does auto-execute thread get interrupted by timers...
Replies: 23
Views: 3392

AHK V2: Why does auto-execute thread get interrupted by timers...

Why does auto-execute thread get interrupted by timers if Critical statement is executed before any timer functions are called? #SingleInstance Force global StartTime := A_TickCount SetTimer "MsgBox1", -1 SetTimer "MsgBox2", -1,-1 SetTimer "MsgBox3", -1 ; Timers are enabled before auto-execute is se...
by SAbboushi
02 Aug 2018, 21:21
Forum: Scripts and Functions
Topic: ScriptInfo(): Get ListLines/ListVars/ListHotkeys/KeyHistory text
Replies: 17
Views: 5778

Re: ScriptInfo(): Get ListLines/ListVars/ListHotkeys/KeyHistory text

Thanks! Needed this for AHK V2. Posting here in case anyone else needs it ;==================================================================================================== ; NOTES ;==================================================================================================== /* 8/2/2018 1:...
by SAbboushi
02 Aug 2018, 15:06
Forum: AutoHotkey v2 Development
Topic: AHK V2: match object: backreference name as key?
Replies: 2
Views: 724

AHK V2: match object: backreference name as key?

Is there a way to get match object keys to be the backreference names instead of backreference numbers, or is that a feature request?
by SAbboushi
02 Aug 2018, 12:23
Forum: AutoHotkey v2 Development
Topic: AHK V2: Is there a way to get full CallStack in script instead of just for current thread?
Replies: 2
Views: 691

AHK V2: Is there a way to get full CallStack in script instead of just for current thread?

I'm looking to get (in script) something like what a debugger provides, but as far as I can tell, using Exception object only returns Callstack info for the current thread: SciTE4AutoHotkey Callstack: Script filename Line Stack entry --------------- ---- ------------------- GetCallStack.ahk 71 GetCa...

Go to advanced search