Search found 545 matches

by omar
04 May 2024, 21:01
Forum: Ask for Help (v2)
Topic: Trouble getting first AHK V2 script working
Replies: 4
Views: 267

Re: Trouble getting first AHK V2 script working

>> What made you decide upon this code? Oh :) I used what they had on the example code they gave I didn't read what it said I now have: ::]ahk:: { tempClipboard := ClipboardAll() A_Clipboard := " ( This text is placed on the clipboard, and will be pasted below by sending Ctrl+V. )" SendInput "^v" Sl...
by omar
04 May 2024, 20:36
Forum: Ask for Help (v2)
Topic: Trouble getting first AHK V2 script working
Replies: 4
Views: 267

Re: Trouble getting first AHK V2 script working

Thanks I've looked at the link you gave and came up with this to test: ::]ahk:: { tempClipboard := ClipboardAll() A_Clipboard := " (Join`s This text is placed on the clipboard, and will be pasted below by sending Ctrl+V. )" SendInput "^v" Sleep 200 A_Clipboard := tempClipboard } The output comes out...
by omar
04 May 2024, 20:09
Forum: Ask for Help (v2)
Topic: Trouble getting first AHK V2 script working
Replies: 4
Views: 267

Trouble getting first AHK V2 script working

I have zillions of text shortcuts. I have a massive file in V1. I'm having trouble making work in V2. This is what I have so far: ::]ahk:: { tempClipboard := Clipboard Clipboard = ( #NoEnv ; Recommended setting for new AHK scripts. Makes sure AHK doesn't access empty variables. #SingleInstance force...
by omar
04 May 2024, 02:00
Forum: Ask for Help (v2)
Topic: Can you re-assign multimedia keys?
Replies: 3
Views: 218

Re: Can you re-assign multimedia keys?

Amazing reply
That's really helpful 👍

One thing I'm wary of is that these units come with their own bespoke software freshly made in China 🙃
If I can use AHK... then I'll opt for that instead
by omar
01 May 2024, 08:24
Forum: Ask for Help (v2)
Topic: Can you re-assign multimedia keys?
Replies: 3
Views: 218

Can you re-assign multimedia keys?

Can I assign multimedia keys to run AHK code? Seems simple and straight forward? Would I use AHK Spy to figure out what the button pressed? Some guidance here would be great Sometime ago I had the great idea of buying a USB keypad with buttons and assigning them the AHK scripts. Alas... I found out ...
by omar
16 Apr 2024, 04:48
Forum: Ask for Help (v2)
Topic: Idea: delayed startup tool
Replies: 1
Views: 66

Idea: delayed startup tool

I had an really simple idea for some AHK code... A tool that launches apps 10 minutes after starting your machine - instead of having 20 apps clogging the system resources and all trying to launch the moment the PC starts. The AHK code could have a list of apps and choose to launch each after 5 or 1...
by omar
23 Mar 2024, 08:50
Forum: Ask for Help (v2)
Topic: Idea for using AHK on mobile (through a PC)
Replies: 4
Views: 139

Re: Idea for using AHK on mobile (through a PC)

mikeyww wrote:
23 Mar 2024, 07:38
Hello,

I believe that some of this addresses your question.

https://www.autohotkey.com/search/?q=mobile+ahk
Been there done that a long time ago. I don't think you read my proposal.
by omar
23 Mar 2024, 07:28
Forum: Ask for Help (v2)
Topic: Idea for using AHK on mobile (through a PC)
Replies: 4
Views: 139

Idea for using AHK on mobile (through a PC)

I had an idea for sometime... I want to have automation on mobile using AHK. Currently to my knowledge there's nothing that comes close to AHK on mobiles. So... I thought I could mirror my phone on my PC and then interact with it using AHK. That would include inserting text as well as clicking butto...
by omar
13 Mar 2024, 12:36
Forum: Ask for Help (v1)
Topic: Text shortcut to load file and read and then make shortcut - doesn't work
Replies: 3
Views: 81

Text shortcut to load file and read and then make shortcut - doesn't work

I want to make a text short cut to: - load a text file and read each line into an array. - Then I want to randomly pick a line and output. My code doesn't seem to work. I've tried adding sleep's to allow for the time to read the text file. ::]focus:: ; Initialize an empty array lines := [] ; Open th...
by omar
04 Dec 2023, 11:16
Forum: Ask for Help (v1)
Topic: Code doesn't run twice
Replies: 5
Views: 246

Re: Code doesn't run twice

Oooh!
That worked :bravo:
Crazy and weird
What do you think was happening?
And why did that solve the problem?

Big thanks
by omar
04 Dec 2023, 10:33
Forum: Ask for Help (v1)
Topic: Code doesn't run twice
Replies: 5
Views: 246

Re: Code doesn't run twice

Hmm, weird

I've run 3 times and this is the output I get:

Code: Select all

# @@@@@@@@@@@@@@@@@@@@



# @@@@@@@@@@@@@@@@@@@@

# ££££££££££££££££££££



# ££££££££££££££££££££

# 



# 

It failed the 3rd time. Have you tried running say 5/6 times?

Thanks
by omar
04 Dec 2023, 10:19
Forum: Ask for Help (v1)
Topic: Code doesn't run twice
Replies: 5
Views: 246

Code doesn't run twice

I have a small snippet of code that doesn't run the second time it's called: ::]test:: my_string = "*&^`%$£-+=!<>#@:" Random, char, 0, strlen(my_string) result := SubStr(my_string, char, 1) SendInput {#}{space} Loop, 20 { SendInput, % result } Sleep 100 SendInput {enter}{enter}{enter}{enter} Sleep 1...
by omar
03 Dec 2023, 16:14
Forum: Ask for Help (v1)
Topic: How do I output the # character
Replies: 3
Views: 293

Re: How do I output the # character

perfect!
That works nicely!
Thanks
by omar
03 Dec 2023, 16:05
Forum: Ask for Help (v1)
Topic: How do I output the # character
Replies: 3
Views: 293

How do I output the # character

Seems to be impossible! I've tried: ::]code:: SendInput # ; Doesn't work - prints nothing SendInput `# ; Doesn't work -prints nothing SendInput % "#" ; Doesn't work -prints nothing SendInput % "`#" ; Doesn't work -prints nothing my_output_string := chr(35) ; Doesn't work -prints nothing SendInput % ...
by omar
03 Oct 2023, 17:27
Forum: Ask for Help (v1)
Topic: Best way to output an array to inspect contents
Replies: 3
Views: 411

Best way to output an array to inspect contents

I'm writing some code to read in a CSV or copy data from the Clipboard. I'll be storing in a 2 dimensional array Is there quick way of inspecting the array? I can't just print the array? I need something quick so I can inspect the contents of arrays When I googled I found the best solution was to ma...
by omar
01 Oct 2023, 15:51
Forum: Ask for Help (v1)
Topic: Trouble reading in tab delimited data
Replies: 2
Views: 254

Re: Trouble reading in tab delimited data

@andymbody Amazing :)
Thanks
by omar
01 Oct 2023, 15:21
Forum: Ask for Help (v1)
Topic: Trouble reading in tab delimited data
Replies: 2
Views: 254

Trouble reading in tab delimited data

I need some help writing a some code to read in a tab separated data I've tried this: spreadsheetdata_row := StrSplit(%Clipboard%, %A_Tab%) MsgBox, % spreadsheetdata_row.3 And this: spreadsheetdata_row := StrSplit(%Clipboard%, A_Tab) MsgBox, % spreadsheetdata_row.3 Neither work. What am I doing wron...
by omar
26 Sep 2023, 20:15
Forum: Ask for Help (v1)
Topic: Need to make an app to send SMS on The desktop
Replies: 0
Views: 197

Need to make an app to send SMS on The desktop

I was hoping someone can point to holes in my plan and give a better solution... I'm going to write some AHK code to parse through a sales csv and send SMS to customers giving the tracking. Firstly, I'll read in a CSV file and store the data in an array and have ready for use in memory. I'll then us...
by omar
20 Jun 2023, 09:38
Forum: Ask for Help (v2)
Topic: Why still flagged up for viruses?
Replies: 9
Views: 1248

Re: Why still flagged up for viruses?

Haha...
Erm, I don't have a few 1000 hours spare to rewrite. 🙃

Still not wanting to give up...
Has anyone from AHK though to reach out to these antivirus companies?
by omar
20 Jun 2023, 09:15
Forum: Ask for Help (v2)
Topic: Why still flagged up for viruses?
Replies: 9
Views: 1248

Re: Why still flagged up for viruses?

gregster wrote:
19 Jun 2023, 10:55
You should ask the antivirus vendors who show false positives.
It might not be fair... but surely it's upto AHK to jump through whatever hurdles are needed to get passed by the virus tests?

@mikeyww exclusion? Never heard of that before. Can you explain or give me a link to read up.

Thanks.

Go to advanced search