Search found 492 matches

by Chunjee
48 minutes ago
Forum: Ask For Help
Topic: Removing date/time from text
Replies: 4
Views: 620

Re: Removing date/time from text

Just for fun:

Code: Select all

A := new biga() ; requires https://www.npmjs.com/package/biga.ahk

text := "2020-05-27 19:07:46 test"
msgbox, % A.replace(text, "/(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} )/", "")
; => "test"
by Chunjee
58 minutes ago
Forum: Ask For Help
Topic: Removing date/time from text
Replies: 4
Views: 620

Re: Removing date/time from text

could use regex to pull out the text or delete the dateandtime
by Chunjee
Today, 10:26
Forum: Ask For Help
Topic: Does AutoHotkey Slow Down Your Computer Considerably?
Replies: 1
Views: 383

Re: Does AutoHotkey Slow Down Your Computer Considerably?

Yeah depends on the computer and the script itself. Modern operating systems dole out CPU and memory to programs so even if you were able to program something really complex and heavy, Windows is only going to allocate it a reasonable amount of resources, so while the app will run slow, it won't bri...
by Chunjee
Yesterday, 10:10
Forum: Ask For Help
Topic: Looking for help with, I think, a while/unitl loop. Topic is solved
Replies: 11
Views: 2313

Re: Looking for help with, I think, a while/unitl loop. Topic is solved

I think 000000_______________0
00000000_____________0
00000000_____________0
00000000_____________0
00000000_____________0
___________________000
___________________000
is too generic. It's probably matching when two stars are close to each other. 0_____0
by Chunjee
Yesterday, 09:54
Forum: Ask For Help
Topic: Looking for help with, I think, a while/unitl loop. Topic is solved
Replies: 11
Views: 2313

Re: Looking for help with, I think, a while/unitl loop. Topic is solved

FindText returns 0 when the image is not found. I think you need to make your Search1,Search2 more specific or bigger, since they seem to be matching those brighter blue stars. You may accidentally be using it more like a pixelsearch.


FindText return line:

Code: Select all

return arr.MaxIndex() ? arr:0
by Chunjee
01 Jul 2020, 22:38
Forum: Scripts and Functions
Topic: [Class] biga.ahk (utilities mirroring Lodash)
Replies: 50
Views: 8126

Re: [Class] biga.ahk (utilities mirroring Lodash)

Used this today for something I thought was cool. My app has a large array of objects and each object has 8 or so pieces of data stored as key/value pairs. I need to output all of these objects in two ways. One acts like a database and holds all the data. the other needs all the objects, but not all...
by Chunjee
01 Jul 2020, 11:35
Forum: Scripts and Functions
Topic: FastMatrix
Replies: 17
Views: 4019

Re: FastMatrix

I wasn't aware of this work. Hope I can find a good project to play with it. Thanks!
by Chunjee
29 Jun 2020, 08:34
Forum: Ask For Help
Topic: Old dog, no new tricks, willing to pay.
Replies: 2
Views: 986

Re: Old dog, no new tricks, willing to pay.

I think about $200-400 would be fair.


Never worked with Thunderbird so would require some R&D if I was involved.
by Chunjee
29 Jun 2020, 08:32
Forum: Gaming
Topic: Need help with a simple script
Replies: 2
Views: 534

Re: Need help with a simple script

How about

Code: Select all

F1::
SetTimer, PressV, 180000
return

Esc::
ExitApp, 1

PressV:
SendInput, V
return
by Chunjee
26 Jun 2020, 12:44
Forum: Wish List
Topic: [Request] Module Export
Replies: 20
Views: 5625

Re: [Request] Module Export

In case the OP was not clear. This is needed because if you want to make a library that makes use of another library you are likely screwed because ahk doesn't let you #include in a scoped manner and you can't define functions at anything but the global scope. You also can't define functions with th...
by Chunjee
26 Jun 2020, 12:40
Forum: Wish List
Topic: [Request]: Official Library & Wrapper
Replies: 104
Views: 26023

Re: [Request]: Official Library & Wrapper

npm is now a part of github so not using it will be more and more foolish.

https://github.blog/2020-04-15-npm-has-joined-github/
by Chunjee
26 Jun 2020, 01:42
Forum: Ask For Help
Topic: I have two arrays: Names_List and Remove_These_Names. How do I remove the 2nd array's items from the 1st array?
Replies: 7
Views: 2124

Re: I have two arrays: Names_List and Remove_These_Names. How do I remove the 2nd array's items from the 1st array?

You can also use a dedicated function or method for subtracting arrays from each other: A := new biga() ;requires https://www.npmjs.com/package/biga.ahk Name_List := ["Greg", "Marcia", "Peter", "Jan", "Bobby", "Cindy"] Remove_These_Names := ["Greg", "Bobby", "Cindy"] A.difference(Name_List, Remove_T...
by Chunjee
25 Jun 2020, 11:46
Forum: Ask For Help
Topic: Loop not working if using clipboard ... Topic is solved
Replies: 8
Views: 1807

Re: Topic is solved

number of things could be going wrong. I think most likely the clipboard is not ready or holding something other than a number.

Also the blank line between loop and the opening { is of concern.
by Chunjee
24 Jun 2020, 13:41
Forum: Ask For Help
Topic: Found A Script On Reddit...
Replies: 6
Views: 1866

Re: Found A Script On Reddit...

replace "NETWORK ADAPTER NAME" with the name of your network adapter maybe.
by Chunjee
24 Jun 2020, 09:52
Forum: Ask For Help
Topic: LIST TYPER Script
Replies: 4
Views: 1310

Re: LIST TYPER Script

I think he wants to backspace out the whole word. I kinda came up with this but it just does the whole list. I could not find the effort required to do each one after pressing enter. Would need to be two functions basically. F1:: FileRead, FILECONTENT, dictionary.txt StringSplit, aList, FILECONTENT,...
by Chunjee
24 Jun 2020, 06:11
Forum: Ask For Help
Topic: Storing the content in brackets
Replies: 2
Views: 519

Re: Storing the content in brackets

They're called parenthesis.

Easiest would be to check if the character "(" AND ")" exist, if so save to file? But that won't grab the content between the parenthesis. For that I think Regex may make the most sense.
by Chunjee
23 Jun 2020, 10:46
Forum: Ask For Help
Topic: LIST TYPER Script
Replies: 4
Views: 1310

Re: Word Generator Script - URGENT HELP

Isn't generating anything. Just typing out your list?

fix thread title.


Your code uses random, but you want it in order? Whole thing is confusing.
by Chunjee
23 Jun 2020, 07:46
Forum: Scripts and Functions
Topic: [Class] graphicsearch.ahk (ImageSearch strings)
Replies: 23
Views: 3934

Re: [Class] graphicsearch.ahk (ImageSearch strings)

0.3.3 is now on npm and github. FeiYue answered my question about joinqueries/joinText which is now described in the documentation as: Whether or not to search each query in succession. Queries must be in close proximity (like characters in a string) The code has reverted to this being defaulted to ...
by Chunjee
23 Jun 2020, 06:33
Forum: Ask For Help
Topic: Why does this winhttp request fail? Topic is solved
Replies: 5
Views: 2072

Re: Why does this winhttp request fail? Topic is solved

Not sure. My guess is the host is not completing the TCP handshake required for an http connection to be established.

Go to advanced search