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 

LButton and ListView Problems

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
bob3150



Joined: 03 May 2005
Posts: 44

PostPosted: Fri Mar 10, 2006 5:24 pm    Post subject: LButton and ListView Problems Reply with quote

I don't know if I'm doing something wrong in my code (see below) or it is a bug. The code below is working for all GUI types I'm using also for ListView without the check box activated, but if the check box is activated it is only possible to select an list item by clicking on the check box and not on the text like in ListView without check box. When I deactivate the code below everything is working correctly. Hopefully somebody can tell me whats wrong!
Code:

$LButton::
   GuiControlGet, PIM_Focus, 1:Focus
   If PIM_Focus = ComboBox1
   {
      Send, {LButton}
      GuiControl, 1:Focus, %PIM_Prog1%_ListView
      Send, {Home}
   }
   Else If PIM_Focus = ComboBox2
   {
      Send, {LButton}
      GuiControl, 1:Focus, %PIM_Prog2%_ListView
      Send, {Home}
   }
   Else If PIM_Focus = ComboBox3
   {
      Send, {LButton}
      GuiControl, 1:Focus, %PIM_Prog3%_ListView
      Send, {Home}
   }
   Else If PIM_Focus = ComboBox4
   {
      Send, {LButton}
      If PIM_Prog_Kat_Alles = 1
         PIM_Prog_Kat_Alles =
      Else
      {
         GuiControl, 1:Focus, %PIM_Prog4%_ListView
         Send, {Home}
      }
   }
   Else
      Send, {LButton}
Return
Back to top
View user's profile Send private message
evl



Joined: 24 Aug 2005
Posts: 1237

PostPosted: Fri Mar 10, 2006 8:32 pm    Post subject: Reply with quote

I can't really tell from that code what the problem is - if you post a cut-down script with a listview that shows the problem then it will probably be easier.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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