Search found 5595 matches

by jeeswg
Yesterday, 22:30
Forum: Ask For Help
Topic: How to convert current time to unix timestamp?
Replies: 30
Views: 405

Re: How to convert current time to unix timestamp?

- Hello vvhitevvizard, thanks for the speed tests. - You might find these links interesting: How to optimize the speed of a script as much as possible. - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=7&t=6413 jeeswg's benchmark tests - AutoHotkey Community https://autohotkey.com...
by jeeswg
Yesterday, 13:22
Forum: Ask For Help
Topic: How to convert current time to unix timestamp?
Replies: 30
Views: 405

Re: How to convert current time to unix timestamp?

I put a few functions in this thread.
convert common date formats (Excel / FileTime / Unix) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=44727
by jeeswg
Yesterday, 13:13
Forum: Ask For Help
Topic: Hotstrings not always fire.
Replies: 5
Views: 105

Re: Hotstrings not always fire.

Thanks Helgef, but I like to keep my posts consistent by never using those ticks at the bottom: Disable BBCode Disable smilies Do not automatically parse URLs Attach a signature (signatures can be altered via the UCP) Notify me when a reply is posted Also, is that normal that even in c tags, emotico...
by jeeswg
Yesterday, 13:10
Forum: Ask For Help
Topic: Controlsend/click help.
Replies: 2
Views: 51

Re: Controlsend/click help.

You could try this or similar (i.e. try Ctrl / RCtrl):
ControlSend,, {LCtrl up}{F2}, ahk_exe client.exe
Or use KeyWait with LCtrl.
by jeeswg
Yesterday, 13:05
Forum: Ask For Help
Topic: Date format to United Kingdom
Replies: 2
Views: 56

Re: Date format to United Kingdom

This perhaps? ;where vDate is in yyyyMMddHHmmss format, or with some of the trailing numbers removed vDate := 20010407 FormatTime, vDate, % vDate, dd/MM/yyyy MsgBox, % vDate Btw, because it's confusing, I'll just mention: += positive number [add days/seconds etc to date] += negative number [subtract...
by jeeswg
Yesterday, 12:49
Forum: Ask For Help
Topic: Hotstrings not always fire.
Replies: 5
Views: 105

Re: Hotstrings not always fire.

You could experiment with :*: and :?*: ( : ? * : ) at the start of hotstrings, you could also try pressing left then right (or right then left) to try to refresh the hotstring recogniser (hotstring recognizer).
by jeeswg
Yesterday, 02:26
Forum: Offtopic
Topic: Object-Oriented Programming Is Bad?
Replies: 5
Views: 342

Re: Object-Oriented Programming Is Bad?

- Thanks, the Brian Will videos are classic. - The Yegor Bugayenko video is interesting, he argues that OOP fails by its own standards. - But it reminds me of the question that: to dismantle or fix OOP, you must first agree what it is. - I would like some videos, short or long, that most people agre...
by jeeswg
Yesterday, 02:11
Forum: Ask For Help
Topic: Replacing native parameters with a single parameter Topic is solved
Replies: 8
Views: 141

Re: Replacing native parameters with a single parameter Topic is solved

- But it might *seem* to be working. I would suppose that by trying to pass an object to a command in that way, you are passing a blank string.
- You have to use the object in a function, and you must use the asterisk: *.
by jeeswg
Yesterday, 01:16
Forum: Ask For Help
Topic: Replacing native parameters with a single parameter Topic is solved
Replies: 8
Views: 141

Re: Replacing native parameters with a single parameter Topic is solved

- It seems coffee was right. Well done coffee. Since this will probably have to be stated, wrap commands in a function and do. - The technique won't work on commands, so this may be of interest: commands as functions (AHK v2 functions for AHK v1) - AutoHotkey Community https://autohotkey.com/boards/...
by jeeswg
19 Jan 2019, 22:28
Forum: Ask For Help
Topic: [solved] RegExMatch problem (simple) Topic is solved
Replies: 7
Views: 176

Re: [solved] RegExMatch problem (simple) Topic is solved

But these?
12 characters that need escaping in RegEx generally: \.*?+[{|()^$
by jeeswg
19 Jan 2019, 22:27
Forum: Ask For Help
Topic: Cloning array[].Class_Object and removing it from inside its class. And restructuring a if() into its own method. Topic is solved
Replies: 24
Views: 317

Re: Cloning array[].Class_Object and removing it from inside its class. And restructuring a if() into its own method. Topic is solved

Good find. Cheers. GuiControl - Syntax & Usage | AutoHotkey https://autohotkey.com/docs/commands/GuiControl.htm [v1.1.20+]: To set a function object for handling the control's events, Value must be a single variable reference, as in either of the following examples. Other expressions which return ob...
by jeeswg
19 Jan 2019, 20:48
Forum: Ask For Help
Topic: Cloning array[].Class_Object and removing it from inside its class. And restructuring a if() into its own method. Topic is solved
Replies: 24
Views: 317

Re: Cloning array[].Class_Object and removing it from inside its class. And restructuring a if() into its own method. Topic is solved

- I'm not sure of the overall best approach for this scenario. - I have had problems in the past with trying to remove items while in a loop (items skipped/arrays messed up), and so typically I've created a list of items to remove after the loop is over. - Because of the need for an 'items to remove...
by jeeswg
19 Jan 2019, 20:17
Forum: Ask For Help
Topic: Cloning array[].Class_Object and removing it from inside its class. And restructuring a if() into its own method. Topic is solved
Replies: 24
Views: 317

Re: Cloning array[].Class_Object and removing it from inside its class. And restructuring a if() into its own method. Topic is solved

- It sounds like you want a list that maintains its order, where you can remove items, and put them at the end. - AutoHotkey doesn't have anything too convenient for this, built-in, but I would consider just using a comma-separated list. - Scripting.Dictionary objects maintain insertion order, so ar...
by jeeswg
19 Jan 2019, 15:17
Forum: Ask For Help
Topic: Replacing native parameters with a single parameter Topic is solved
Replies: 8
Views: 141

Re: Replacing native parameters with a single parameter Topic is solved

Like this:

Code: Select all

ParametersCombined := [WinTitle,WinText,ExcludeTitle,ExcludeText]
if WinExist(ParametersCombined*)
by jeeswg
19 Jan 2019, 14:58
Forum: Ask For Help
Topic: [solved] RegExMatch problem (simple) Topic is solved
Replies: 7
Views: 176

Re: [solved] RegExMatch problem (simple) Topic is solved

If your path contains \E that could still pose a problem:
simplest way to make a RegEx needle literal? - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=30420

Using StrLen on A_WorkingDir, and then using SubStr could be better.
by jeeswg
19 Jan 2019, 14:40
Forum: Ask For Help
Topic: Excel sum cells to an established number
Replies: 3
Views: 98

Re: Excel sum cells to an established number

This is combinatorics stuff, it often helps to produce numbers in a particular base e.g. binary. Here's some code to solve the mathematical part of the problem. q:: ;add a subset of numbers to reach a total oArray := [10, 20, 30, 40, 50, 60] vTarget := 110 vChoose := 3 vOutput := "target: " vTarget ...
by jeeswg
19 Jan 2019, 14:26
Forum: Ask For Help
Topic: How to find duplicate lines? Topic is solved
Replies: 17
Views: 375

Re: How to find duplicate lines? Topic is solved

I have some content: FREQUENCY COUNT and REMOVE DUPLICATES, here:
jeeswg's objects tutorial - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=7&t=29232

It uses AHK's built-in associative array or a Scripting.Dictionary object to achieve the counts/remove duplicates.
by jeeswg
19 Jan 2019, 14:03
Forum: Ask For Help
Topic: Problem with switching between identical windows.
Replies: 1
Views: 60

Re: Problem with switching between identical windows.

Check the hWnd.
WinGet, hWnd, ID, % WinTitle
by jeeswg
19 Jan 2019, 03:13
Forum: Ask For Help
Topic: AHK can't send python code?
Replies: 7
Views: 144

Re: AHK can't send python code?

- See CHARACTERS (VERBATIM), here: jeeswg's characters tutorial - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=7&t=26486 - One possible reason for your problem is that AutoHotkey may have interpreted parentheses intended as text, and seen them as ending the continuation section...
by jeeswg
18 Jan 2019, 10:49
Forum: Ask For Help
Topic: Is there a possibility of delay in time calculation?
Replies: 7
Views: 163

Re: Is there a possibility of delay in time calculation?

It's difficult to 100% envisage every scenario, but I think your logic is sound. If an extra second elapses: if the difference is positive, then the second difference is an underestimate, and so you can round up to the nearest minute/hour using Ceil if the difference is negative, then the second dif...

Go to advanced search