AutoHotkey Community

It is currently May 24th, 2012, 7:00 am

All times are UTC [ DST ]


Search found 30 matches
Search these results:

Author Message

 Forum: Suggestions   Topic: Hotkey as Switch and Start/Stop-Toggle

Posted: December 11th, 2006, 4:19 pm 

Replies: 20
Views: 3070


For binary toggle you can do something similar to !z:: toggle := toggle = "ON" ? "OFF" : "ON" If (toggle = "ON") { TrayTip,,ON } Else { TrayTip,,OFF } Or even simpler: !z:: toggle := !toggle If (toggle) { TrayTip,,ON &...

 Forum: Issues   Topic: A_TimeSincePriorHotkey returns a too large value

Posted: November 22nd, 2006, 5:37 pm 

Replies: 11
Views: 2182


Roman, The reason for this behavior is that the OS's window animation effects (that occur on minimize/maximize/restore) have a much higher priority than the AHK process running your script (Realtime vs. Normal). This causes the script execution to be delayed until the OS has finished displaying the ...

 Forum: Suggestions   Topic: Gui Color/Gui Destroy

 Post subject: Re: Gui Color/Gui Destroy
Posted: October 24th, 2006, 10:09 am 

Replies: 2
Views: 758


Destroy Removes the window (if it exists) and all its controls, freeing the corresponding memory and system resources . Try Gui Hide instead: Gui +AlwaysOnTop -Caption -SysMenu Gui Color, Black ^!s:: Amt := !Amt If (Amt) Gui Show, x0 y0 w%A_ScreenWidth% h%A_ScreenHeight%, ScreenCover Else G...

 Forum: Support   Topic: Instance running under user "SYSTEM" exits itself

Posted: October 15th, 2006, 2:40 pm 

Replies: 6
Views: 745


Any tips on commands I should use in the proposed onExit debug-script? SplitPath, A_ScriptName, , , , ScriptNameNoExt szLogFile = C:\AHK\%ScriptNameNoExt%.log OnExit, ExitSub ExitSub: szMsg = %A_Hour%:%A_Min%:%A_Sec%: The script is being terminated by %A_ExitReason%. FileAppend, %szMsg%`n, %szLogFi...

 Forum: Support   Topic: Instance running under user "SYSTEM" exits itself

Posted: October 14th, 2006, 6:04 pm 

Replies: 6
Views: 745


Here is a simpler alternative: RAlt & l::DllCall("User32\LockWorkStation") the {WinKey UP} and {l up} commands are either not received or not send by the script. This is because locking the workstation switches from the current application desktop (e.g. \Windows\WinSta0\default...

 Forum: Support   Topic: Corrupt Registry Keys

Posted: October 9th, 2006, 11:11 pm 

Replies: 7
Views: 900


I failed to mention that I had also gone into extended properties and taken ownership. Even with that, can't delete the key. Have you tried the same under HKLM\SOFTWARE\Classes? Might be worth trying as, as you may already know, HKCR is just an alias to a mix of HKLM\SOFTWARE\Classes and HKCU\SOFTW...

 Forum: Support   Topic: UpDown control with increments other than 1

Posted: October 8th, 2006, 1:35 am 

Replies: 12
Views: 1146


Perhaps it would be nice to have the UpDown control support irregular steps natively, in one of the future releases. Yes, I would prefer that too (provided that by "irregular" you mean "non-unitary", not "erratic" :)). I did not feel that it had any educational value f...

 Forum: Support   Topic: UpDown control with increments other than 1

Posted: October 7th, 2006, 6:52 pm 

Replies: 12
Views: 1146


Thanks Icarus for sharing this alternative. No doubt it's more accessible to novices interested to understand how it works than my method, which is more oriented towards performance, flexibility and ease of implementation. I seem to remember there's a reason for doing it that way Actually, there are...

 Forum: Suggestions   Topic: [UpDown GUI Control] - Extra Parameter "Increment Amoun

Posted: September 17th, 2006, 8:02 pm 

Replies: 11
Views: 1567


(as opposed to foom approach which seems, alas, to have hit a limitation in AHK) The bug behind this limitation has been fixed in release 1.0.44.11: Fixed inability of OnMessage() to consistently monitor certain messages such as WM_NOTIFY. I had ran into this bug with my implementation of Chris' su...

 Forum: Support   Topic: negative expression does not evaluate using **

Posted: September 3rd, 2006, 8:16 am 

Replies: 19
Views: 1363


Laszlo, thanks for your comments; as I rarely work with cubic roots, I overlooked obvious things :? I've corrected my post. AHK cannot always distinguish between real and rational arguments, so the simplest solution was to supply the numerator and denominator of the exponent separately. I may have m...

 Forum: Support   Topic: negative expression does not evaluate using **

Posted: September 2nd, 2006, 11:14 pm 

Replies: 19
Views: 1363


If anyone knows a simple way to derive support for all negative cases using only the existing, positive-number functionality, I could try to implement it in the code. Supporting all negative cases would imply the ability for AHK to handle imaginary numbers. Without such support, the only solution I...

 Forum: Support   Topic: negative expression does not evaluate using **

Posted: September 2nd, 2006, 6:49 pm 

Replies: 19
Views: 1363


An alternative with support for negative base: Pow(fBase, fExp) { If (fBase < 0 && Mod(fExp, 1)) Return Else Return (Abs(fBase)**fExp) * ((fBase < 0 && Mod(fExp, 2)) * -2 + 1) } Example: x := -2 y := 3 MsgBox, ...

 Forum: Issues   Topic: Crash on WinMinimize

Posted: August 26th, 2006, 3:26 am 

Replies: 5
Views: 1335


The program could be changed to use SW_FORCEMINIMIZE unconditionally on OSes that support it; but that might have undesirable side-effects and/or break existing scripts if its timing or behavior is even slightly different than SW_MINIMIZE. Yes, it's probably better not to use the forced method when...

 Forum: Issues   Topic: Crash on WinMinimize

Posted: August 24th, 2006, 2:54 am 

Replies: 5
Views: 1335


Note 1: When run on Windows NT/2000/XP, IsWindowHung() is basically a synonym for IsHungAppWindow(). So a part of the problem might be that, in the current case, IsHungAppWindow() considers that the target window is not hung as it's unresponsive but has not finished initializing: IsHungAppWindow Fu...

 Forum: Issues   Topic: Crash on WinMinimize

 Post subject: Crash on WinMinimize
Posted: August 22nd, 2006, 4:16 pm 

Replies: 5
Views: 1335


AutoHotkey crashes on running WinMinimize if the target window is hung.
This occurs systematically with windows that take more than a few hundred milliseconds to respond to ShowWindow().
Sort by:  
Page 1 of 2 [ Search found 30 matches ]


All times are UTC [ DST ]


Powered by phpBB® Forum Software © phpBB Group