Search found 4098 matches

by jeeswg
1 minute ago
Forum: AutoHotkey v2 Development
Topic: Functions | &ByRef • ByVal
Replies: 4
Views: 61

Re: Functions | &ByRef • ByVal

- One idea could be: ByRef MyFunc() to make all parameters ByRef. - To make ByRef the default. It's a bit of a paradigm shift, it might be a good idea. If I could just stick 'ByRef' on at the front of every function (cf. 'class'), that would make it easy to fix my existing functions. - How m...
by jeeswg
Today, 07:16
Forum: AutoHotkey v2 Development
Topic: long path support
Replies: 0
Views: 20

long path support

- In response to: Test build - Obj.Count(), OnError(), long paths, experimental switch-case - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=24&t=47682&p=213868#p213868 TERMINOLOGY - I will distinguish between '259-' and '260+' files, files of 259 characters or fewer, and...
by jeeswg
Today, 05:00
Forum: Ask For Help
Topic: Automate app with no (or hidden) controls?
Replies: 17
Views: 235

Re: Automate app with no (or hidden) controls?

AFAIK Acc works on hidden windows. I'd use WinExist/WinWait with DetectHiddenWindows set to on to check/wait for a window's existence (I'd expect that any controls/GUI elements would also exist).
by jeeswg
Today, 04:41
Forum: Offtopic
Topic: AutoHotkey: the album
Replies: 0
Views: 13

AutoHotkey: the album

Every so often, I think of including a song reference in a thread. But then these references would get in the way of the thread, and also they become separated and hard to find. So I decided I'd start collecting them and put them all in one place. [benchmark tests] BEACH BOYS - "Good Timin'&quo...
by jeeswg
Today, 02:31
Forum: Ask For Help
Topic: 259-char path limit workarounds Topic is solved
Replies: 10
Views: 968

Re: 259-char path limit workarounds Topic is solved

I found that oItem.Path sometimes didn't work, it returned blanks, however, oItem.Name did appear to work consistently, although it matches what you see in the folder window, so extensions might be omitted. Links: Shell object (Windows) https://msdn.microsoft.com/en-us/library/windows/desktop/bb7740...
by jeeswg
Yesterday, 20:52
Forum: Ask For Help
Topic: Writing many small files vs adding to the end of a big file?
Replies: 5
Views: 103

Re: Writing many small files vs adding to the end of a big file?

- Yes, FileRead, and other checks like RegEx, and less-than/greater-than comparisons.
- There may be other ways, these are just some suggestions. I know that I've seen at least one program that stored info in files and a backup for each file.
by jeeswg
Yesterday, 12:15
Forum: Tips and Tricks
Topic: AutoHotkey syntax lists (text files)
Replies: 16
Views: 223

Re: AutoHotkey syntax lists (text files)

- I keep various syntax lists, listed in this post: list of every command/function/variable from across all versions - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=7&t=27321&p=131642#p131642 - Here's a list of operators. I wasn't sure if this list was applicable to this...
by jeeswg
Yesterday, 08:57
Forum: Tips and Tricks
Topic: AutoHotkey syntax lists (text files)
Replies: 16
Views: 223

Re: AutoHotkey syntax lists (text files)

- The operators link has a list of the symbolic operators listed in a form that's easy to parse. (I know they're operators, in the post above I listed operators that were already in the list.) - If your doing methods, this could save you some work. list of every object type/property/method - AutoHot...
by jeeswg
Yesterday, 08:21
Forum: Tips and Tricks
Topic: AutoHotkey syntax lists (text files)
Replies: 16
Views: 223

Re: AutoHotkey syntax lists (text files)

- @nnnik: If you wanted to post an updated version of Keywords.txt with more keywords, that would be fine. - Already in the list: Not/Or/And, Between/Contains/In/Is. - Not in the list: class/new/this. - Note: Keywords.txt is almost unchanged from the AHK Basic original (I added ahk_exe/Files/Reg), a...
by jeeswg
Yesterday, 04:03
Forum: Ask For Help
Topic: Annoying menu showing up
Replies: 6
Views: 112

Re: Annoying menu showing up

How about this? Cheers.

Code: [Select all]GeSHi © Codebox Plus

LButton & RButton::
RButton & LButton::
MsgBox
return
by jeeswg
Yesterday, 00:54
Forum: Tips and Tricks
Topic: AutoHotkey syntax lists (text files)
Replies: 16
Views: 223

Re: AutoHotkey syntax lists (text files)

- These have an absolutely clear definition: commands control flow statements directives functions variables - If you want to somehow make 'keywords', 'a thing', you'll have to do some detailed categorisation stating sources and principles. So that anyone in the world could recreate exactly the same...
by jeeswg
19 Apr 2018, 23:54
Forum: Tips and Tricks
Topic: AutoHotkey syntax lists (text files)
Replies: 16
Views: 223

Re: AutoHotkey syntax lists (text files)

I'll add this info to ZInfo.txt during the next update: all of the files relate to AHK v1.1.28.02 apart from the 'ZAhkBasic' files Commands - keywords + parameters ControlFlowStatements - keywords + parameters Directives - keywords + parameters Functions - keywords + parameters Keys - keyboard keys ...
by jeeswg
19 Apr 2018, 22:33
Forum: Ask For Help
Topic: counting the row of certain column in excel
Replies: 2
Views: 26

Re: counting the row of certain column in excel

Try this. Cheers. q:: ;excel - get row number for last cell in column oXl := ComObjCreate("Excel.Application") oXl.Visible := -1 ;True oXl.Workbooks.Add oXl.Range("E10").Value := "x" xlUp := -4162 vCol := 5 vRow := oXl.Cells(oXl.Rows.Count, vCol).End(xlUp).Row vAddress ...
by jeeswg
19 Apr 2018, 20:24
Forum: Ask For Help
Topic: Writing many small files vs adding to the end of a big file?
Replies: 5
Views: 103

Re: Writing many small files vs adding to the end of a big file?

- You could have a main file and a backup file. - The script checks the main file, if the main file is corrupted, it checks the backup file. - When the script starts, it sets the contents of the main file, and confirms that it is not corrupted, it then does the same for the backup file, it then regu...
by jeeswg
19 Apr 2018, 20:17
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 387
Views: 63299

Re: Suggestions on documentation improvements

I did another check of the command indexes. Missing from AHK v1 list: ComObject/Hotstring (also: LTrim/RTrim/SendEvent/#IncludeAgain) (also: IfNotExist/IfNotInString/#IfWinNotActive/#IfWinNotExist) (also+: IL_XXX/LV_XXX/SB_XXX/TV_XXX) Missing from AHK v2 list: Hotstring SubStr has a trailing space (...
by jeeswg
19 Apr 2018, 17:55
Forum: Ask For Help
Topic: WinSet: Can't add/remove styles if N is a Constant
Replies: 5
Views: 80

Re: WinSet: Can't add/remove styles if N is a Constant

- Here's some code. Cheers. q:: WS_MINIMIZEBOX := 0x20000 WinGet, hWnd, ID, A WinSet Style, % -WS_MINIMIZEBOX, % "ahk_id " hWnd return w:: WS_MINIMIZEBOX := 0x20000 WinGet, hWnd, ID, A WinSet Style, % "+" WS_MINIMIZEBOX, % "ahk_id " hWnd return ;e:: ;not recommended (th...
by jeeswg
19 Apr 2018, 17:27
Forum: Tips and Tricks
Topic: AutoHotkey syntax lists (text files)
Replies: 16
Views: 223

Re: AutoHotkey syntax lists (text files)

- @burque505: Keywords.txt contains 'Join' as used by continuation sections. - This page contains a 'Join' example custom function, but it isn't a standard (built-in) part of AutoHotkey. Functions https://autohotkey.com/docs/Functions.htm#Variadic I only knew about it because I saw this post the oth...
by jeeswg
19 Apr 2018, 07:27
Forum: Ask For Help
Topic: VK & SK scripts stopped working?
Replies: 3
Views: 45

Re: VK & SK scripts stopped working?

- Summary: Before: VKnnSCnnn After: VKnn - For more details: v1.1.27 - It must be Christmas - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=24&t=41831&p=190697#p190697 - VK (virtual key) codes and SC (scan codes) are different systems for referring to keys, both are usef...
by jeeswg
19 Apr 2018, 07:12
Forum: Ask For Help
Topic: AHK Auto Formatter?
Replies: 11
Views: 1442

Re: AHK Auto Formatter?

- I've attempted to update the syntax txt files here: AutoHotkey syntax lists (text files) - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=74&t=47603 - If someone wants to create a variants (a zip) of the txt files for use with this script, that's fine. I tried to keep the f...
by jeeswg
19 Apr 2018, 07:09
Forum: Tips and Tricks
Topic: AutoHotkey syntax lists (text files)
Replies: 16
Views: 223

AutoHotkey syntax lists (text files)

- Previously, AutoHotkey syntax lists were available as text files, when you downloaded AutoHotkey. - Here is an example for the last version of AutoHotkey Basic, AutoHotkey v1.0.48.05: Index of /download/1.0 https://autohotkey.com/download/1.0/ AutoHotkey104805.zip https://autohotkey.com/download/1...

Go to advanced search