Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

cannot get text from a control


  • Please log in to reply
3 replies to this topic
P0kah
  • Guests
  • Last active:
  • Joined: --
I am triyng to get text from AfxFrameOrView42, there is only one in the window

	ControlGetText,aaa,AfxFrameOrView421,A,,,
	MsgBox %aaa%

aaa contains an empty string, what am I doing wrong?


thank you guys

trik
  • Members
  • 1317 posts
  • Last active: Jun 11 2010 11:48 PM
  • Joined: 15 Jul 2007
This works for me:

Gui, Add, Edit, W100 vMainEdit
Gui, Add, Button, W100, Get Edit Text
Gui, Show
Return

ButtonGetEditText:
Gui, Submit, NoHide
MsgBox, %MainEdit%

Religion is false. >_>

engunneer
  • Moderators
  • 9162 posts
  • Last active: Sep 12 2014 10:36 PM
  • Joined: 30 Aug 2005
P0kah, what program has this control in it?

dieom, that is fine for AHK made windows, but there are other commands for non AHK Guis, which is what the OP is asking about.

p0kah
  • Guests
  • Last active:
  • Joined: --
it's a poker client (bodog.com)