Search found 2279 matches

by guest3456
19 Apr 2018, 09:59
Forum: Offtopic
Topic: AHK Beginner...Specific Need: Does AHK Apply?
Replies: 3
Views: 82

Re: AHK Beginner...Specific Need: Does AHK Apply?

sounds like a great use for AHK
by guest3456
18 Apr 2018, 16:54
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 242
Views: 46618

Re: GDI+ standard library 1.45 by tic

these have nothing to do with GDI+, and should be posted in Ask For Help
by guest3456
18 Apr 2018, 09:24
Forum: AutoHotkey v2 Development
Topic: scrap commands?
Replies: 47
Views: 1919

Re: scrap commands?

Try to write a terminating WinWait function that doesn't require an external "counting" variable. You actually can't. So the WinWait "function" isn't really taking one input - it's taking two. WinWait(hwnd, ErrorLevel) i have no idea what point youre making about the 2nd...
by guest3456
17 Apr 2018, 11:38
Forum: AutoHotkey v2 Development
Topic: scrap commands?
Replies: 47
Views: 1919

Re: scrap commands?

nnnik wrote:Thats just meaningless extra work either you return something or you dont - either you call the function with the intent for it to return something or you dont.

good point
by guest3456
12 Apr 2018, 21:01
Forum: Offtopic
Topic: your personal AutoHotkey style guide
Replies: 31
Views: 675

Re: your personal AutoHotkey style guide

- Re. DllCall and the type parameters using double quotes or not: DllCall https://autohotkey.com/docs/commands/DllCall.htm Note: When specifying an argument type or return type that does not contain a space or asterisk, the quotes around it may be omitted. For example, Str can be used in place of &...
by guest3456
12 Apr 2018, 11:46
Forum: Ask For Help
Topic: Forced expression after IF
Replies: 5
Views: 159

Re: Forced expression after IF

In contrast with it, the current logic of () in if is quite confusing (at least, for a lot of novice users). That's what I mean: ; Works fine if (var1 = "foo" && var2 = "bar") || var3 = "baz" ; Will not properly work if var3 = "baz" || (var1 =...
by guest3456
12 Apr 2018, 10:58
Forum: Ask For Help
Topic: Forced expression after IF
Replies: 5
Views: 159

Re: Forced expression after IF

this method isn't mentioned in the docs either:

Code: [Select all]GeSHi © Codebox Plus

var = % "my expression " . var2


just because its not mentioned doesn't mean its not supported.
by guest3456
12 Apr 2018, 09:26
Forum: Offtopic
Topic: your personal AutoHotkey style guide
Replies: 31
Views: 675

Re: your personal AutoHotkey style guide

btw: of course spaces over tabs. thats not even a question. ;) most of this is personal preference, but some comments: ;YES DllCall("MessageBox", Ptr,0, Str,"text", Str,"title", UInt,0) ;NO DllCall("MessageBox", "Ptr", 0, "Str", "text&...
by guest3456
12 Apr 2018, 09:02
Forum: AutoHotkey v2 Development
Topic: Forced expression after IF Topic is solved
Replies: 22
Views: 374

Re: Forced expression after IF Topic is solved

In the case of Windows or alike Im fairly certain that they have methods to work on one version which outputs for several different versions. Also plugins are not part of the original Wordpress - they are modules that can be loaded into Wordpress. What jeeswg means is to avoid having several script...
by guest3456
11 Apr 2018, 23:21
Forum: AutoHotkey v2 Development
Topic: Forced expression after IF Topic is solved
Replies: 22
Views: 374

Re: Forced expression after IF Topic is solved

However, it seems it doesn't work in current release of AHK v2. it doens't work because in v2 all if's are expression-ifs Will it work in it's future releases? I hope not. me too What do you mean 'just' publish two versions. Rule number one of programming is: avoid maintaining two versions of the s...
by guest3456
11 Apr 2018, 11:51
Forum: Offtopic
Topic: Is it a good idea to use == instead of = everywhere where possible? Topic is solved
Replies: 5
Views: 121

Re: Is it a good idea to use == instead of = everywhere where possible? Topic is solved

i dont think we need a thread for every coding convention.

further, = and == perform two different comparisons. see the docs:

https://autohotkey.com/docs/Variables.htm#Operators
by guest3456
11 Apr 2018, 09:03
Forum: Scripts and Functions
Topic: replace text maintain case
Replies: 8
Views: 514

Re: replace text maintain case

I don't even want to declare variables local, I only do it because people have asked me to. don't do things just because people tell you do :) Waitasec, what, how is that standard behaviour. I declared some variables local, so all other variables in the function that are not declared local or that ...
by guest3456
11 Apr 2018, 08:13
Forum: Tips and Tricks
Topic: what are some ahk programming mistakes that tend to 'fail silently' with no warning and took you a long time to catch?
Replies: 19
Views: 6622

Re: what are some ahk programming mistakes that tend to 'fail silently' with no warning and took you a long time to catc

GUI Text and DPI Scaling in Windows - Larger Text (120 DPI) :twisted: explanation here: https://autohotkey.com/board/topic/90306-solved-gui-text-and-dpi-scaling-in-windows-larger-text-120-dpi/ solution here: https://autohotkey.com/board/topic/6893-guis-displaying-differently-on-other-machines/page-...
by guest3456
11 Apr 2018, 07:24
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 110
Views: 25976

Re: FindText - Capture screen image into text and then find it Topic is solved

your script works great, except the different displayer issue what does different "displayer" mean? obviously you would need to make sure everything is exactly the same on the other PC, otherwise you cant guarnatee that the graphics will be the same and therefore the imagesearch will not ...
by guest3456
10 Apr 2018, 21:36
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 242
Views: 46618

Re: GDI+ standard library 1.45 by tic

^merged thanks
by guest3456
09 Apr 2018, 10:07
Forum: Offtopic
Topic: Codestyle: implicit and explicit concatenation
Replies: 14
Views: 329

Re: Codestyle: implicit and explicit concatenation

It's much more clear what is going on if someone else reads my code. And if I haven't looked at a piece of code in three months, then I qualify as "someone else", too. :P 100% its also why naming variables is so important. using "var" or "x" is lazy and sloppy and very...
by guest3456
09 Apr 2018, 08:59
Forum: Offtopic
Topic: Codestyle: implicit and explicit concatenation
Replies: 14
Views: 329

Re: Codestyle: implicit and explicit concatenation

in some cases i will just omit the . but usually i will stick with explicit concat because i think it can be less clear what exactly is happening when you are re-reading the code if you dont. syntax highlighting does help with that though
by guest3456
09 Apr 2018, 08:57
Forum: Scripts and Functions
Topic: use the winclip clipboard html (quick example)
Replies: 1
Views: 78

Re: use the winclip clipboard html (quick example)

winclip is a very good script to manipulate the html clipboard

Go to advanced search