Search found 69 matches

by watagan
18 Jan 2021, 08:25
Forum: Ask For Help
Topic: permutations function with ALL possible combinations
Replies: 9
Views: 178

Re: permutations function with ALL possible combinations

Rohwedder wrote:
18 Jan 2021, 08:23
Sorry, but now it smells like password cracking.
:lol:
by watagan
18 Jan 2021, 06:59
Forum: Ask For Help
Topic: permutations function with ALL possible combinations
Replies: 9
Views: 178

Re: permutations function with ALL possible combinations

Works great. Thanks Now I have a request and I hope you have time to get it done. Could you edit it in a away that a user can specify permutations length and character group? Example: Say I have character group "ABCDEG123456%$" and I want the output length to be (for example) 4 characters I would li...
by watagan
18 Jan 2021, 04:59
Forum: Ask For Help
Topic: permutations function with ALL possible combinations
Replies: 9
Views: 178

Re: permutations function with ALL possible combinations

Thanks for having a go at it.
But I need a function not restricted to string length.
by watagan
18 Jan 2021, 03:58
Forum: Ask For Help
Topic: permutations function with ALL possible combinations
Replies: 9
Views: 178

permutations function with ALL possible combinations

Hello,

Anyone got a permutations function that would return all possible combinations like this:
Example:
String := "ABCD"
Result:
AAAA
AAAB
AAAC
....
DDDD
Got a headache trying to figure it out and existing functions I managed to find on the forum didn't do same char repetition.

Cheers
by watagan
16 Jan 2021, 06:27
Forum: Scripts and Functions
Topic: Auto-Syntax-Tidy v13
Replies: 2
Views: 186

Re: Auto-Syntax-Tidy v13

I needed this. Thank you.
Unfortunately, it breaks some scripts :/
by watagan
15 Jan 2021, 01:22
Forum: Ask For Help
Topic: Play specific part of an audio file Topic is solved
Replies: 8
Views: 141

Re: Play specific part of an audio file Topic is solved

Thanks to all of you.
Here, I put a simple class together under Scripts and Functions
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=85674
by watagan
15 Jan 2021, 01:19
Forum: Scripts and Functions
Topic: [class_wmp] Play part of an audio file
Replies: 0
Views: 94

[class_wmp] Play part of an audio file

Credit to AHKStudent and BoBo https://www.autohotkey.com/boards/viewtopic.php?p=376078 I needed to play part of an audio file. Here is a simple class to get it done without using external players. Note: -This class can be improved by adding other WMP functionalities found here: https://docs.microso...
by watagan
14 Jan 2021, 02:13
Forum: Ask For Help
Topic: Play specific part of an audio file Topic is solved
Replies: 8
Views: 141

Play specific part of an audio file Topic is solved

Is it possible to do this using AHK?
Say I want to start playing at 02:10 and end at 3:20.

Cheers
by watagan
12 Jan 2021, 21:26
Forum: Ask For Help
Topic: Help button in caption
Replies: 2
Views: 87

Re: Help button in caption

WS_EX_CONTEXTHELP (0x00000400) Thanks. The style is E0x00000400 . Too bad it doesn't work with resize/minimize. #noEnv #persistent #singleInstance force setWorkingDir %a_scriptDir% ; by Superfraggle : https://autohotkey.com/board/topic/18429-window-styles/?p=120845 ; https://www.autohotkey.com/boar...
by watagan
09 Jan 2021, 06:35
Forum: Ask For Help
Topic: Help button in caption
Replies: 2
Views: 87

Help button in caption

How to do this in AHK?
I remember in XP you could even drag and release it over controls to show related help messages.
Thanks
by watagan
01 Jan 2021, 22:31
Forum: Ask For Help
Topic: Lock a text file
Replies: 5
Views: 133

Re: Lock a text file

HotKeyIt wrote:
31 Dec 2020, 09:15
You could restore File Attributes when those are changed.
I assume you were joking :ugeek:
What if the file contains sensitive data and one doesn't want to take a chance other apps to change attributes and content of the file in question?
A second is all it takes.
Happy 2021 everybody
by watagan
30 Dec 2020, 22:48
Forum: Ask For Help
Topic: Lock a text file
Replies: 5
Views: 133

Lock a text file

Is there a way to lock a file from being edited (read only) and deleted yet keep it visible for reading for other apps and at the same time prevent other apps from changing its attributes. No luck using FileOpen or FileSetAttrib as I was able to change file attributes in explorer > properties or usi...
by watagan
26 Dec 2020, 07:33
Forum: Scripts and Functions
Topic: [FUNCTION] str_getSharedBeginning()
Replies: 0
Views: 86

[FUNCTION] str_getSharedBeginning()

Needed this function to get the shared beginning (if any) in a list of files\items. I thought I would expand it to work right to left too with trim after option. Here it is: #noEnv #persistent #singleInstance force l := " ( C:\\Folder\\sub rtC:\\Folder\\sub tewqyC:\\Folder\\sub 24233C:\\Folder\\sub ...
by watagan
26 Dec 2020, 03:55
Forum: Ask For Help
Topic: Regex to get all uppercase letters Topic is solved
Replies: 8
Views: 146

Re: Regex to get all uppercase letters Topic is solved

Smile_ wrote:
26 Dec 2020, 03:15

Code: Select all

Msgbox % RegexReplace("&P7gf6f6 USft6D", "\P{Lu}")
[v1.0.90+]: Unicode character properties. Not supported on ANSI builds
Good to know. Thanks
by watagan
25 Dec 2020, 22:19
Forum: Ask For Help
Topic: Regex to get all uppercase letters Topic is solved
Replies: 8
Views: 146

Re: Regex to get all uppercase letters Topic is solved

Another way:

Code: Select all

Msgbox % RegexReplace("&P7gf6f6 USft6D", "\P{Lu}")
by watagan
23 Dec 2020, 22:37
Forum: Ask For Help
Topic: How to restore an array? Topic is solved
Replies: 3
Views: 91

Re: How to restore an array? Topic is solved

Not sure it's still needed in newer AHK versions. But here it is: obj_deepClone(obj){ ; by fincs: https://autohotkey.com/board/topic/69542-objectclone-doesnt-create-a-copy-keeps-references/?p=440435 nobj := ObjClone( obj ) for k1k1, v1v1 in nobj if IsObject( v1v1 ) nobj[ k1k1 ] := Obj_deepClone( v1v...
by watagan
22 Dec 2020, 00:04
Forum: Ask For Help
Topic: lvm_insertItem 64 bit Topic is solved
Replies: 4
Views: 133

Re: lvm_insertItem 64 bit Topic is solved

Fixed by teadrinker This should work on all ahk exe (64/32 unicode/ansi) insertItem(row=0,col=1,options=0,f*){ ; works on ahk 64 bit unicode /* options = Multiple of one or more of the LVIS flags listed above. f* = Fields to fill each column. Each field will be inserted in subsequent order starting ...
by watagan
21 Dec 2020, 02:36
Forum: Ask For Help
Topic: EM_SHOWBALLOONTIP any control Topic is solved
Replies: 2
Views: 64

Re: EM_SHOWBALLOONTIP any control Topic is solved

That is just beautiful.
Thank you so much :D
by watagan
21 Dec 2020, 01:09
Forum: Ask For Help
Topic: EM_SHOWBALLOONTIP any control Topic is solved
Replies: 2
Views: 64

EM_SHOWBALLOONTIP any control Topic is solved

Hello, I'm away that EM_SHOWBALLOONTIP is intended to work with edit controls only but a couple of years ago I came across AHK script that would show EM_SHOWBALLOONTIP on any control. Most likely it was a workaround of some sort. Unfortunately, I lost the script. If anyone has it please share. Cheers

Go to advanced search