Search found 10 matches

by slur
12 Jan 2016, 13:07
Forum: Ask for Help (v1)
Topic: Rounding error of Format()
Replies: 0
Views: 584

Rounding error of Format()

Format() shows somewhat arbitrary yet consistent errors What's happening here? ;SetFormat, FloatFast, 0.6 ; Default 74-6-1 ;SetFormat, Float, 0.6 ; 74-386-386 ;SetFormat, Float, 0.15 ; 74-18-18 show_rounding_diff(0.05, 1) show_rounding_diff(0.05, 0.1) show_rounding_diff(0.05, 0.01) ExitApp show_roun...
by slur
10 Dec 2015, 08:32
Forum: Ask for Help (v1)
Topic: Space (s) at end of replacement text
Replies: 1
Views: 720

Re: Space (s) at end of replacement text

Assuming what you mean is hotstring auto replace

Code: Select all

::btw1::
SendInput, % "by the way    "
return

::btw2::
SendInput, by the way%A_Space%%A_Space%%A_Space%%A_Space%
return
by slur
03 Dec 2015, 06:53
Forum: Ask for Help (v1)
Topic: [Solved] GuiControl Move shows white border on resized Progress bars?
Replies: 17
Views: 4888

Re: GuiControl Move shows white border on resized Progress bars?

If there is a style I can apply to make it borderless, that would be great to see. I tried GuiControl, -Border, % "msctls_progress" 320+A_Index in the loop within niceify. That didn't seem to do anything. Maybe WS_EX_STATICEDGE := 0x20000 ? ControlGet, phwnd, hwnd, , % "msctls_progress" 320+A_Index...
by slur
11 Nov 2015, 08:59
Forum: Ask for Help (v1)
Topic: [SOLVED] How can I stop a timer with a Func.Bind(param)?
Replies: 6
Views: 1901

Re: How can I stop a timer with a Func.Bind(param)?

Ooops, I think I was being too cautious, maybe a coward when reading the document If not a valid label name, this parameter can be the name of a function, or a single variable reference containing a function object. For example, SetTimer %funcobj%, 1000 or SetTimer % funcobj, 1000. Other expressions...
by slur
11 Nov 2015, 03:37
Forum: Ask for Help (v1)
Topic: [SOLVED] How can I stop a timer with a Func.Bind(param)?
Replies: 6
Views: 1901

[SOLVED] How can I stop a timer with a Func.Bind(param)?

I know it's not in official document but since I find some users using SetTimer like this here and there, I gave it a try KeyHistory return !F12:: ExitApp F1:: F_TimerBound := Func("TimerTest").Bind(A_Now) SetTimer, %F_TimerBound% return TimerTest(_p) { Global F_TimerBound SetTimer, %F_TimerBound%, ...
by slur
21 Oct 2015, 05:35
Forum: Scripts and Functions (v1)
Topic: ToolTipFont / ToolTipColor - options for the ToolTip command
Replies: 92
Views: 50657

Re: ToolTipFont / ToolTipColor - options for the ToolTip command

I don't know this is just me or not but this code gives me funny results ToolTipFont("s12") test := "Hello" tooltip, %test%, 40, 0, 1 tooltip, % test . A_Space, 40, 40, 2 tooltip, % 1 + 0, 40, 80, 3 tooltip, %A_Space%, 40, 120, 4 tooltip, % InStr(test, "o"), 40, 160, 5 tooltip, % test ? "yes" : "no"...
by slur
29 Aug 2014, 22:01
Forum: Scripts and Functions (v1)
Topic: ToolTipEx - custom fonts and colors in ToolTips
Replies: 40
Views: 19095

Re: ToolTipEx - custom fonts and colors in ToolTips

Then maybe it's on my side :crazy:
I get Image with this code.
ToolTipEx("Hello`r`nWorld!")

WindowsXP SP3 AHK_L 1.1.15.03
by slur
29 Aug 2014, 13:21
Forum: Scripts and Functions (v1)
Topic: ToolTipEx - custom fonts and colors in ToolTips
Replies: 40
Views: 19095

Re: ToolTipEx - custom fonts and colors in ToolTips

May I ask how to display new line(`n) or carriage return(`r) in the text?
by slur
13 Jun 2014, 07:31
Forum: Scripts and Functions (v1)
Topic: [LIB] EWinHook - SetWinEventHook implementation
Replies: 19
Views: 11142

Re: [LIB] EWinHook - SetWinHookEvent implementation

I'm experiencing some kinda glitch with WinEventHook function and ErrorLevel. To be more on point, the ErrorLevel AHK gives me changes by the codes inside WinEventHook function. This is especially frustrating with InputBox command because there seems to be no other way (besides ErrorLevel) to determ...

Go to advanced search