Search found 451 matches

by omar
Yesterday, 21:02
Forum: Ask For Help
Topic: How to get input from msgbox and use as variables in code?
Replies: 1
Views: 36

How to get input from msgbox and use as variables in code?

I've never done this before...
But, I want to have a msgbox popup that asks for 3 inputs say.
I then want to execute simple code using this 3 variables?

I'm guessing this is simple

Can someone show me code to start me off?

Thanks
by omar
22 Jan 2021, 18:23
Forum: Ask For Help
Topic: Trouble splitting comma separated data into array
Replies: 4
Views: 1382

Re: Trouble splitting comma separated data into array

@mikeyww I have a small problem

My data is:

abc,123
efg,456
xyz,999

Now I copy this into clipboard.
But the final line has a new line character.
So the loop gets executed one extra time.

I've tried trimming the clipboard by using trim(Clipboard)
Doesn't seem to work.

Any ideas?

Thanks.
by omar
22 Jan 2021, 16:58
Forum: Ask For Help
Topic: Trouble splitting comma separated data into array
Replies: 4
Views: 1382

Trouble splitting comma separated data into array

I'm reading in from clipboard some data like this: abc,123 efg,456 xyz,999 I want to read each line and then get the 2 items read into a variable I'm trying this: Loop, parse, clipboard, `n, `r { StringSplit, myArray, A_LoopField, `, MsgBox % myArray[1] + myArray[1] } Not working. What am I doing wr...
by omar
13 Jan 2021, 21:42
Forum: Ask For Help
Topic: Can I automate form posting?
Replies: 4
Views: 68

Re: Can I automate form posting?

Not sure if I explained properly... The sending address will always be different for ebay and Amazon - I don't know beforehand the details I looked at RoboForm Don't think that fits the bill I looked at other form fillers as well - same thing They are great for SAME values always (as far as I can se...
by omar
13 Jan 2021, 21:11
Forum: Ask For Help
Topic: Can I automate form posting?
Replies: 4
Views: 68

Can I automate form posting?

There are many forms that I would like to have prefilled and posted. Examples: - Google Calendar events I use these as reminder events. I will add a note like: 3rd February, dentist appointment at 9.30am. I will then schedule a reminder email to be sent: 120 minutes before the event, 1 day before, 5...
by omar
12 Jan 2021, 23:58
Forum: Ask For Help
Topic: Check for folder, if not exist, create - how best to do?
Replies: 1
Views: 63

Check for folder, if not exist, create - how best to do?

I searched and found and old thread. 2 answers: IfNotExist, %CLogDir% FileCreateDir, %LogDir% This doesn't work. What is LogDir? The folder name you are trying to create? But then what is CLogDir?? Before that someone gave this answer: If( InStr( FileExist("Dirname"), "D") ) msgbox Directory exists ...
by omar
12 Jan 2021, 23:36
Forum: Ask For Help
Topic: Problems passing in files with spaces in name Topic is solved
Replies: 7
Views: 142

Re: Problems passing in files with spaces in name Topic is solved

BoBo Thanks I did that and found the bug 🙂 Run, % comspec " /k convert """ . param . """ -resize 300 " . name_no_ext . " optimised.jpg" ; using double-quotes Say I ran for the file 'abc def ghi.jpg' This was giving me at the end: abc def ghi optimised.jpg This should be: "abc def ghi optimised.jpg"...
by omar
11 Jan 2021, 22:42
Forum: Ask For Help
Topic: Problems passing in files with spaces in name Topic is solved
Replies: 7
Views: 142

Re: Problems passing in files with spaces in name Topic is solved

None of these work guys
I thought it would be such a simple thing to do?

Any other suggestion?
Thanks
by omar
10 Jan 2021, 23:45
Forum: Ask For Help
Topic: Problems passing in files with spaces in name Topic is solved
Replies: 7
Views: 142

Problems passing in files with spaces in name Topic is solved

I've 95% written some code... but it's not quite working. Hoping to get some help... This is my code: #NoEnv #SingleInstance force for n, param in A_Args ; For each parameter: { SplitPath, param, name, dir, ext, name_no_ext, drive Run, %COMSPEC% /k convert %param% -resize 300 "%name_no_ext% optimise...
by omar
10 Jan 2021, 22:37
Forum: Ask For Help
Topic: How to get a file name without suffix? Topic is solved
Replies: 2
Views: 53

Re: How to get a file name without suffix? Topic is solved

Thanks!
That looks just like the job
I thought I would need to use regex or something
Splitpath sounds perfect
👍🏼
by omar
10 Jan 2021, 22:08
Forum: Ask For Help
Topic: How to get a file name without suffix? Topic is solved
Replies: 2
Views: 53

How to get a file name without suffix? Topic is solved

How can I get the file name without suffix?

Say we have:

test.jpg
123.my files.jpg
converted.pdf.jpg

I want to get

test
123.my files
converted.pdf

Thanks.
by omar
09 Jan 2021, 21:40
Forum: Ask For Help
Topic: Need help with stringreplace or regex
Replies: 2
Views: 37

Re: Need help with stringreplace or regex

You are amazing 🙂
I'll try that and let you know if I have problems
by omar
09 Jan 2021, 20:45
Forum: Ask For Help
Topic: Need help with stringreplace or regex
Replies: 2
Views: 37

Need help with stringreplace or regex

In a file, I have strings like this: abeir7pf4tz All start with 'abei', then followed by 7 random characters. Examples are: abeiy7pcfh6 abeih7pkj7p abeiv7pdl5v abeia7prr87 abeiy7pjkdg It looks like the 6th character is a 7 - but not sure if this will always be the case. What I want to do is delete a...
by omar
05 Jan 2021, 20:03
Forum: Ask For Help
Topic: How to encrypt
Replies: 6
Views: 214

Re: How to encrypt

Thanks for the replies guys. @Rohwedder wow That looks pretty good. Just what I wanted! Can you explain what's happening? How does it work? Is it this that's doing the work: ^ ? I can't seem to search for it! I'll use this. But would love to know how and why it works! EDIT : it doesn't work if the n...
by omar
01 Jan 2021, 21:16
Forum: Ask For Help
Topic: How to encrypt
Replies: 6
Views: 214

Re: How to encrypt

Looks great I can't figure out how to use though I've looked at the examples and it's not making sense! For example: MsgBox % Crypt.Hash.String("SHA1", "The quick brown fox jumps over the lazy dog") ; -> 2fd4e1c67a2d28fced849ee1bb76e7391b93eb12 How would one decrypt? Then you have: MsgBox % Crypt.En...
by omar
01 Jan 2021, 19:21
Forum: Ask For Help
Topic: How to encrypt
Replies: 6
Views: 214

How to encrypt

I have a 12 digit number: 133565828659 I want to encrypt this (and after decrypt). What are my options? I spent 20-30 minutes going through different options I found on Google. One promising one from this link: https://github.com/aviaryan/autohotkey-scripts/blob/master/Functions/Encrypt.ahk But this...
by omar
20 Dec 2020, 21:20
Forum: Ask For Help
Topic: Need help replacing a pattern of characters
Replies: 4
Views: 38

Re: Need help replacing a pattern of characters

Thanks
I'll read up more from your links and will try the code 👍🏼
by omar
20 Dec 2020, 21:12
Forum: Ask For Help
Topic: Need help replacing a pattern of characters
Replies: 4
Views: 38

Re: Need help replacing a pattern of characters

Very nice 🙂 Could you explain the code for me? "amax[^,\n]{7,}" What are the ^ , \n characters? What does the {,7} do? I'm guessing it says amax + 7 characters? ALSO: MsgBox, 48, Error, An error occurred while waiting for the clipboard. MsgBox, 64, Results, %Clipboard% What does the 48 and 64 do? Th...
by omar
20 Dec 2020, 20:23
Forum: Ask For Help
Topic: Need help replacing a pattern of characters
Replies: 4
Views: 38

Need help replacing a pattern of characters

I have a CSV with character sets that I need to replace. These characters are link the following: amaxb7568bj amaxj74tyl9 amaxk74r98z amaxy74jzs8 amaxs74fjt5 amaxp74cd6t amax4744bnr amaxk74fygz amaxv747crm amaxu747vd2 amaxj749hjy amaxg74brvl amaxf74bglr amaxx77l8ls So... they start with 'amax' and t...

Go to advanced search