Search found 10 matches

by Kapitano
30 Jul 2020, 19:16
Forum: AutoHotkey v2 Help
Topic: PageUp and PageDown stopped sending in a119
Replies: 4
Views: 1852

Re: PageUp and PageDown stopped sending in a119

Really? I've been using them for six months, in over 60 scripts written in a108.

...and they did absolutely nothing? But the scripts still worked perfectly.

There's probably a lesson in there somewhere.
by Kapitano
29 Jul 2020, 05:23
Forum: AutoHotkey v2 Help
Topic: PageUp and PageDown stopped sending in a119
Replies: 4
Views: 1852

PageUp and PageDown stopped sending in a119

{PageUp} and {PageDown} don't send in a119. {PgUp} and {PgDn} seem to work fine.

Same results with SendInput and SendEvent.

Is this a deliberate slimming down of aliases...or a bug?

[Mod edit: Moved to 'Ask For Help v2'.]
by Kapitano
26 Jul 2020, 03:16
Forum: AutoHotkey v2 Help
Topic: Running multiple versions of AHK2
Replies: 3
Views: 1544

Re: Running multiple versions of AHK2

Just a thought, but could it be possible to add a "preferred executor" function to AHK scripts. Something like:

Code: Select all

#RunWith "C:\Software\AutoHotkey2 a118\AutoHotKeyU64.exe"

Code: Select all

#RunWith "C:\Software\AutoHotKey1.1\AutoHotKey.exe"
by Kapitano
25 Jul 2020, 18:58
Forum: AutoHotkey v2 Help
Topic: Running multiple versions of AHK2
Replies: 3
Views: 1544

Running multiple versions of AHK2

The must have been discussed before, but I can't find it, so.... I'm running two versions of AHK2, in different folders. Folder "AutoHotKey" contains "AutoHotKeyU64.exe" (a108) and 60+ legacy scripts. Folder "AHK_DEV" contains "AutoHotKey64U_DEV.exe", renamed from whichever version is the most recen...
by Kapitano
24 Jul 2020, 07:22
Forum: AutoHotkey v2 Development
Topic: Switch/Case Functionalisation?
Replies: 2
Views: 561

Switch/Case Functionalisation?

As of a118, this works: i_Number := 1 Switch i_Number { Case 1: MsgBox("Number is One") MsgBox("Yes, definitely One") Case 2: ; Do Nothing Case 3: MsgBox("Number is Three") } ...and this, doesn't: i_Number := 1 Switch i_Number { Case 1 { MsgBox("Number is One") MsgBox("Yes, definitely One") } Case 2...
by Kapitano
06 Jul 2020, 19:45
Forum: AutoHotkey v2 Help
Topic: RegEx misses unicode bullet
Replies: 3
Views: 1873

Re: RegEx misses unicode bullet

> make sure u save ur scripts as utf-8 with BOM

Oh crap, I think that's it. Excuse me while I go and slap myself.
by Kapitano
06 Jul 2020, 18:38
Forum: AutoHotkey v2 Help
Topic: RegEx misses unicode bullet
Replies: 3
Views: 1873

RegEx misses unicode bullet

I'm using AHK2 (version a108) to process text with some non-ascii characters. I cut it from the clipboard into an array, delimiting at `n: PageArray := StrSplit(Clipboard , "`n") ...and I want to remove the start of lines up to the bullet character (U+2022). Line := RegExReplace(Line , "^(?:.+?•)(.+...
by Kapitano
16 Sep 2019, 12:21
Forum: AutoHotkey v2 Help
Topic: Get Date from MonthCal Topic is solved
Replies: 21
Views: 5482

Re: Get Date from MonthCal Topic is solved

I found another way, which I thought others might find useful. s_DT := f_GetDT() MsgBox (FormatTime(s_DT , "yyyy MM dd, HH:00")) ExitApp f_GetDT() { s_UpdatedDT := a_Now o_GetDT := GuiCreate("ToolWindow", "Get DT") o_GetDT.Add("DateTime" , "v_SelectedDT" , "MMMM dd HH:00 yyyy, dddd").OnEvent("Change...
by Kapitano
09 Sep 2019, 08:53
Forum: AutoHotkey v2 Help
Topic: Get Date from MonthCal Topic is solved
Replies: 21
Views: 5482

Re: Get Date from MonthCal Topic is solved

Okay, I've put together a script I don't quite understand, from various online sources. ----- GetDate := GuiCreate() Calendar := GetDate.Add("MonthCal", "vSelectDate") ButtonOne := GetDate.Add("Button", "Default", "Submit").OnEvent("Click", "ButtonOneClicked") GetDate.Show ButtonOneClicked(*) { MsgB...
by Kapitano
08 Sep 2019, 16:54
Forum: AutoHotkey v2 Help
Topic: Get Date from MonthCal Topic is solved
Replies: 21
Views: 5482

Get Date from MonthCal Topic is solved

Hello, new user here. I'm porting my 200+ vTask scripts to AHK v2 (2.0-a104-3e7a9769d), and most of the time it's a great improvement. But one little operation I can't get to work - and all the documentation seems both confusing and out of date. I want to display a MonthCal dialog, have the user sel...

Go to advanced search