Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selecting Text within a Function
#1
What i want to be able to do is get the text from Function2 and put it where RandomText is.


Function1

Acc a=acc("" "TEXT" "login" "Edit" "" 0x1800 0x0 0x20000040)
a.SetValue("RandomText")

I want to create a seperate function called Function2 that will change the ("RandomText")


Function2

here will be the text that will change from time time



is it possible? and how would i go about to do it. ty
#2
Try this.

Function:
Code:
Copy      Help
str b = "Text Here"
Acc a=acc("" "TEXT" "login" "Edit" "" 0x1800 0x0 0x20000040)
a.SetValue(b)

----------------------------------------

Or you can make the str get the text of an id or window using getwintext.

-----------------------------------------

or something like this?

Code:
Copy      Help
str b
if(!inp(b "Please enter the Account to Log Into Here." "Login Details")) ret
Acc a=acc("" "TEXT" "login" "Edit" "" 0x1800 0x0 0x20000040)
a.SetValue(b)
#3
Thank you very much for the quick reply. it works a treat alot better than what i wanted to do.


Forum Jump:


Users browsing this thread: 1 Guest(s)