Search found 81 matches

by Cerberus
Yesterday, 20:48
Forum: Ask For Help
Topic: help with key combination condition
Replies: 4
Views: 110

Re: help with key combination condition

The problem is that the second parameter after the Input command, the output variable (the parameter command , in your script), only outputs characters, not hotkeys that don't produce a (visible?) character. And ^j does not produce a character, it's just a hotkey. From the documentation : OutputVar ...
by Cerberus
10 Jun 2018, 19:53
Forum: Scripts and Functions
Topic: Ixiko's collections of functions and libraries
Replies: 4
Views: 379

Re: Ixiko's collections of functions and libraries

I think there are plugins for Sublime Text that support code folding. I'm planning to try them and find out what works best.
by Cerberus
05 Jun 2018, 08:47
Forum: Scripts and Functions
Topic: Ixiko's collections of functions and libraries
Replies: 4
Views: 379

Re: Ixiko's collections of functions and libraries

Highly useful! I've starred your repository. For now...

Image
by Cerberus
04 Jun 2018, 19:11
Forum: Offtopic
Topic: What is the use of Selenium Remote Control - SELENIUM
Replies: 3
Views: 226

Re: What is the use of Selenium Remote Control - SELENIUM

SL5 wrote:yes thats really good. And i control it ofer AHK :) really great selenium

Example:

Very interesting; so what does this code do?
by Cerberus
03 Jun 2018, 22:43
Forum: Offtopic
Topic: Syntax and naming conventions?
Replies: 5
Views: 367

Re: Syntax and naming conventions?

Pretty much as described already for variable/function/method names. I'm not a big fan of CamelCase generally, but it seems to be the de-facto standard for AHK. ⋅ I drop my leading braces down a line - I blame a workplace style guide from years ago where OTB was frowned upon for some reas...
by Cerberus
03 Jun 2018, 20:44
Forum: Offtopic
Topic: ! or 'not' to validate an expression in an if statement as false? Topic is solved
Replies: 29
Views: 2287

Re: ! or 'not' to validate an expression in an if statement as false? Topic is solved

also, the "if var in/contains/type" style if's are on a separate page than normal if's for a reason: they are different than normal if's. they are not expressions, cannot use (), cannot use with || && and so on. they need to be EXACTLY as documented on their own page, not as docum...
by Cerberus
31 May 2018, 21:50
Forum: Offtopic
Topic: What Was The First Language You Learned?
Replies: 2
Views: 174

Re: What Was The First Language You Learned?

You've collected quite a few languages! My first programming language was Autohotkey. It probably began with some clicker script of yore, but now I feel comfortable enough with it to get things done. Much later, I began learning Javascript, and now I can use it to do most of the things I need. I've ...
by Cerberus
31 May 2018, 21:34
Forum: Scripts and Functions
Topic: Vis2 - OCR(), ImageIdentify()
Replies: 165
Views: 9213

Re: Vis2 - OCR(), ImageIdentify()

Sounds good!
by Cerberus
31 May 2018, 14:26
Forum: Offtopic
Topic: your personal AutoHotkey style guide
Replies: 56
Views: 1921

Re: your personal AutoHotkey style guide

I think giving variables clear names is paramount, as mentioned above. Thinks I consider when naming: - What does it contain? - What will it be used for? In the example of getting the PID of a windows, I might do it like this (pseudo-code): GetPID, Active_PID If (Active_PID = DesiredValue) Notepad_P...
by Cerberus
31 May 2018, 13:25
Forum: Scripts and Functions
Topic: Vis2 - OCR(), ImageIdentify()
Replies: 165
Views: 9213

Re: Vis2 - OCR(), ImageIdentify()

I never used Capture2Text enough to really say, I didn't get past testing. With the consensus I can tweak it to be accurate enough to do the work I need Ah, OK, neither did I. By consensus you mean, when using a method where several attempts agree about the result, Vis2 works well enough for your n...
by Cerberus
31 May 2018, 13:22
Forum: Offtopic
Topic: opinions on Stack Overflow
Replies: 65
Views: 8761

Re: opinions on Stack Overflow

SO and the other large Stack-Exchange sites can indeed be harsh. English.SE is also very harsh, and I can say that as I have been on that site for 8 years. You only need 5 grumpy old high-reps to close a question, and you need only 1 to post a challenging comment. I have a few suggestions: 1. Don't ...
by Cerberus
29 May 2018, 18:20
Forum: Tutorials
Topic: Still confused about when to use % with variables? This helped me figure it out
Replies: 4
Views: 420

Re: Still confused about when to use % with variables? This helped me figure it out

Excellent for beginners! This is indeed among the most confusing inconsistencies in Autohotkey. I think the best solution is a good syntax highlighter: if you consistently highlight strings or string content as, say, yellow; special symbols that are active/working as purple (e.g. percentage signs in...
by Cerberus
28 May 2018, 21:42
Forum: Scripts and Functions
Topic: ExplorerTool – small enhancements of default shell
Replies: 7
Views: 575

Re: ExplorerTool – small enhancements of default shell

Wow, this is perfect! Each of these functions is highly useful. It works well on Windows XP. One little thing that could make it even more useful is if the new folder could be selected and "rename" activated, because 99% of the time, you would want to give that new folder a name. P.S. What...
by Cerberus
28 May 2018, 20:03
Forum: Scripts and Functions
Topic: ObjectSort()
Replies: 3
Views: 254

Re: ObjectSort()

This looks great. And I'm glad to see very clear examples: a lack of examples often makes it take an hour before I get a script to work. I'm bookmarking this, for I will certainly want to use it in the future.
by Cerberus
28 May 2018, 17:43
Forum: Editors
Topic: Quick tip for anyone using sublimetext
Replies: 5
Views: 752

Re: Quick tip for anyone using sublimetext

swagfag wrote:i think the original incorrectly considered the following a function definition:

Code: [Select all]GeSHi © Codebox Plus

if(something){
; whatever
}

Ahh, I see, yes, that's it! I probably never noticed because I always use spaces. I've added it to my .sublime-syntax file.
by Cerberus
28 May 2018, 16:45
Forum: Editors
Topic: Quick tip for anyone using sublimetext
Replies: 5
Views: 752

Re: Quick tip for anyone using sublimetext

Not sure if this should go in this section or another, but it pertains to writing AHK code using the available plugin in sublime_text. Heres a quick fix a highlighting issue that occurs when writing in OneTrueBrace style with if statements the issue is with this line (78) in the tmLanguage file: ht...
by Cerberus
28 May 2018, 15:22
Forum: Scripts and Functions
Topic: Vis2 - OCR(), ImageIdentify()
Replies: 165
Views: 9213

Re: Vis2 - OCR(), ImageIdentify()

Interesting! I did give Capture2Text a try and it seemed like that was a similar process. The Google Cloud Vision would be VERY expensive for what I am doing :shock: For my use, setting it to 2.9 and then sampling 10 times and going with the majority result will work perfect for what I am doing. Gr...
by Cerberus
27 May 2018, 21:39
Forum: Scripts and Functions
Topic: StrUnused prototype function: find unused characters for use as delimiters/separators
Replies: 12
Views: 669

Re: StrUnused prototype function: find unused characters for use as delimiters/separators

- Btw great avatar. Hey, looks like I forgot to reply. Yours is great as well! I have a userstyle that makes all avatars smaller (and generally makes the fora look much more compact), so initially I never registered what your avatar was and just considered in a random jumble of pixels. But I actual...
by Cerberus
12 Feb 2018, 13:21
Forum: Ask For Help
Topic: Random "bugs" in Autohotkey? Topic is solved
Replies: 44
Views: 1611

Re: Random "bugs" in Autohotkey? Topic is solved

lexikos wrote:
Cerberus wrote:Then I am back at not understanding how {Blind} could help with hotkeys like ^d::^c

This may be beside the point, but ^d::^c is not a hotkey. It is a remapping, and as such already uses {Blind}.

Ah, got it. So I should have said, ^d::Send ^c, right?
by Cerberus
11 Feb 2018, 18:47
Forum: Ask For Help
Topic: Random "bugs" in Autohotkey? Topic is solved
Replies: 44
Views: 1611

Re: Random "bugs" in Autohotkey? Topic is solved

Ugh, my browser closed and I lost everything I had written.. so I'll go with the concise version (sorry). Blind basically does the exact opposite of what you think it does. When Send is used, modifiers, such as shift, are explicitly sent up to avoid altering what you've put there as text to send. S...

Go to advanced search