Search found 6264 matches

by jeeswg
Today, 04:29
Forum: Ask For Help
Topic: How do you set just a Tab key, to trigger a text expansion?
Replies: 5
Views: 69

Re: How do you set just a Tab key, to trigger a text expansion?

There's also the * option: Hotstrings - Definition & Usage | AutoHotkey https://autohotkey.com/docs/Hotstrings.htm#Options * (asterisk): An ending character (e.g. Space, ., or Enter) is not required to trigger the hotstring. Two examples: :*:wt`t::What the...? :*:wt2`t:: ( what the heck is going on ...
by jeeswg
Yesterday, 18:52
Forum: C/C++
Topic: C++: AHK source code: Base64Get/Base64Put and HexGet/HexPut
Replies: 0
Views: 22

C++: AHK source code: Base64Get/Base64Put and HexGet/HexPut

Here is some code for some potential Base64Get/Base64Put and HexGet/HexPut functions. They are based on StrGet/StrPut. ================================================== for AHK v1: function names and parameters: cf. StrGet(Address [, Length] [, Encoding := None]) HexGet(Address, Length, Case := "U"...
by jeeswg
Yesterday, 18:49
Forum: C/C++
Topic: C++: AHK source code: StrJoin (alternating pad string)
Replies: 0
Views: 21

C++: AHK source code: StrJoin (alternating pad string)

Here is some code for a potential StrJoin function, that can accept an array of pad strings, for alternating pad strings. See also: code for potential StrCount/StrRept/StrJoin (constant pad string) functions: C++: AHK source code: potential functions - AutoHotkey Community https://autohotkey.com/boa...
by jeeswg
Yesterday, 18:39
Forum: C/C++
Topic: C++: AHK source code: FloorMod
Replies: 0
Views: 22

C++: AHK source code: FloorMod

Here is some code for a potential FloorMod function. ================================================== for AHK v1: function names and parameters: [Mod] FloorMod(Dividend, Divisor) - note: BIF_Mod would be amended - note: it's generally more useful to have a Mod function always return a positive num...
by jeeswg
Yesterday, 17:17
Forum: C/C++
Topic: C++: AHK source code: static/global variables
Replies: 0
Views: 17

C++: AHK source code: static/global variables

Is there a best way to create static/global variables, for individual/all functions, as would be done in AHK functions.

E.g. one idea: A_MSecLast [the milliseconds at the time you last retrieved A_Now/A_NowUTC]. Since concatenating A_Now/A_NowUTC and A_MSec is unreliable.
by jeeswg
Yesterday, 12:39
Forum: Ask For Help
Topic: Find and replace in address bar
Replies: 4
Views: 62

Re: Find and replace in address bar

I've modified your script, it clears the clipboard before sending ctrl+x. I did this because ClipWait works by waiting until the clipboard text is non-blank. I've also made it use a temporary variable called 'text', to do the replacements on, instead of repeatedly using the Clipboard variable, which...
by jeeswg
18 May 2019, 11:33
Forum: Offtopic
Topic: Teens experience Windows 95
Replies: 5
Views: 446

Re: Teens experience Windows 95

Nice summary of the new (at the time) UI features: Start me up: Watch CNET's early coverage of Windows 95, back in 1995 - YouTube https://www.youtube.com/watch?v=Wu_gE8gQLIc [EDIT:] And a good summary for Windows 98. The Computer Chronicles - Windows 98 (1998) - YouTube https://www.youtube.com/watch...
by jeeswg
18 May 2019, 10:44
Forum: Offtopic
Topic: in what order to plug an external hard drive into a PC
Replies: 0
Views: 22

in what order to plug an external hard drive into a PC

Does it really matter what order you do it in? This link has a nice picture: 1, 2, 3, 4: How to physically connect, disconnect, and install a WD external / easystore drive on a Windows PC or Mac https://support-en.wd.com/app/answers/detail/a_id/12792 [PC]3[PC cable]4[drive]2[mains cable]1[mains] It ...
by jeeswg
17 May 2019, 14:55
Forum: Ask For Help
Topic: hopefully simple math formula
Replies: 2
Views: 78

Re: hopefully simple math formula

It's not too clear to me what you want, you could do a complete list of input/output values. Generally Mod, and Round can be useful. One idea is to divide, use Round, then multiply back again. In the example below, I just use Mod. q:: ;round to the nearest multiple of 3, and adjust Loop, 12 { vNum :...
by jeeswg
17 May 2019, 11:17
Forum: C/C++
Topic: C++: AHK source code: append number to array
Replies: 1
Views: 58

C++: AHK source code: append number to array

In the AHK v1 source code, this function would return an empty array: BIF_DECL(BIF_ReturnEmptyArray) { Object *output_array = Object::Create(); aResultToken.symbol = SYM_OBJECT; aResultToken.object = output_array; } What is the best way to append an Integer/Float to that array? Relevant functions: S...
by jeeswg
17 May 2019, 00:11
Forum: Forum Issues
Topic: get view count for current thread
Replies: 14
Views: 2345

Re: get view count for current thread

Each post has a search button, with placeholder (cue banner) text: 'Search this topic...'
Typing in a word from the OP (or another post), will find the thread, and show the view count.
by jeeswg
17 May 2019, 00:00
Forum: Ask For Help
Topic: A_ScriptDir returns a last directory rather than a script directory when it's compiled.
Replies: 2
Views: 82

Re: A_ScriptDir returns a last directory rather than a script directory when it's compiled.

Try something like: MsgBox, % A_ScriptDir to check the variable's contents. For compiled scripts, A_ScriptDir shows the folder for the compiled exe file, whereas for uncompiled scripts it shows the folder for the script. AFAIK this is not stated in the documentation. Link: compiled scripts versus re...
by jeeswg
16 May 2019, 04:25
Forum: Ask For Help
Topic: How to read my posts
Replies: 3
Views: 82

Re: How to read my posts

In the top-left corner, there is a 3-line options button. If you click on it, there is a 'Your posts' button. It would be better called 'Your threads'. If there are new unread posts, there will be some colour to indicate it. In the top-left corner, there is also a 'New posts' button. It would be bet...
by jeeswg
15 May 2019, 10:15
Forum: Forum Issues
Topic: jump within a post
Replies: 1
Views: 69

jump within a post

Do we have any BBCode to jump within a post? Thanks. [relevant discussion] phpBB • BBCODE in posts for section page jumps (table of contents) https://www.phpbb.com/community/viewtopic.php?f=438&t=2191474 [example] phpBB • [How to] colorize prosilver https://www.phpbb.com/community/viewtopic.php?f=74...
by jeeswg
15 May 2019, 10:09
Forum: Wish List
Topic: A_Index0 Topic is solved
Replies: 13
Views: 478

Re: A_Index0 Topic is solved

Two other ideas. Zero-based index.
A_ZBIndex. Better, as less cognitive conflict with A_Index.
A_IndexZB.

I'm happy with 'No', although I didn't mark the thread solved.
by jeeswg
15 May 2019, 03:38
Forum: Wish List
Topic: Swap / ObjSwap / Assign / Sign
Replies: 5
Views: 290

Re: Swap / ObjSwap / Assign / Sign

SUMMARY Summary of classic convenience functionality mentioned: From thread title: VarSwap(/Swap) ObjSwapKeys(/ObjSwapValues/ObjSwap) Assign(/VarSet) Sign [related: NumCompare] Also mentioned: IsNum (is float/is integer/is string that looks numeric) Num (to number) ObjSetDefaultValue [or another nam...
by jeeswg
14 May 2019, 18:12
Forum: Ask For Help
Topic: A noob needs help: Modifiers, combinations, (Hotkey), if, #If
Replies: 7
Views: 247

Re: A noob needs help: Modifiers, combinations, (Hotkey), if, #If

Do toggle := 1 or toggle := 0 at the start of the script. And have a hotkey subroutine containing toggle := !toggle . And trigger that hotkey to toggle the variable. To make progress, it helps to write simple demo scripts, to focus on a single principle, and ask about those smaller scripts. [EDIT:] ...
by jeeswg
14 May 2019, 15:52
Forum: Tutorials
Topic: jeeswg's mathematics tutorial
Replies: 2
Views: 192

jeeswg's mathematics tutorial

================================================== jeeswg's mathematics tutorial ================================================== > CONTENTS > INTRO: MATHEMATICAL OPERATORS > INTRO: MATHEMATICAL FUNCTIONS > BASICS: FOUR OPERATIONS > BASICS: INCREMENT / DECREMENT > BASICS: TRUE DIVIDE/FLOOR DIVIDE/...
by jeeswg
14 May 2019, 14:20
Forum: Scripts and Functions
Topic: string hacks
Replies: 11
Views: 1929

Re: string hacks

- I always wanted it, so that, if you used a blank string for the Length parameter with SubStr, it would be equivalent to omitting the parameter. Well ... vNum := 3 MsgBox, % SubStr("abcdef", 1, (vNum=""?[]:[vNum])*) vNum := "" MsgBox, % SubStr("abcdef", 1, (vNum=""?[]:[vNum])*) vNum := 3 MsgBox, % ...
by jeeswg
14 May 2019, 09:56
Forum: Ask For Help
Topic: A noob needs help: Modifiers, combinations, (Hotkey), if, #If
Replies: 7
Views: 247

Re: A noob needs help: Modifiers, combinations, (Hotkey), if, #If

You could state in simple terms, what you're trying to do with Suspend. You might want to create a toggle variable, whose value was 1 or 0, and do something like: #If toggle && WinActive("ahk_class Notepad") To turn hotkeys on/off. I would change the Sleep line to: Sleep, % Delay16 . I would use #If...

Go to advanced search