
andrew01
Active Members-
Posts
39 -
Joined
-
Last visited
andrew01's Achievements

Seeker (1/7)
0
Reputation
-
Ok, so I am messing around with _IEFormElementSetValue to use in a description type box. I want to make a separate paragraph (ie skip a line) but cannot figure out how to do it. _IEFormElementSetValue($oQuery, "Hello my name is bob *******Want to make a new line below here******* blah blah blah") Basically, I want to simulate hitting the enter key. Is there any simple way to do this? Thanks in advance for the help.
-
Generator, thank you so much it's working now. One more question, is it possible to enter some type of text that has quotes around it? For example $hello = ""Hello"" Send($hello) ;or Send(""hello"") So the text being sent out is "hello" (with quotations). Anyway to do that? Thanks.
-
Thank you very much Generator, I will mess around with that right now
-
Well, could anyone at least try to help me understand this: It is the example under: _IEFormElementGetObjByName ; ******************************************************* ; Example 1 - Get a reference to a specific form element by name. ; In this case, submit a query to the Google search engine ; ******************************************************* ; #include <IE.au3> $oIE = _IECreate ("http://www.google.com") $oForm = _IEFormGetObjByName ($oIE, "f") $oQuery = _IEFormElementGetObjByName ($oForm, "q") _IEFormElementSetValue ($oQuery, "AutoIt IE.au3") _IEFormSubmit ($oForm) It opens up good and searches for autoit. I have no idea where "f" and "q" come from though, could someone explain the code above to me please?
-
Anyone, please
-
Ok so I am trying to create this script (happens to be involving myspace, but I have been having trouble with the _IE functions in general for a while). Basically, the script will open up a page and send a message. What I have so far: $hIE = _IEPropertyGet($oIE, "hwnd") ; Get the handle WinSetState($hIE, "", @SW_MAXIMIZE) _IELoadWait($oIE) $oForm = _IEFormGetObjByName ($oIE, "Subject:") ; These next few lines I am having trouble with --> I have no idea how to 'set focus' to forms, type in forms, press submit, etc. Everything here is wrong, and I have tried and tried but cant figure it out $oText = _IEFormElementGetObjByName ($oForm, "0") _IEFormElementSetValue ($oText, "Hey! It works!") _IEFormSubmit ($oForm) Send("Hey") Sleep(100) Send("{TAB}") Sleep(100) Send("^v") Send("{ENTER}") Send("{ENTER}") Send("SADFSADFSADFSAFSDAFSADFSDAFSADF") Sleep(100) Send("{ENTER}") Send("{ENTER}") Send("ASDFSDAFSFDSAFSAFDAFSAFDFSFSDAF") Sleep(100) MouseClick("left", 353, 915) MouseClick("left", 351, 878) MouseClick("left", 349, 915) MouseClick("left", 347, 915) Sleep(5000)What it is 'basically' supposed to do: 1.) Navigate to the 'send message' page 2.) Somehow set focus on the 'Subject:' field then type something in that field 3.) Set focus/navigate down to the 'Message:' field then type something in that field 4.) Send the message I am trying to figure out ways to do this without using mouse click, something a bit more efficient. Any help given would be greatly appreciated, thank you. EDIT: Sorry I forgot to post the screenshot of the page I am working with, in case it helps visualize any better. Thanks
-
Was searching around, looking for ways to bypass CAPTCHA images and came across http://www.captchakiller.com. Looks like they have found a way to read many different types of CAPTCHA images. They even have a addon for Firefox (you right click the captcha image and click "Send to Captcha Killer...", it then takes about 20-45 seconds to give you a response). So, I was wondering if there would be any way to incorporate this into auto it? Unfortunately they are mostly aimed toward Firefox users, and auto it uses IE functions
-
Finding a specific line of text
andrew01 replied to andrew01's topic in AutoIt General Help and Support
I see what you are saying! That seems like it will work, I will try it out now. Thanks for the help. -
Finding a specific line of text
andrew01 replied to andrew01's topic in AutoIt General Help and Support
Hmm, I will look into that. Thank you. I think maybe would I could do is use ControlGetText, copy it into notepad or something, then use the StringinStr. For that string function though, it needs to search for a string withing a specific string, not a window... Is that the only function that does something like that? Is there one that can search for a string inside of a window (not another string)? -
Hey, I need to find a fucntion that will look for specific text in a box. Im not sure if it would be ControlGetText. I have looked into it, but it doesnt look like it does what I am looking for. I just want a function that searches for a specific line of text every once and a while and comes back with true or false (depending on whether it was found or not). Thank you in advance for your help.
-
I must be really tired haha. Thanks for the help. Worked perfectly.
-
Ok, so I have a function that takes about 5 minutes to run through completely. Once the function is completed, I would still like autoit to keep running because I want another function to be called every 30 minutes. I have looked into TimeInt/Diff and AdLibs but I cant really seem to work it out. So, basically: Function A runs 30 minutes later Function B runs (does some stuff, then at the end calls function A again to start) Then another 30 minutes later function B is called (does the same stuff again, then A is called again). I would like it to loop like this until I tell it to stop. Any help would be greatly appreciated.
-
Sorry for the double post but: Is there anyway to change this to the default (if this is wrong, but I really think it is). For example, if I give the command: Send( "{RIGHT Down}") Sleep(500) Send( "{RIGHT Up}") It used to be a 90 degree turn to the right for me (in a game), but lately, if I give that command, it spins around for a long time, like its holding down the right arrow key. EDIT: Ok I just looked into the beta help file to find out what @kblayout actually did, and I saw that my keyboard layout is correct (English, United States) but that still doesnt explain why my script is messing up so much, or why Opt(SetKeyDelayDown) lags, alot more then yours. Problems I am having: 1. Opt(SetKeyDownDelay) waits for the amount of time put in the parameter before pressing the key (ie if I put 30000 in the parameter it would wait for 30 secs and then push down) 2. Similar to what I quoted above, if I tell the left, right, a, d key to move in the script, wanting it to turn in game, my charater just goes in circles forever, like the key is stuck. EDIT 2: Possible Cause?!?! I have an adlibfunction running, that executes every 2 seconds. I thought that the entire script paused for a brief moment while it did its thing? Maybe it could be pausing right at the Send("{RIGHT Down}") key is being pressed...
-
OK the number I got is: 00000409 Now im starting to think my timers are messed up, because alot of other operations seem to be off too (in autoit).
-
Cool, thanks for the fast reply.