Search found 4561 matches

by boiler
26 May 2020, 09:18
Forum: Ask For Help
Topic: Help with clicking, ctrl + a and pasting
Replies: 37
Views: 628

Re: Help with clicking, ctrl + a and pasting

I don't know if the click is happening in the right place. See here the 3 different mouse positions shown red. Which does ahk use when left clicking? If you don't specify a position, then it clicks at the current mouse pointer position, which I assume you had positioned correctly. If you specify co...
by boiler
26 May 2020, 08:52
Forum: Ask For Help
Topic: Help with clicking, ctrl + a and pasting
Replies: 37
Views: 628

Re: Help with clicking, ctrl + a and pasting

stevehero wrote: It is strange that the click doesn't perform the same as a manual one.
Yes, although you might want to experiment with sending another click, perhaps after a short pause, to see if it will focus it again.
by boiler
26 May 2020, 08:49
Forum: Ask For Help
Topic: scanning
Replies: 2
Views: 74

Re: scanning

Yes, you should be able to initiate a scan by having your script open and interact with the Windows scan dialog box. Basically, you would be automating the procedure described here. It wouldn't be done invisibly, unless others know how to invoke these functions through DLL calls or similar.
by boiler
26 May 2020, 08:34
Forum: Ask For Help
Topic: Execute hotstrings problems
Replies: 9
Views: 240

Re: Execute hot string in the middle of source string to the target string

And I am trying to make a hot keys like this also: ::ie::iê ; execute only when it is in the middle of the string ; eg: kien => kiên ::ie6::yê ; execute when it is in the head of the string only. ; eg: ie6n => yên /* or better just one command line ::ie:: can be detected if it is in the head / midd...
by boiler
26 May 2020, 08:32
Forum: Ask For Help
Topic: Execute hotstrings problems
Replies: 9
Views: 240

Re: Excuxe Hotstring

I do need some result like this: ::c::ch ; type [ca] to expand to [cha]. ::chh::x ; type [cha] to expand to [xa]. it's make sense for me. Not the logical problem as you say. If there are a way we can do that, please show me. I really appreciate that. It looks like you are counting on AHK to recogni...
by boiler
26 May 2020, 07:27
Forum: Ask For Help
Topic: Need help with a macro [Excel]
Replies: 1
Views: 61

Re: Need help with a macro [Excel]

See this post for the general approach.
by boiler
26 May 2020, 07:13
Forum: Ask For Help
Topic: Nedd help with ComObjAct
Replies: 3
Views: 130

Re: Nedd help with ComObjAct

It is commonly used to return an object of the COM interface to a running Microsoft Office application, such as: oWord := ComObjActive("Word.Application") oExcel := ComObjActive("Excel.Application") oOutlook := ComObjActive("Outlook.Application") The object is then used to get info from or to change...
by boiler
26 May 2020, 06:56
Forum: Ask For Help
Topic: sorting csv file based within range of rows.
Replies: 8
Views: 165

Re: sorting csv file based within range of rows.

Nice. Good to hear.
by boiler
26 May 2020, 06:55
Forum: Ask For Help
Topic: Choose a Random Coordinate in a coloured shape
Replies: 3
Views: 93

Re: Choose a Random Coordinate in a coloured shape

That really depends on how transparent it is and what the background looks like. It’s really possible that you might not be able to distinguish the middle part from the background, unfortunately.
by boiler
26 May 2020, 04:07
Forum: Ask For Help
Topic: Help with clicking, ctrl + a and pasting
Replies: 37
Views: 628

Re: Help with clicking, ctrl + a and pasting

Oh, I never used that before but it looks promising. However, the example doesn't help me figure out how to implement it for my needs. Unfortunately, it wouldn’t be able to be used generically across programs as you described your use. However, you could have your recognize when a certain window is...
by boiler
25 May 2020, 23:25
Forum: Ask For Help
Topic: Choose a Random Coordinate in a coloured shape
Replies: 3
Views: 93

Re: Choose a Random Coordinate in a coloured shape

Once it finds the upper-left corner, if you know approximately how large the shape is expected to be, you could choose a random pixel within a rectangle defined by the found upper-left corner and the lower-right defined by an offset from that corner with the expected rectangle to search within. Use ...
by boiler
25 May 2020, 23:16
Forum: Ask For Help
Topic: Is there a difference in how variables are stored in arrays?
Replies: 5
Views: 168

Re: Is there a difference in how variables are stored in arrays?

From the documentation on Clipboard : When used in ways other than those described above, binary clipboard data is usually interpreted as text and truncated at the first null character , which is typically at the beginning of the data. For instance, this occurs when one attempts to return the data f...
by boiler
25 May 2020, 23:03
Forum: Ask For Help
Topic: Loop Until function is True Topic is solved
Replies: 7
Views: 183

Re: Loop Until function is True Topic is solved

You can pass a function object like this. This means the function waitUntil is expecting the until parameter to be a function object as shown. You could pass something other than isOpen, but it has to be a function. waitUntil(until, Timeout:=20000) { tick := A_TickCount loop { if %until%() break if ...
by boiler
25 May 2020, 22:52
Forum: Ask For Help
Topic: How to get the path of a file object? Topic is solved
Replies: 7
Views: 213

Re: How to get the path of a file object? Topic is solved

JackMa wrote:
25 May 2020, 20:48
I have considered that this operation is obvious. Next time I ask a question, I will write the known methods.
A lot of people post questions and have overlooked the most straightforward solutions, so it's worth mentioning. Since you're new here, I don't know what you may have considered.
by boiler
25 May 2020, 20:27
Forum: Ask For Help
Topic: How to get the path of a file object? Topic is solved
Replies: 7
Views: 213

Re: How to get the path of a file object? Topic is solved

You would have needed the path to create the file object, correct? That would be the time where your script would know it and assign it to a variable if desired. Do you mean to store variables in advance? I mean when you create the file object, it’s with a known path, right? So you could just captu...
by boiler
25 May 2020, 20:05
Forum: Ask For Help
Topic: sorting csv file based within range of rows.
Replies: 8
Views: 165

Re: sorting csv file based within range of rows.

I would put a ToolTip showing some info to indicate the progress. It will slow it down, but at least it will help you see if it's working as expected.
by boiler
25 May 2020, 19:58
Forum: Ask For Help
Topic: GUI modification questions
Replies: 20
Views: 381

Re: GUI modification questions

That's why I said you should use Gui, Submit instead of Gui, Destroy if you're planning on displaying the GUI again.
by boiler
25 May 2020, 19:57
Forum: Ask For Help
Topic: Help with clicking, ctrl + a and pasting
Replies: 37
Views: 628

Re: Help with clicking, ctrl + a and pasting

That's strange. I suppose you could try using Click instead of sending LButton, but I doubt it would make a difference. You could try using ControlFocus instead.
by boiler
25 May 2020, 19:27
Forum: Ask For Help
Topic: if and else. higher or lower than a certain amount
Replies: 10
Views: 257

Re: if and else. higher or lower than a certain amount

I see. That's what was confusing to me. So put a return before those lines and it will act as you want.
by boiler
25 May 2020, 19:14
Forum: Ask For Help
Topic: Is it possible to not reorder the key values of the output associative array when using a For loop? Topic is solved
Replies: 9
Views: 700

Re: Is it possible to not reorder the key values of the output associative array when using a For loop? Topic is solved

Can you use Helgef's suggested method of using a linear array of data pairs? : aa1 := [ ["begin", 100], ["middle", 200], ["end", 300] ] aa2 := [ ["top", 0], ["center", 10], ["bottom", 20] ] msgbox % ToString(aa1) msgbox % ToString(aa2) ToString(aa) { r := "" For key, value in aa r .= Format("{}:`t{}...

Go to advanced search