Search found 6899 matches

by jeeswg
02 Nov 2017, 11:42
Forum: Ask for Help (v1)
Topic: Run ahk scripts with arguments? Topic is solved
Replies: 10
Views: 1960

Re: Run ahk scripts with arguments? Topic is solved

What you could do is use #SingleInstance off , the script would have a condition that checks if the script is already open. If the script was already open, then the 2nd script would send a message using PostMessage to the 1st script. - If the 2nd script has command line parameters, you send them to ...
by jeeswg
02 Nov 2017, 11:03
Forum: Ask for Help (v1)
Topic: Copying text and automated search.
Replies: 2
Views: 871

Re: Copying text and automated search.

- It sounds like you have 100 htm/html files. - You could, like SirRFI mentioned, parse the text, e.g. FileRead and InStr/RegExMatch. - You could also use an HTMLFile object and JavaScript to loop through various web elements, find your match, and then retrieve the contents of an element relative to...
by jeeswg
02 Nov 2017, 10:42
Forum: Bug Reports
Topic: 'force an expression' and 'can be an expression'
Replies: 12
Views: 4916

Re: 'force an expression' and 'can be an expression'

@Helgef: Variables and Expressions https://autohotkey.com/docs/Variables.htm#Operators For backward compatibility, command parameters that are documented as "can be an expression" treat an isolated name in percent signs (e.g. %Var%, but not Array%i%) as though the percent signs are absent. This can ...
by jeeswg
02 Nov 2017, 10:14
Forum: Ask for Help (v1)
Topic: I would like an Alway-on-top window that displays my variables live while my script runs.
Replies: 19
Views: 3352

Re: I would like an Alway-on-top window that displays my variables live while my script runs.

Lucky I memorised the documentation so I don't have to look it up.

Btw I use Internet Explorer 11, which browser do you use? In case for some reason certain browsers were affected earlier than others. Cheers.
by jeeswg
02 Nov 2017, 09:10
Forum: Ask for Help (v1)
Topic: Keyboard LED control
Replies: 10
Views: 3746

Re: Keyboard LED control

I have an example using AHKHID here. It was quite straightforward.
NEW Barcode Input Capture (USB and RS232 compatible) - Page 2 - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 73#p170673
by jeeswg
02 Nov 2017, 08:30
Forum: Ask for Help (v1)
Topic: Mozilla Firefox: Save Image As... using s not v
Replies: 3
Views: 1313

Mozilla Firefox: Save Image As... using s not v

Internet Explorer has 'Save picture as...', with accelerator key s. Mozilla Firefox has 'Save Image As...', with accelerator key v. This equals confusion. Ordinarily in Mozilla Firefox if you press s, you get Set As Desktop Background..., which is undesirable. I'm trying to write a script such that ...
by jeeswg
02 Nov 2017, 07:09
Forum: Ask for Help (v1)
Topic: How to flip image and save to file using GDI+
Replies: 9
Views: 1947

Re: How to flip image and save to file using GDI+

@BoBo: Very true statement.

@Helgef: Haha very funny Helgef. :lol:
So did you get the script to work?

Btw have you checked if these methods handle transparency properly? Cheers. (I believe I had some issues in the past.)
by jeeswg
02 Nov 2017, 06:10
Forum: Tips and Tricks (v1)
Topic: List of Windows Messages
Replies: 17
Views: 21948

Re: List of Windows Messages

I wrote some code to sort the message lists into a more useful order, by value rather than alphabetically. I also set it so that WM messages would rise to the top. q:: ;sort window messages by prefix, then by value (list WM messages first) ;vText := JEE_GetSelectedText() vText := Clipboard vText := ...
by jeeswg
02 Nov 2017, 05:30
Forum: Off-topic Discussion
Topic: « What's on your mind? » Topic is solved
Replies: 4897
Views: 1409497

Re: « What's on your mind? » Topic is solved

List of national animals - Wikipedia
https://en.wikipedia.org/wiki/List_of_national_animals

Two posts in a row, I'm dominating this thread.
by jeeswg
02 Nov 2017, 02:11
Forum: Ask for Help (v1)
Topic: Easy Question about Arrays 3
Replies: 8
Views: 1381

Re: Easy Question about Arrays 3

Some ideas. q:: oArray := {} oArray["a","b",1] := "c" MsgBox, % oArray.a.b.1 oArray := {} oArray["a","b"] := {} oArray.a.b.push("c") MsgBox, % oArray.a.b.1 oArray := {} (oArray["a","b"] := {}).push("c") MsgBox, % oArray.a.b.1 ;keeping it simple oArray := {} oArray.a := {} oArray.a.b := {} oArray.a.b...
by jeeswg
01 Nov 2017, 23:48
Forum: Ask for Help (v1)
Topic: Finding the latest folder in a directory with a 6 digit name Topic is solved
Replies: 3
Views: 863

Re: Finding the latest folder in a directory with a 6 digit name Topic is solved

I've made some slight changes: - Reset vLatest to 0 before we begin, just in case you used vLatest in a different loop earlier. - Use && instead of a second if, although if twice would also work fine. - Use comma instead of && when assigning vLatest and vName. vDest = C:\Test vLatest := 0 Loop, %vDe...
by jeeswg
01 Nov 2017, 23:17
Forum: Ask for Help (v1)
Topic: controlclick,controlsend,postmessage etc..
Replies: 3
Views: 1059

Re: controlclick,controlsend,postmessage etc..

WM_KEYDOWN := 0x100

List of Windows Messages - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=7&t=39218
by jeeswg
01 Nov 2017, 22:55
Forum: Ask for Help (v1)
Topic: Downloading files to variable or file Topic is solved
Replies: 3
Views: 2025

Re: Downloading files to variable or file Topic is solved

- vData is binary data. If you create binary data within the function, and return a pointer to it, that data gets destroyed when the function ends. In general, ByRef is one of the best solutions for handling binary data in AHK v1 and v2, although AHK v2 is making normal variables capable of handling...
by jeeswg
01 Nov 2017, 16:02
Forum: Tips and Tricks (v1)
Topic: list of every command/function/variable from across all versions
Replies: 24
Views: 39705

Re: list of every command/function/variable from across all versions

I don't really know much about the VB programming language, unless you mean VBA for Excel/Word? One thing I could do is a list of useful MSDN links, combined with tips on how to get the values of constants for use with dll functions e.g. by checking inside .h files in C:\Program Files (x86)\Windows ...
by jeeswg
01 Nov 2017, 12:59
Forum: Ask for Help (v1)
Topic: Get path of active window's directory
Replies: 26
Views: 12878

Re: Get path of active window's directory

Try using MsgBox before and after. I often put some characters before and after a string also, to check for any leading/trailing whitespace. MsgBox, % "[" vText "]" Haha, when something *unexpected* happens with computers, that's the time to really investigate, not to let it be because it somehow wo...
by jeeswg
01 Nov 2017, 12:38
Forum: Ask for Help (v1)
Topic: Ensuring script remains reliable whilst making it run faster
Replies: 2
Views: 447

Re: Ensuring script remains reliable whilst making it run faster

This is an issue with programming generally. You want to confirm when an action is complete before moving on to the next action. If you're too quick, that messes everything up, if you're too slow, you are waiting unnecessarily. This applies equally to slow and fast computers. For copying, see ClipWa...
by jeeswg
01 Nov 2017, 12:07
Forum: Ask for Help (v1)
Topic: Z-Order for windows possible? Topic is solved
Replies: 13
Views: 4848

Re: Z-Order for windows possible? Topic is solved

It appears that there are two options for retrieving the z-order of windows, EnumWindows (apparently preferable) or GetWindow. From what I can see, you can set the z-order by repeatedly bringing a window to the top of the z-order, or by repeatedly activating windows. There may be a more advanced sol...
by jeeswg
01 Nov 2017, 11:48
Forum: Ask for Help (v1)
Topic: I would like an Alway-on-top window that displays my variables live while my script runs.
Replies: 19
Views: 3352

Re: I would like an Alway-on-top window that displays my variables live while my script runs.

@icuurd12b42: OK, right now for me, the documentation has lost its index pane, like you said.
by jeeswg
01 Nov 2017, 11:17
Forum: Ask for Help (v1)
Topic: How to winactivate same process?
Replies: 7
Views: 2902

Re: How to winactivate same process?

This should do it. Once you have a window's hWnd (its unique, and temporary, window handle), you can use that to distinguish between windows. q:: ;send text to 2 new windows Loop, 2 { Run, notepad,,, vPID WinWait, % "ahk_class Notepad ahk_pid " vPID WinGet, hWnd%A_Index%, ID, % "ahk_class Notepad ah...
by jeeswg
01 Nov 2017, 08:06
Forum: About This Community
Topic: New forum sections proposal.
Replies: 113
Views: 71823

Re: New forum sections proposal.

'General AutoHotkey' sounds pretty good. Perhaps some examples from other forums would be good to compare, for deciding on a name. I had a look through Offtopic. Many of the threads actually have 'AutoHotkey' and 'AHK' in the title. So we could have: - Offtopic - Other Programming Languages - Other ...

Go to advanced search