Search found 46 matches

by jackdunning
22 Nov 2018, 05:48
Forum: Ask For Help
Topic: Threads - AHK
Replies: 2
Views: 240

Re: Threads - AHK

by jackdunning
21 Nov 2018, 16:22
Forum: Ask For Help
Topic: Is it possible to select gui buttons with keyboard numbers?
Replies: 4
Views: 391

Re: Is it possible to select gui buttons with keyboard numbers?

You may find using the ControlClick command a little simpler: Gui, Add, Button, , Test Button One Gui, Add, Button, ym , Test Button Two Gui, Add, Button, ym , Test Button Three Gui, Add, Button, ym , Test Button Four Gui, Show, , Test Buttons Return ButtonTestButtonOne: ButtonTestButtonTwo: ButtonT...
by jackdunning
21 Nov 2018, 15:05
Forum: Ask For Help
Topic: Activate taskbar / Force re-focus of current application
Replies: 2
Views: 408

Re: Activate taskbar / Force re-focus of current application

What if you use the Click command to activate the Taskbar? Then, use SendInput, !{Esc} to return to the last window. I discuss the second part toward the end of this blog, "Activating the Last Window from the System Tray Icon Menu"
by jackdunning
21 Nov 2018, 14:36
Forum: Ask For Help
Topic: Is it possible to select gui buttons with keyboard numbers?
Replies: 4
Views: 391

Re: Is it possible to select gui buttons with keyboard numbers?

You might use the #IfWinActive directive to isolate conditional Hotkeys to the active GUI or use the Gui, Add, Button,, &Pause format where Alt+p activates the button. Add numbers to the buttons with a preceding ampersand (&) to activate the Alt+key action.
by jackdunning
21 Nov 2018, 14:22
Forum: Ask For Help
Topic: Remove empty elements from pseudoarray?
Replies: 5
Views: 503

Re: Remove empty elements from pseudoarray?

I could be wrong, but it seems that all the Sleep commands could be causing your script to slow down much more than the StrSplit() function. I don't see empty array elements alone slowing things down very much. However, you could also use the Continue command to skip empty array elements in the For-...
by jackdunning
21 Nov 2018, 02:38
Forum: Scripts and Functions
Topic: Function Calculating Timespan in Years, Months, and Days
Replies: 11
Views: 1747

Re: Function Calculating Timespan in Years, Months, and Days

For example, we all count Feb. 20 to March 20 to be one month. AlphaBravo, as you stated, from Jan 24, 2021 to Feb 24, 2021 is one month. Since we can now bank that full month, we can ignore the number of days in January. From Feb 24, 2021 to March 18, 2021 is 22 days. Also, my function does accoun...
by jackdunning
20 Nov 2018, 18:54
Forum: Scripts and Functions
Topic: Function Calculating Timespan in Years, Months, and Days
Replies: 11
Views: 1747

Re: Function Calculating Timespan in Years, Months, and Days

I've written a DateConvert() function for use in conjunction with this function.

Image
by jackdunning
20 Nov 2018, 18:38
Forum: Scripts and Functions
Topic: Converting Formatted Dates (e.g. US or British) in Documents into the Standard DateTime Stamp (yyyymmdd)
Replies: 1
Views: 391

Converting Formatted Dates (e.g. US or British) in Documents into the Standard DateTime Stamp (yyyymmdd)

I wrote this date conversion function to use in conjunction with the timespan calculation function discussed in the Function Calculating Timespan in Years, Months, and Days . This DateConvert() function converts any US or British formatted date into the DateTime Stamp (i.e. yyyymmdd) for use with Au...
by jackdunning
10 Oct 2018, 12:49
Forum: Scripts and Functions
Topic: Function Calculating Timespan in Years, Months, and Days
Replies: 11
Views: 1747

Re: Function Calculating Timespan in Years, Months, and Days

Thanks, SKAN, I fixed the error in the code. Seemingly your current version is off by a year: ( 8398 11 30 ) I think I see what you're saying, SKAN. I never tested it at the limits. However, it seems to be accurate in other tests. Just tested again and it returned: Years 8397 Months 11 Days 30 Seems...
by jackdunning
09 Oct 2018, 13:20
Forum: Scripts and Functions
Topic: Function Calculating Timespan in Years, Months, and Days
Replies: 11
Views: 1747

Re: Function Calculating Timespan in Years, Months, and Days

After discussions, I realized that I had no reason to insist upon the order of the dates. If they appear in the wrong order, I merely swap the two and add the word "Ago" to the Past variable.
by jackdunning
23 Sep 2018, 13:25
Forum: Ask For Help
Topic: Need help to finish my program
Replies: 1
Views: 170

Re: Need help to finish my program

Possibly, the information in this post will help:

https://autohotkey.com/boards/viewtopic.php?p=236361
by jackdunning
20 Sep 2018, 05:03
Forum: Ask For Help
Topic: replicate diagonal arrow ?
Replies: 4
Views: 417

Re: replicate diagonal arrow ?

I have a script I call MousePrecise.ahk which moves the mouse cursor in diagonal directions using the numpad keys between the respective arrow keys:

http://www.computoredge.com/AutoHotkey/ ... usePrecise
by jackdunning
12 Sep 2018, 23:56
Forum: Ask For Help
Topic: Need help on sending random paragraphs
Replies: 3
Views: 333

Re: Need help on sending random paragraphs

Change the MsgBox command to the SendRaw command: Var1 = ( No, I won't! You do it! ) Var2 = ( Maybe? Maybe not! ) Var3 = ( Let me think! Since you didn't. ) Var4 := "So's your old man!" Var5 := "Hmm!" ^!o:: Random, OutputVar , 1, 5 SendRaw, % Var%OutputVar% Return Also demonstrates how to store bloc...
by jackdunning
02 Sep 2018, 17:36
Forum: Ask For Help
Topic: Help With Script
Replies: 2
Views: 248

Re: Help With Script

This first Override link shows how to block keys:

Code: Select all

F1::Return
This second link to the Hotkey command shows how to toggle Hotkeys on and off:

Code: Select all

F12::
  Hotkey, F1, Toggle
Return
Hope this helps.
by jackdunning
01 Sep 2018, 17:16
Forum: Ask For Help
Topic: HOTKEYS HELP PLEASE
Replies: 2
Views: 221

Re: HOTKEYS HELP PLEASE

Try this:

Code: Select all

F1 & F2::
  Send, {a down}
  Sleep, 1000
  Send, {a up}
Return
by jackdunning
01 Sep 2018, 17:04
Forum: Ask For Help
Topic: Need Help With A Simple Script
Replies: 4
Views: 306

Re: Need Help With A Simple Script — Text Search

This executes a simple search of a file open in Notepad using the term you enter into the Edit box: Gui, Add, Edit, vText, Enter text here… Gui, Add, button, ,Submit Gui, Show Return ButtonSubmit: Gui, Submit, Nohide WinActivate, TextFile.txt - Notepad WinWaitActive, TextFile.txt - Notepad Send, ^f ...
by jackdunning
01 Sep 2018, 12:53
Forum: Ask For Help
Topic: [Gui UpDown control] - How to know if button up or down was pressed? Topic is solved
Replies: 5
Views: 545

Re: [Gui UpDown control] - How to know if button up or down was pressed? Topic is solved

The GUI UpDown control attaches itself to the preceding buddy control (commonly Edit). This sample script returns what you want: Test := 5 Gui, Add, Edit, Gui, Add, UpDown, vValue gButton,5 gui, show, w200 h200 return Button: ;______________ get ______________ Gui, Submit, NoHide Diff := Value - Tes...
by jackdunning
01 Sep 2018, 12:26
Forum: Ask For Help
Topic: Sound play on a certain channel
Replies: 1
Views: 259

Re: Sound play on a certain channel

I haven't played with the SoundSet command, but it may help with this.

If not, you may want a Windows solution. Take a look at this.
by jackdunning
01 Sep 2018, 11:50
Forum: Ask For Help
Topic: Simultaneous loops? Topic is solved
Replies: 1
Views: 194

Re: Simultaneous loops? Topic is solved

An AutoHotkey script only does one thing at a time ( threads ). Even if you use a command such as SetTimer to launch multiple threads, they interrupt each other—depending upon when they are launched and their priority. That's not to say the proper coordination of your loops won't save some time. You...

Go to advanced search