Hello,
How do I get my code to detect in the text of this button whether the number is 0 or not?
Detect text on a button Topic is solved
Detect text on a button
- Attachments
-
- Sem título.png (68.63 KiB) Viewed 1469 times
Re: Detect text on a button
Can someone help me?
Re: Detect text on a button Topic is solved
To get the text
To check the last character for a zero
Code: Select all
; Get the text from the control
ControlGetText, MyText, ClaPrompt_01000000H1, ahk_class ClaWin01000000H_9
; Display the result
MsgBox, % MyText
Code: Select all
ExampleText := "asdf qwerty 0"
; If the last character is "0"
if (SubStr(ExampleText, 0) = "0")
{
MsgBox Zero detected
}
else
{
MsgBox No Zero detected
}
Re: Detect text on a button
Ow, thanksssss!
Who is online
Users browsing this forum: ArkuS, Joey5, JPMuir, scriptor2016, Sniperman and 177 guests