AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SendMessage scripts for ListBox

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Suny



Joined: 22 Jun 2005
Posts: 7

PostPosted: Fri Feb 03, 2006 4:26 am    Post subject: SendMessage scripts for ListBox Reply with quote

In version >=1.0.42.00 we have right working of "Control".
Big thanks Chris!

But we still need some SendMessage functions

Common part of scripts
http://www.autohotkey.net/~Suny/ListBox/GetChildHWND.ahk

http://www.autohotkey.net/~Suny/ListBox/AddString_ListBox.ahk
http://www.autohotkey.net/~Suny/ListBox/DeleteString_ListBox.ahk
http://www.autohotkey.net/~Suny/ListBox/ChooseN_ListBox.ahk
http://www.autohotkey.net/~Suny/ListBox/SelectAll_ListBox.ahk
http://www.autohotkey.net/~Suny/ListBox/DeSelectAll_ListBox.ahk
http://www.autohotkey.net/~Suny/ListBox/FindString_ListBox.ahk
http://www.autohotkey.net/~Suny/ListBox/GetTextStringN_ListBox.ahk
http://www.autohotkey.net/~Suny/ListBox/Number%20of%20Items_ListBox.ahk
http://www.autohotkey.net/~Suny/ListBox/IsThisSelectedN.ahk
http://www.autohotkey.net/~Suny/ListBox/Inverse_Selection.ahk
http://www.autohotkey.net/~Suny/ListBox/Select_all_except_string.ahk
http://www.autohotkey.net/~Suny/ListBox/Select_all_with_string.ahk

All scripts in one with changes at parts of right working "Control".
It have simple Gui interface.
http://www.autohotkey.net/~Suny/ListBox/Control_ListBox.ahk


Last edited by Suny on Mon Feb 13, 2006 4:38 am; edited 5 times in total
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Fri Feb 03, 2006 11:30 am    Post subject: Reply with quote

Thanks for these. In the next release, I'll change the Control(Get) commands to be more lenient. Currently, they require the ClassNN to start with the string "Combo" or "List". Instead, those strings will be allowed anywhere in the ClassNN.

The following commands will be affected, though I'm not sure all of them will work with these "T" controls:
Control: Add, Delete, Choose, ChooseString
ControGet: FindString, Choice, List

For testing purposes, do you know of a common app that uses TListBox/TComboBox (something that I might have or could download)?

Edit: I tried to expand "ControlGet List" support TListView, but unlike TComboBox and TListBox, TListView controls don't seem to respond to the standard SysListView32 messages.


Last edited by Chris on Tue Feb 14, 2006 9:48 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Fri Feb 03, 2006 1:02 pm    Post subject: Reply with quote

IZArc is a fine WinZip-like archiving software, which replaced 7-Zip in my heart (although I keep the later handy...) because I prefer the tree-view.

Like many of similar freeware or shareware archiving utilities, it is written in Delphi and thus uses these Txxx controls, namely a TTreeView and a TListView (and perhaps more).
[Edit] TComboBox is found in the options...
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Fri Feb 03, 2006 1:08 pm    Post subject: Reply with quote

Thanks.
Back to top
View user's profile Send private message Send e-mail
Guest






PostPosted: Sat Feb 04, 2006 4:50 am    Post subject: Reply with quote

My simple test Form1 by Delphi7 with TListBox1 & TComboBox1
if you need
http://www.autohotkey.net/~Suny/ListBox/TListBox1_TComboBox1.exe
397kb
Back to top
toralf



Joined: 31 Jan 2005
Posts: 3841
Location: Bremen, Germany

PostPosted: Sat Feb 04, 2006 8:56 am    Post subject: Reply with quote

Sorry, <OT>
PhiLho wrote:
IZArc is a fine WinZip-like archiving software, which replaced 7-Zip in my heart (although I keep the later handy...) because I prefer the tree-view.
Does IZArc have command line options?</OT>
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Suny



Joined: 22 Jun 2005
Posts: 7

PostPosted: Fri Feb 10, 2006 1:52 pm    Post subject: Reply with quote

I had posted following new scripts

http://www.autohotkey.net/~Suny/ListBox/Inverse_Selection.ahk
http://www.autohotkey.net/~Suny/ListBox/IsThisSelectedN.ahk
http://www.autohotkey.net/~Suny/ListBox/Select_all_except_string.ahk
http://www.autohotkey.net/~Suny/ListBox/Select_all_with_string.ahk

Thank you PhiLho. Now scripts are shorter. Smile


Last edited by Suny on Sat Feb 11, 2006 3:25 am; edited 1 time in total
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Fri Feb 10, 2006 2:18 pm    Post subject: Reply with quote

@Suny: You should put the GetChildHWND function (and part common to all your scripts) in a file and #Include it in your scripts: it would make shorter forum messages Cool and may ease the maintenance of your scripts.

@toral: Sorry, I have lost this message and found it back by searching the forum...
Yes, IZArch has some command line options:
IZArc Help wrote:
IZArc can perform certain operations directly from the command line.
You can use the following switches to perform certain operations:

· -a (or /a) FileName1.ext;FileName2.ext
· -ad (or /ad) FileName1.ext;FileName2.ext
· -e (or /e) [Extracting Folder] FileName1.ext;FileName2.ext
· -eh (or /eh) [Extracting Folder] FileName1.ext;FileName2.ext
· -ef (or /ef) [Extracting Folder] FileName1.ext;FileName2.ext
· -cv (or /cv) FileName.ext
· -s (or /s) FileName.ext
· -t (or /t) FileName.ext

"FileName.ext" hat to include the full path and the filename (C:\Work\FileName.ext)

Opening compressed files directly from the command line:
Direct Adding files to an archives:
Extracting an archive:
Converting an archive:
If the archive is a SFX compatible (currently the following archives are supported- ACE, ARJ, BH, JAR, LHA, LZH, RAR, ZIP ), you can convert it to a SFX (Self-Extracting File):
Test an archive:

I stripped some informations to shorten the message.
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group