Jump to content

Qousio

Active Members
  • Posts

    167
  • Joined

  • Last visited

Everything posted by Qousio

  1. Thanks Dale! You truly are the IE Master
  2. I guess you don't quite understand what a variable is... You can't put 10 variables in one, unless you have declared a special type of variable. I am not sure if this is possible in Autoit. You could do, $rc[0]=$a, $rc[1]=$b etc... But $rc=$a,$b,...$n does not make sense. How do you even imagine this? If $a,$b etc. is text and you want to combine it, you could juse use $a & $b & $c & $d etc. If its integers\reals then you would do $rc=$a+$b+$c etc., But $rc=$a,$b does not make sense... Perhaps if you explained what type $a, $b, $c etc. is ? Are they strings? What are you trying to achieve when outputting $rc ?
  3. I'm not sure if you quite understand the difference between passing and returning parameters... Heres and example: Func Func1($ B) $a = 5 $o = $B + $a Return $a + $o EndFunc ;==>Func1 Func Func2($c, $d) $g = $c + $d MsgBox(0, "", $g) EndFunc ;==>Func2 While 1 Func2(3, Func1(3)) WEnd Passing a parameter means we transfer the value of a local paramter to a different function... While returning means returning some value from a function, for example $a+$b+$c etc. Although you can pass by returning aswell.... You can just use global parameters by the way. Just declare them outside of a function, or as Global $parameter.
  4. Func functioname ( [Const] [byRef] $param1, ..., [Const] [byRef] $paramN, $optionalpar1 = value, ...) ... [Return [value]] EndFunc
  5. Hello. I have encountered more problems with using _IE.au3 Lets say theres some website, $random.com It has hidden frames, I think thats how there called. Basically, it stores all the valuable source (buttons, links, options) at $random.com/hiddenframes.php, Is it possible to read the source from there, but force the script to evaluate clicks, etc. on $random.com ? My script works when I'm at hiddenframes.php, the problem is all the javascripts are evaluated on the main page, so using my script on hiddenframes.php causes bugs and glitches. This is some of the source on the main page, that could make it clearer: <form name="someform" method="POST" action="/hiddenframes.php"> window.location = 'hiddenframes.php'; And theres more for all the buttons and options etc. There is however another problem, this is a bit less complex. I need to use _IEAction ($oSubmit, "click") to click a button, however the button is javascripted to only respond when a real click occurs (All the other buttons are clicked just fine by using _IEAction ($oSubmit, "click")) So I have tried to use: $oSubmit = _IEGetObjByName ($oIE, "submitExample") $hwnd = _IEPropertyGet($oIE, "hwnd") _IEAction ($oSubmit, "focus") ControlSend($hwnd, "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "{Enter}") The button gets highlited, but enter doesn't work with it (I have tried manually) So, I have changed ControlSend to ControlClick and it works. The problem is, I need to manually set the buttons coordinates for it to be clicked, is it possible to retrieve the coordinates from the source / handle ? (The button is on a website so Au3info tool won't help here) Thanks in advance
  6. Not sure what you mean.. Possibly something like this: Func Somefunc($Somevariable) MsgBox( 0, "", $Somevariable ) EndFunc Somefunc(5)
  7. What exactly do you mean with "Get" those names? If you just want to find certain text, for example Bob, try using: $Something = StringRegExp($Text, "Bob", 1) If @error == 0 Then MsgBox( 0, "", $Something [0] ) EndIf
  8. Show us what you have done so far, and we will help with any problems.
  9. Hello. Quite a long time since I have last visited autoitscript. Anyhow, there is a certain combo box, I would like to use _IE.au3 to select items in that combo box. However, I can't seem to figure out, which _IE command to use. The source looks like this: <FORM name=some_name action=/hidden_link.php method=post><CENTER><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 16pt">Random text</SPAN><BR>More text: <SELECT id=sel_something style="WIDTH: 50%" onchange="javascript: procChange();" size=1 name=sel_something><OPTION id=info_1 value="show_target_selection(1,3,0,'pick',0,'text','text','text','info_1_name',1);" selected>info_1_name</OPTION><OPTION id=info_2 value="show_target_selection(4,10,0,'pick_2',0,'text','text','text','info_2_name',1);">info_2_name</OPTION>.......</OPTION></SELECT></CENTER></FORM> So, theres a website, that has a combo-box with a bunch of items named info_$i_name, and I would like to select them somehow. Any help is appreciated.
  10. Thanks, it works perfectly now !
  11. Hello! I'm trying to make IE click a certain button for me, however I can't seem to understand why it won't work I have tried $Button = _IEGetObjByName($IE_Create_Variable_Here, "selectitem7");I have also tried IEFormGetObjByName _IEAction ( $Button, "click" ) and $Button = _IEGetObjByName($IE_Create_Variable_Here, "selectitem7");I have also tried IEFormGetObjByName _IEFormSubmit ($Button) I have also tried to insert "go" instead of "selectitem7". But it wont work. I'm quite sure this is the buttons source: <form name="selectitem7" id="selectitem7" method="POST" action="java script: self_refresh(3, document.getElementById('selectitem7').elements['select'].value);"><input type="submit" name="submit" value="go">&nbsp;<input type="hidden" name="select" value="809"></form></td></tr>
  12. Thanks allot, works perfectly
  13. Hello! I need to stringregexp a string that looks like this: value1: |01.23| Soo, I have used this StringRegExp($text, 'value1: \V\d\d\V\d\d', 1) And it works fine, the problem is, sometimes theres one number instead of two, so its |0.1|, in that case the above doesnt work. Using strinlen to find out how many numbers there are wouldnt work either, because it could be 00.1 or 0.11 etc.
  14. Thanks for the info Yashied and Tankbuster, it works perfectly now.
  15. Hello! I want to ShellExecute a .bat file. I have read the FAQ and help file on Shellexecute and Run functions, but that didnt really help... Usually this is how I run the .bat file: Command: %comspec% /k ""F:\Prog\VC2008\VC\vcvarsall.bat"" x86 I have tried this in autoit: ShellExecute("vcvarsall.bat", @ComSpec & " /k", "F:\Prog\VC2008\VC\") I have also tried several variations with parameters and the verb. But the .bat file instantly closes after launching. How do I prevent it from closing?
  16. Pinball doesn't use DMR, thus finding a pointer is not needed. Your address will always be the same, however the address does vary from windows to windows and processor to processor.
  17. I know As I mentioned above: "My method is far from good, the main purpose is for extra encoding to already encoded text. Although you can use this for just encoding." So basically you Hash it or StringEncrypt and then run this, double encoding, double the fun =P
  18. I have helped this guy quite allot too, but I simply do not understand why is he wasting HIS OWN TIME? Its allot faster to read the helpfile and get your answers there ASAP instead of posting on the forums and waiting till somebody answers...
  19. Shameless self promotion: http://www.autoitscript.com/forum/index.ph...mp;#entry681294
  20. Because you must only change the key, adding 4 to it would just change the bits. For example: Xor 0 1 1 1 1 1 1 1 1 0 1 1 1 0 0 1 Would be: 1 1 0 0 0 1 1 0 Adding 4 to it would be 11001010 However, Xor 0 1 1 1 1 1 1 1 (1 0 1 1 1 0 0 1) + 4 = 10111101 Would be 1 1 0 0 0 1 1 0 Hope that answered your question
  21. Good job finishing it. But as I said its highly inefective to do it in autoit. 590kb file unpacked that doesn't work 100% of the time. While it can be done with 15 lines of code and 450 bytes size =P
  22. 16777215 should be FFFFFF in hex Don't forget to type 0xFFFFFF in autoit!
  23. Hmm, you can convert Decimal to Hex with Hex ( expression ) Don't forget to use "0x" with hex, such as 0xNumbers when using hex.
  24. I don't quite understand. Whats the point in MouseClick up - MouseClick -> MouseClick down if you can just send a series of MouseClick or ControlClicks ?
×
×
  • Create New...