AutoHotkey Community

It is currently May 27th, 2012, 4:11 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: January 30th, 2006, 10:15 pm 
Is there a way to test the contents of a listbox in a program to see if it is empty? Also, how do you read the data in the clipboard? Sorry, if these questions have already been addressed.

Thanks


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2006, 1:29 am 
Offline

Joined: January 30th, 2006, 6:53 pm
Posts: 8
The manual is a good place to start...

Ill help you get started...

to have the script display the contents of the clipboard, copy this into an ahk file and then launch it.


Code:
msgbox, %clipboard%          ; gives a message box displaying the contents of the clipboard
if errorlevel <> 0                  ;errorlevel is set to 1 if nothing in clipboard
     {
     msgbox Nothing is in the clipboard 
     }

return


For retreiving listboxes you'll have to refer yourself to the manual. Search for listbox or controlget....goodluck


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2006, 12:37 pm 
Offline

Joined: November 15th, 2005, 11:15 am
Posts: 537
Location: Germany
ListCtrl:
From the help:
Quote:
ControlGet
--------------------------------------------------------------------------------

Retrieves various types of information about a control.

ControlGet, OutputVar, Cmd [, Value, Control, WinTitle, WinText, ExcludeTitle, ExcludeText]

Cmd, Value: The Cmd and Value parameters are dependent upon each other and their usage is described below.

List: Retrieves a list of items from a ListView, ListBox, ComboBox, or DropDownList.


ControlGet, Count, List, , YourControlName
MsgBox, %Count% entries are in the LB

Ciao
Micha


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], rbrtryn, Yahoo [Bot] and 65 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group