Search found 21 matches

by hitman
14 Feb 2024, 20:32
Forum: Bug Reports
Topic: Rounding Bug
Replies: 45
Views: 5511

Re: Rounding Bug

Code: Select all

SRound(Num, N := "")
{
   if (N = "") || (N = 0)
      return Round(Num)
   else if (N < 0)
      return Round(Num, N)
   else ; N > 0
   {
      return Round(Round(Num * (10**(N+1)), -1) / (10**(N+1)),N)
   }
}
by hitman
14 Feb 2024, 10:07
Forum: Bug Reports
Topic: Rounding Bug
Replies: 45
Views: 5511

Re: Rounding Bug

Version 2.0.11 n := 2.515 MsgBox Round(n,2) ; ->2.52 Correct n := 3.515 MsgBox Round(n,2) ; ->3.52 Correct n := 4.515 MsgBox Round(n,2) ; ->4.51 It's not correct!!! n := 5.515 MsgBox Round(n,2) ; ->5.52 Correct [Mod edit: Added [code][/code] tags. Please use them yourself when posting code!]
by hitman
30 Nov 2023, 02:00
Forum: 脚本函数
Topic: 自用ahk热键脚本及相关回顾
Replies: 7
Views: 9258

Re: 自用ahk热键脚本及相关回顾

感谢阿让的总结分享
by hitman
31 Dec 2021, 10:26
Forum: Ask for Help (v1)
Topic: Type Mismatch with Hex Color
Replies: 3
Views: 755

Re: Type Mismatch with Hex Color

pp.ActiveWindow.Selection.ShapeRange.Fill.ForeColor.RGB := color+0
by hitman
20 Oct 2021, 02:20
Forum: Ask for Help (v1)
Topic: IF(equivalence test) Topic is solved
Replies: 8
Views: 741

Re: IF(equivalence test) Topic is solved

remove space

Code: Select all

selection:=trim(selection)
by hitman
15 Oct 2021, 08:08
Forum: Wish List
Topic: The underlying code for parsing objects is used as a built-in function
Replies: 4
Views: 3022

Re: The underlying code for parsing objects is used as a built-in function

https://github.com/cocobelgica/AutoHotkey-SerDes ;#Include SerDes.ahk ref := ["Hello"] obj := [{"Hello":"Hello`nWorld"}, {(ref):"World"}, ref] ;// Object to serialize ; 1 2 3 4 ;// Shows '[ {"Hello":"Hello`nWorld"}, { ["Hello"]:"World"}, $4]' MsgBox % out := SerDes(obj) ;// Serialize and display ou...
by hitman
23 Jun 2021, 22:59
Forum: Wish List
Topic: The underlying code for parsing objects is used as a built-in function
Replies: 4
Views: 3022

Re: The underlying code for parsing objects is used as a built-in function

ahk_obj:= (LTrim Join { exe:a_ahkpath, arr:[3,2,1] } ) str:=obj2str(ahk_obj) MsgBox %str% obj:=str2obj(str) MsgBox % obj.exe for k,v in obj.arr MsgBox % v obj2str(_obj) { if Isobject( _obj ) { isArray := true for key in _obj if !( key = A_Index || isArray := false ) break for k, v in _obj str .= ( ...
by hitman
17 Nov 2020, 09:49
Forum: Ask for Help (v1)
Topic: Menu, Tray, Icon, busted…
Replies: 2
Views: 692

Re: Menu, Tray, Icon, busted…

Code: Select all

#Persistent
SetTimer, showNext, 500
return

showNext:
ifwinactive ahk_class VISIOA
  Suspend on
else
{
  Suspend off
  Menu, TRAY, Icon, *   ;恢复默认
  }
return
by hitman
26 Jun 2020, 10:33
Forum: 相关工具
Topic: 炫彩界面库
Replies: 4
Views: 19683

Re: 炫彩界面库

感谢分享,来晚了
by hitman
26 Jan 2019, 21:01
Forum: 教程资料
Topic: 用对象获取列表反集,速度飞快
Replies: 2
Views: 19067

Re: 用对象获取列表反集,速度飞快

方法一46.875

方法二0.078

萝卜的方法:0.047
by hitman
13 Jan 2019, 10:50
Forum: 脚本函数
Topic: ListView数据或数组生成Excel
Replies: 13
Views: 19348

Re: ListView数据或数组生成Excel

用到了,谢谢大神
by hitman
13 Jan 2019, 10:49
Forum: 脚本函数
Topic: Listview example
Replies: 3
Views: 16977

Re: Listview example

感谢分享! :D
by hitman
06 Sep 2018, 10:02
Forum: 脚本函数
Topic: AHK 机器码(MCode)的制作
Replies: 9
Views: 19968

Re: AHK 机器码(MCode)的制作

感谢飞跃大神分享,希望飞跃大神再研究下ahk+lua的混合编程!
by hitman
06 Dec 2017, 21:11
Forum: 脚本函数
Topic: 脚本调试辅助器
Replies: 6
Views: 23653

Re: 脚本调试辅助器

向前辈致敬
by hitman
29 Aug 2017, 08:37
Forum: Ask for Help (v1)
Topic: Sending keystrokes to background windows - inconsistent results.
Replies: 4
Views: 1638

Re: Sending keystrokes to background windows - inconsistent results.

ControlSend,paneClassDC1,{F5},ahk_exe POWERPNT.EXE
by hitman
20 Aug 2017, 21:06
Forum: Scripts and Functions (v1)
Topic: aria2 rpc
Replies: 7
Views: 7378

Re: aria2 rpc

good!
by hitman
13 Apr 2017, 22:05
Forum: 脚本函数
Topic: AHK 进程管理
Replies: 6
Views: 12820

Re: AHK 进程管理

thx,good!
by hitman
22 Jan 2016, 12:09
Forum: 相关工具
Topic: Iceberg 鼠标位置
Replies: 1
Views: 14882

Re: Iceberg 鼠标位置

赞!灵活!约定胜于配置!

Go to advanced search