Search found 5117 matches

by jeeswg
11 Oct 2018, 20:19
Forum: Ask For Help
Topic: clipboard
Replies: 5
Views: 57

Re: clipboard

Code: Select all

;more forwards compatible:
Send, % "{Tab 3}" Clipboard "{Tab}{Enter}"

;also:
Send, {Tab 3}%Clipboard%{Tab}{Enter}
Cheers.
by jeeswg
11 Oct 2018, 20:14
Forum: Ask For Help
Topic: iniRead UTF-8
Replies: 12
Views: 136

Re: iniRead UTF-8

Great example User. Cheers. Btw, out of interest, does that situation happen to you often, or just when you create a list of the first 65535 Unicode characters? Either way, it's an absolutely valid concern, thanks for pointing it out.
by jeeswg
11 Oct 2018, 18:19
Forum: Ask For Help
Topic: iniRead UTF-8
Replies: 12
Views: 136

Re: iniRead UTF-8

- Huh? AHK handles ANSI and UTF-16 LE. My functions handle UTF-8 (if you have a comment starting with a semicolon as the first line). (Having a blank line as the first line, or starting the file with a dummy section that you never use, also work.) - You could experiment with FileRead/FileAppend or A...
by jeeswg
11 Oct 2018, 17:48
Forum: Ask For Help
Topic: generate a 'random' number
Replies: 2
Views: 68

generate a 'random' number

Has anyone written a function to generate a pseudo-random number in AutoHotkey? E.g. a short one that is reasonably good. Or a conversion of the C++ code that AutoHotkey uses. Or anything else? Thanks. An interesting link. flat assembler - Fast and small Multiplicative Random number generator https:...
by jeeswg
11 Oct 2018, 17:28
Forum: Ask For Help
Topic: iniRead UTF-8
Replies: 12
Views: 136

Re: iniRead UTF-8

- What Notepad calls 'Unicode' is UTF-16 LE. And that is a possibility if you want a Unicode ini file. - Although the file sizes could be approximately double what they would be as UTF-16 versus UTF-8, if you use mainly ASCII characters. - If you use IniRead on a UTF-8 file, it will read the raw UTF...
by jeeswg
11 Oct 2018, 16:46
Forum: Ask For Help
Topic: iniRead UTF-8
Replies: 12
Views: 136

Re: iniRead UTF-8

- AutoHotkey uses the Winapi functions for ini handling, which support ANSI or UTF-16 LE. - So the question becomes: when will Windows become more UTF-8-friendly? - I suppose that UTF-8 versions of numerous existing functions would be necessary for a UTF-8-friendly Windows. That would be a massive u...
by jeeswg
11 Oct 2018, 16:07
Forum: Ask For Help
Topic: iniRead UTF-8
Replies: 12
Views: 136

Re: iniRead UTF-8

Cheers.
UTF-8 ini files - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=38511
by jeeswg
11 Oct 2018, 16:00
Forum: Offtopic
Topic: « What's on your mind? » Topic is solved
Replies: 3966
Views: 487804

Re: « What's on your mind? » Topic is solved

WW1 footage transformed into colour - BBC News
https://www.bbc.co.uk/news/video_and_au ... s-director
by jeeswg
11 Oct 2018, 14:49
Forum: Scripts and Functions
Topic: Acc library (MSAA) and AccViewer download links
Replies: 19
Views: 8260

Re: Acc library (MSAA) and AccViewer download links

- Nicely done tmplinshi. - I intend to do a similar AccViewer edit. - You can see the info I intend to display here. All states, like you've done, as well a list of the focused and selected item indexes if applicable. AccViewer Basic - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php...
by jeeswg
11 Oct 2018, 13:58
Forum: Ask For Help
Topic: Test if a date is between two dates
Replies: 3
Views: 78

Re: Test if a date is between two dates

Here's an idea. Cheers. Note: one thing to consider is what if the date was 29 Feb. (Although in your example, for 29 Feb, the year would remain the same.) q:: ;add year to date if outside range FormatTime, vDate,, dd/MM/yyyy ;vDate := "01/01/2001" ;vDate := "05/05/2005" ;vDate := "09/09/2009" oDate...
by jeeswg
10 Oct 2018, 10:11
Forum: Ask For Help
Topic: Bring a desired profile of Firefox to front of all
Replies: 4
Views: 54

Re: Bring a desired profile of Firefox to front of all

- You need to find some way to distinguish between windows (if possible) to get the one you want. - E.g. the window title, the text you get from WinGetText, perhaps the icon, perhaps you can detect sound coming from a particular exe. - Or you could temporarily display the windows as tiles, specify a...
by jeeswg
10 Oct 2018, 06:51
Forum: Ask For Help
Topic: Bring a desired profile of Firefox to front of all
Replies: 4
Views: 54

Re: Bring a desired profile of Firefox to front of all

Some ideas that might be helpful. Get window information: q:: DetectHiddenWindows, Off WinGet, vWinList, List, ahk_class MozillaWindowClass vOutput := "" Loop, % vWinList { hWnd := vWinList%A_Index% WinGetTitle, vWinTitle, % "ahk_id " hWnd vOutput .= hWnd " " vWinTitle "`r`n" WinGetText, vText, % "a...
by jeeswg
10 Oct 2018, 05:35
Forum: Scripts and Functions
Topic: Firefox/Chrome, get tab names/focus tab
Replies: 22
Views: 5919

Re: Firefox/Chrome, get tab names/focus tab

I've added 2 functions to get the index of the focused tab, here:
Firefox/Chrome, get tab names/focus tab - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 12#p241912

JEE_FirefoxGetFocusedTabNum(hWnd)
JEE_ChromeGetFocusedTabNum(hWnd)
by jeeswg
10 Oct 2018, 05:14
Forum: Ask For Help
Topic: Script to pin a tab in Firefox
Replies: 28
Views: 455

Re: Script to pin a tab in Firefox

This might be useful to find the active tab. Cheers. Help to find the active tab number in Firefox - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=76&t=45626&p=206156#p206156 I've turned the code into a function, see here: Firefox/Chrome, get tab names/focus tab - Page 2 - AutoH...
by jeeswg
09 Oct 2018, 19:39
Forum: Ask For Help
Topic: Differentiate between "empty" variable, and non-variable? Topic is solved
Replies: 7
Views: 101

Re: Differentiate between "empty" variable, and non-variable? Topic is solved

You can use variadic functions.

Code: Select all

Func(1,2,3)
Func(,2,3)
Func(1,,3)
Func()
Func(oParams*)
{
	MsgBox, % oParams.HasKey(1) oParams.HasKey(2) oParams.HasKey(3) " " oParams.Length()
}
by jeeswg
09 Oct 2018, 17:51
Forum: Ask For Help
Topic: how to use WM_USER messages
Replies: 8
Views: 166

Re: how to use WM_USER messages

- I only use MPC: jeeswg's Media Player Classic tutorial - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=7&t=41683 - For other programs I would look up to see if there were any threads mentioning any automation possibilities that were available. Otherwise, I might try using Acc ...
by jeeswg
09 Oct 2018, 15:53
Forum: AutoHotkey v2 Development
Topic: changing operators // and //= to only do integer or floor division
Replies: 8
Views: 321

Re: changing operators // and //= to only do integer or floor division

- @iseahound: Great link thanks. It has some good reasons for why floor division (divide and round towards negative infinity) is more useful than integer division (divide and round towards zero). - I was thinking that although // would be best for floor division, and is generally more useful. An ope...
by jeeswg
09 Oct 2018, 15:11
Forum: Ask For Help
Topic: Sørensen–Dice coefficient Topic is solved
Replies: 10
Views: 99

Re: Sørensen–Dice coefficient Topic is solved

@nnnik: Didn't you already write a function?
Damerau-Levenshtein Distance - Fuzzy searches - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=39112
by jeeswg
09 Oct 2018, 14:40
Forum: Ask For Help
Topic: Sørensen–Dice coefficient Topic is solved
Replies: 10
Views: 99

Re: Sørensen–Dice coefficient Topic is solved

- Something like this perhaps. - Note: the Wikipedia article didn't mention whether duplicate bigrams should be discarded. A Wikibooks link (below) mentions that if you did discard duplicates, then 'AA' and 'AAAA' would be considered identical. Thus duplicates should be maintained. Cheers. ;Sørensen...
by jeeswg
09 Oct 2018, 00:34
Forum: AutoHotkey v2 Development
Topic: commands as functions (AHK v2 functions for AHK v1)
Replies: 41
Views: 5286

Re: commands as functions (AHK v2 functions for AHK v1)

Here is what I'm planning to use for Float/Integer/String. On balance it seemed wisest to keep String simple as this gave predictable deviations from AHK v2, whereas the alternatives were giving unpredictable deviations from AHK v2. Float(Value) { if Value is number return Value + 0.0 throw Exceptio...

Go to advanced search