Search found 3027 matches

by jeeswg
Today, 12:01
Forum: Ask For Help
Topic: Help with exclude folders from loop
Replies: 8
Views: 122

Re: Help with exclude folders from loop

I have written some code re. displaying a friendly file size, using the Winapi, and via pure AHK: Floor/Ceil able to handle decimal places (cf. Excel's Trunc function) - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=5&t=41539&p=189277#p189277 WinAPI - GetXxxFormat Functi...
by jeeswg
Today, 12:00
Forum: Ask For Help
Topic: Floor/Ceil able to handle decimal places (cf. Excel's Trunc function)
Replies: 1
Views: 17

Re: Floor/Ceil able to handle decimal places (cf. Excel's Trunc function)

One potential use for this would be in displaying disk drive capacities, which should normally be rounded down. ;[JEE_Floor function] ;Floor/Ceil able to handle decimal places (cf. Excel's Trunc function) - AutoHotkey Community ;https://autohotkey.com/boards/viewtopic.php?f=5&t=41539 q:: ;friend...
by jeeswg
Today, 11:57
Forum: Scripts and Functions
Topic: WinAPI - GetXxxFormat Functions
Replies: 8
Views: 2036

Re: WinAPI - GetXxxFormat Functions

It might be worth including this here. StrFormatByteSize to display a file size in a friendly format. q:: ;friendly display file size vText := "" vSizeFile := 123456789 VarSetCapacity(vText, vSize := 260*2, 0) ;(no suggested size in MSDN) DllCall("shlwapi\StrFormatByteSize", Int6...
by jeeswg
Today, 11:32
Forum: Ask For Help
Topic: Floor/Ceil able to handle decimal places (cf. Excel's Trunc function)
Replies: 1
Views: 17

Floor/Ceil able to handle decimal places (cf. Excel's Trunc function)

- Round can round a number to n decimal places, or to the nearest ten/hundred/thousand etc. - I was trying to create versions of Floor and Ceil that could do the same thing. I share them here because it's a little fiddly, in case anyone notices any problems or has any suggestions. - An improved Floo...
by jeeswg
Today, 08:58
Forum: Ask For Help
Topic: Interacting with specific elements in unique programs
Replies: 4
Views: 122

Re: Interacting with specific elements in unique programs

An example to get the toolbar button command IDs and text, in order to invoke toolbar menu items. ;functions needed to run the script: ;[Acc functions] ;Acc library (MSAA) and AccViewer download links - AutoHotkey Community ;https://autohotkey.com/boards/viewtopic.php?f=6&t=26201 ;GUIs via DllCa...
by jeeswg
Today, 06:52
Forum: Bug Reports
Topic: Wrong hotkey script triggered
Replies: 2
Views: 55

Re: Wrong hotkey script triggered

- @cdw3423 and @lexikos: Thanks for these interesting posts. - Here's are three other issues re. AutoHotkey and modifiers. hotkeys can disable each other - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=5&t=36339 Strange fallback if one more hotkey added - AutoHotkey Communit...
by jeeswg
Today, 06:36
Forum: Ask For Help
Topic: Has to do with WinActive maybe, please help!
Replies: 2
Views: 27

Re: Has to do with WinActive maybe, please help!

Some ideas:

Code: [Select all] [Expand]GeSHi © Codebox Plus

by jeeswg
Today, 05:02
Forum: Offtopic
Topic: slow menus: Font dialog/New menu/file context menu
Replies: 0
Views: 15

slow menus: Font dialog/New menu/file context menu

I'm using Windows 7 and some things are often unacceptably slow. So much so that I avoid using them. I've put some workarounds in brackets. Notepad: Format, Font... [dll injection and WM_SETFONT] Explorer: right-click, New [COM to create new file/folder via a hotkey] Explorer/Recent Items: right-cli...
by jeeswg
Today, 04:28
Forum: Ask For Help
Topic: Finding the default app for a file type (Win 10)
Replies: 7
Views: 205

Re: Finding the default app for a file type (Win 10)

Any good for special Windows 10 apps? List 'New' menu items.

ShellMenuNew - Disable/enable 'New' menu items in Windows Explorer
https://www.nirsoft.net/utils/shell_menu_new.html
by jeeswg
Yesterday, 15:43
Forum: Ask For Help
Topic: objects: hierarchies: listing/comparing objects
Replies: 1
Views: 40

objects: hierarchies: listing/comparing objects

What are the best links currently, for listing all the keys in an object/checking if two objects match. That recurse through hierarchies. Thanks.
by jeeswg
Yesterday, 15:35
Forum: Ask For Help
Topic: objects: popping empty keys
Replies: 0
Views: 28

objects: popping empty keys

- I've been working on, you guessed it, a converter. - Popping empty keys is useful, to remove any trailing blank parameters, after rearranging parameters. - Why would you rearrange parameters? For certain functions in AHK v2, the parameter order has changed. - I'm sharing this in case anyone has in...
by jeeswg
Yesterday, 12:35
Forum: Wish List
Topic: "Post-Include" command.
Replies: 1
Views: 64

Re: "Post-Include" command.

If you're talking about #Include, to include the script at the bottom of the script rather than at the point where #Include is written, there is one thing of interest here: Functions https://autohotkey.com/docs/Functions.htm#lib A script may call a function in an external file without having to use ...
by jeeswg
Yesterday, 12:06
Forum: Ask For Help
Topic: MouseMove in inactive/background window
Replies: 3
Views: 35

Re: MouseMove in inactive/background window

I would think that maybe something like this is possible using: WM_MOUSEMOVE := 0x200, or possibly WM_NCMOUSEMOVE := 0xA0. I have an example here using WM_MOUSEMOVE (it focuses a menu item, actually a toolbar item, in the Recent Items list in Windows 7): jeeswg's documentation extension tutorial - A...
by jeeswg
Yesterday, 11:53
Forum: Ask For Help
Topic: Very simple stuff, have no clue. Topic is solved
Replies: 4
Views: 59

Re: Very simple stuff, have no clue. Topic is solved

Btw when using functions or multiple parentheses, I believe the following lines in each pair are equivalent. I.e. there are some occasions when you can omit parentheses. if InStr(vText, vNeedle) if (InStr(vText, vNeedle)) if vPos := InStr(vText, vNeedle) if (vPos := InStr(vText, vNeedle)) if (a = b)...
by jeeswg
Yesterday, 10:30
Forum: Ask For Help
Topic: Very simple stuff, have no clue. Topic is solved
Replies: 4
Views: 59

Re: Very simple stuff, have no clue. Topic is solved

It's always best to use parentheses. Regarding the results below, I didn't actually know the exact results until I tested. When you omit parentheses, it uses the legacy style syntax. Cheers. q:: ;test a = b and (a = b) var1 := 10 var2 := 10 if 10 = var2 MsgBox, 1 if 10 = %var2% MsgBox, 2 if (10 = va...
by jeeswg
Yesterday, 09:26
Forum: Wish List
Topic: Improve InStr or IfInString
Replies: 22
Views: 757

Re: Improve InStr or IfInString

One thing that feedback has definitely helped me to see is: - The benefits of being able to distinguish contains/in based on the function name, rather than having to check the parameter for X (or no X) each time. - And as a result of this, having very short function names would be a consideration fo...
by jeeswg
Yesterday, 09:03
Forum: Wish List
Topic: Improve InStr or IfInString
Replies: 22
Views: 757

Re: Improve InStr or IfInString

- @Helgef: You're right that using leading characters (before the first ')') in RegExMatch, is AHK specific, however, 'm' is a standard part of RegEx: pcresyntax specification http://www.pcre.org/original/doc/html/pcresyntax.html (?m) multiline - Returning an object would be OK, I would add ...
by jeeswg
16 Dec 2017, 13:28
Forum: Ask For Help
Topic: Duplicate script able to run from different location how to stop it Topic is solved
Replies: 11
Views: 107

Re: Duplicate script able to run from different location how to stop it Topic is solved

Oh gosh, you're right. A simple fix to my script above would be to use WinSetTitle twice, to temporarily change its name to something else, but here's a proper script: q:: ;close other AHK scripts with same name DetectHiddenWindows, On SetTitleMatchMode, 2 WinGet, vWinList, List, \Timetracker.ahk ah...
by jeeswg
16 Dec 2017, 12:26
Forum: Ask For Help
Topic: A Quarry Regarding M S Excel Com Object. Needs Help.
Replies: 4
Views: 78

Re: A Quarry Regarding M S Excel Com Object. Needs Help.

- I recently found out that with the Excel_Get function, by specifying the 2nd parameter, you can latch onto a specific workbook via a control (e.g. EXCEL71, EXCEL72). - Clearly, ActiveWorkbook will remain consistent whatever you do. However, after you've latched on, and got the object, is there any...
by jeeswg
16 Dec 2017, 12:10
Forum: Ich brauche Hilfe
Topic: Windows Bildschirmtastatur
Replies: 10
Views: 210

Re: Windows Bildschirmtastatur

Wenn ich einen Win + U-Hotkey hatte, funktionierte die Bildschirmtastatur nicht.
[When I had a Win+U hotkey, On-Screen Keyboard didn't work.]

system hotkeys that can't be overridden - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=33891&p=160181#p160181

Go to advanced search