AutoHotkey Community

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: May 12th, 2010, 1:28 am 
Offline

Joined: March 27th, 2009, 10:48 pm
Posts: 71
Im making a game where it has many pictures of blocks.
And when you click on a block it will find ones near it and destory them.
But im having a problem, I need to get the pictures variable that you click on yet I dont know how to do it.

So what I need to know:
How to retrieve a pictures variable from clicking on it.

Heres a Picture of the game:
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 12th, 2010, 1:41 am 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
Try g-label and A_GuiEvent:
http://www.autohotkey.com/docs/commands/Gui.htm#Events

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 12th, 2010, 4:37 am 
Offline

Joined: March 27th, 2009, 10:48 pm
Posts: 71
I already have a gLabel for all of them together, but each have different variables.
I cant do each one to a different label because there could be an endless amout of them.
I need to get the variable so I can have the right one to move.

A_GuiEvent does nothing, just tells me the type of click I do to get there.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 12th, 2010, 4:43 am 
Offline

Joined: March 27th, 2009, 10:48 pm
Posts: 71
Found it, A_GUIControl


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], MSN [Bot], Yahoo [Bot] and 21 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