Search found 4306 matches

by jeeswg
16 May 2018, 19:00
Forum: Ask For Help
Topic: Sort List Alphabetically
Replies: 7
Views: 99

Re: Sort List Alphabetically

I have posted some important Excel sort information here: Excel: sort order - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=5&t=43426 How to correctly sort alphanumeric data in Excel https://support.microsoft.com/en-gb/help/322067/how-to-correctly-sort-alphanumeric-data-in-e...
by jeeswg
16 May 2018, 17:13
Forum: Ask For Help
Topic: Sort List Alphabetically
Replies: 7
Views: 99

Re: Sort List Alphabetically

I wrote this to handle Excel sorts. It's possible that there are other issues. Also, what if one of the strings already contains ':', you'd need a temporary unused character e.g. Chr(1) is often a good candidate. q:: ;Excel - sort list vTrue := -1, vFalse := 0 xlAscending := 1, xlDescending := 2 xlY...
by jeeswg
16 May 2018, 16:50
Forum: Offtopic
Topic: emoticon frenzy
Replies: 0
Views: 65

emoticon frenzy

emoticons aka emojis aka smilies (59 in total) :D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: ...
by jeeswg
16 May 2018, 14:21
Forum: Ask For Help
Topic: object classes: coding style
Replies: 18
Views: 473

Re: object classes: coding style

- Your definition of OOP appeared to shift depending on your line of argumentation. You're welcome to settle on a definition now, hopefully one that corresponds with the Wikipedia article. - One of the problems with OOP devotees, other than sometimes what they argue, is how they argue. Maybe sometim...
by jeeswg
16 May 2018, 13:54
Forum: Ask For Help
Topic: help with get list in checkboxs
Replies: 9
Views: 245

Re: help with get list in checkboxs

Here's an example of a listview control with checkboxes. You can use space to toggle the checked state of an item. ;listview control with checkboxes Gui, New, +HwndhGui, MyWinTitle Gui, Add, ListView, r3 +Checked, LVH 1|LVH 2|LVH 3 Loop, 3 if (A_Index = 1) LV_Add("Select", "LV A"...
by jeeswg
16 May 2018, 12:10
Forum: Ask For Help
Topic: object classes: coding style
Replies: 18
Views: 473

Re: object classes: coding style

- @nnnik: Do you agree with these statements? - The claims of OOP are a little bit overstated. - OOP can get messy quickly. - Dealing with someone else's OOP can be a nightmare. - Some of the best people in the industry are somewhat/very sceptical about OOP. - It is possible to argue that if everybo...
by jeeswg
15 May 2018, 21:17
Forum: Ask For Help
Topic: object classes: coding style
Replies: 18
Views: 473

Re: object classes: coding style

- This thread originally had two aims: (1) Get examples of simple classes, so that in my object class tutorial, I can demonstrate classes using standard (if such a thing exists) syntax. (2) See how people reacted to my proposals for writing simpler classes. - You question how relevant my proposals a...
by jeeswg
15 May 2018, 19:09
Forum: Ask For Help
Topic: objects/object classes: new features from a newbie-friendly perspective
Replies: 25
Views: 818

Re: objects/object classes: new features from a newbie-friendly perspective

RELEGATED IDEAS / MODES / STILL A PROBLEM - @nnnik: Re. your last two points I basically agree with you (that some functionality could just be implemented via custom classes). - I've been ironing out my proposals, and keeping them up-to-date in post 2. objects/object classes: new features from a new...
by jeeswg
15 May 2018, 09:38
Forum: Ask For Help
Topic: objects/object classes: new features from a newbie-friendly perspective
Replies: 25
Views: 818

Re: objects/object classes: new features from a newbie-friendly perspective

- I've changed my header in my 2nd post to this: IMPORTANT FUNCTIONALITY TO POTENTIALLY CONSIDER/FACILITATE (BUT THAT COULD JUST BE ACHIEVED CUSTOM CLASSES) - So basically: here are some things to consider, but I'm actually *not sure* or open-minded about how/if they should be implemented. And also,...
by jeeswg
15 May 2018, 09:07
Forum: Ask For Help
Topic: object classes: coding style
Replies: 18
Views: 473

Re: object classes: coding style

- @nnnik: (You talk as if there is no debate re. OOP, there is a wide and heated debate re. OOP, you might say that no two people view OOP in the same way.) - I'm writing a tutorial that explains how aspects of a class *work*, so that you can create a class, rather than how to write grand structures...
by jeeswg
15 May 2018, 08:55
Forum: Ask For Help
Topic: Getting the controls' state in Notepad's Find
Replies: 2
Views: 45

Re: Getting the controls' state in Notepad's Find

This should do it. Cheers. q:: ;Notepad Find dialog - is 'Match case' checked ControlGet, vIsChecked, Checked,, Button2, A MsgBox, % vIsChecked return The script assumes that the Notepad Find dialog is the active window. You could use this instead: ControlGet, vIsChecked, Checked,, Button2, Find ahk...
by jeeswg
15 May 2018, 08:44
Forum: Ask For Help
Topic: objects/object classes: new features from a newbie-friendly perspective
Replies: 25
Views: 818

Re: objects/object classes: new features from a newbie-friendly perspective

- I'm pretty much ready to do an object classes tutorial. I'm posting this link in case anybody would like to write a very simple class that demonstrates their preferred object class coding style (so that I can mention variables styles and don't impose my own view in any tutorial). object classes: c...
by jeeswg
14 May 2018, 19:10
Forum: Ask For Help
Topic: [COM] How to enumerate IEnumNetworkConnections in a more "native" way?
Replies: 10
Views: 596

Re: [COM] How to enumerate IEnumNetworkConnections in a more "native" way?

All my scripts are tested on Windows 10, AutoHotkey 32 bit Ansi unless otherwise stated. - Did you compile the script as ANSI? - Has the user tried running your script with AHK Unicode? - An idea that may or may not work: if it works differently in AHK ANSI/Unicode, you could try rewriting the code...
by jeeswg
14 May 2018, 18:47
Forum: AutoHotkey v2 Development
Topic: AHK v2 and strings
Replies: 12
Views: 1227

Re: AHK v2 and strings

I wanted to create a quick list of paths in a continuation section, where the paths were written in expression style. It took me a little while to figure out. /* ;AHK v1 vList = ;continuation section ( %A_ScriptDir%\File1.txt %A_ScriptDir%\File2.txt %A_ScriptDir%\File3.txt %A_ScriptDir%\File4.txt %A...
by jeeswg
14 May 2018, 18:05
Forum: Ask For Help
Topic: How can you extract the full path of the photo visible in photo gallery? Topic is solved
Replies: 3
Views: 54

Re: How can you extract the full path of the photo visible in photo gallery? Topic is solved

- Yeah, it's always unfortunate when you have to use the clipboard or temporarily show a dialog, but it's great to at least have something. - It's curious programs that ultimately omit the path from the command-line arguments. I suppose that they open secondary processes, but they must transmit that...
by jeeswg
14 May 2018, 17:33
Forum: Ask For Help
Topic: How can you extract the full path of the photo visible in photo gallery? Topic is solved
Replies: 3
Views: 54

Re: How can you extract the full path of the photo visible in photo gallery? Topic is solved

This is what I use on Windows 7 (using the clipboard). Cheers. #IfWinActive ahk_class Photo_Lightweight_Viewer ;windows photo viewer / windows live photo gallery ^p:: ;windows photo viewer - get file path Clipboard := "" SendInput, ^c ClipWait, 3 vPath := Clipboard ;MsgBox, % vPath return ...
by jeeswg
14 May 2018, 11:08
Forum: Ask For Help
Topic: Change letters on a string
Replies: 8
Views: 163

Re: Change letters on a string

You have a problem if you shift *every* character by 2: e.g. Chr(38) to Chr(42): & ' ( ) * & -> ( ( -> * [invalid] we could just let ( remain as ( & -> ( ( -> ( [remains the same] however, we wouldn't know if ( was originally & or ( so we couldn't reverse the cipher If you use my fun...
by jeeswg
13 May 2018, 13:36
Forum: Ask For Help
Topic: object classes: coding style
Replies: 18
Views: 473

Re: object classes: coding style

- Thanks wolf_II. I was interested in coding styles rather than the simplest possible SplitPath alternative per se. - Although, I had meant to post 'simple' versions where you hardcode the values in the object, for demonstration purposes. Here are some examples: ;SplitPath alternative: return an arr...
by jeeswg
13 May 2018, 12:01
Forum: Ask For Help
Topic: object classes: coding style
Replies: 18
Views: 473

object classes: coding style

- There are various debates about how to write classes. Personally, although this is not necessarily standard or nonstandard, I would advise two things: - Use Allman style (not K&R/1TBS style). [Easier to read.] - Functions should do most of the work, the class should just be a wrapper. [Easier ...

Go to advanced search