Jump to content

EmptySpace

Active Members
  • Posts

    285
  • Joined

  • Last visited

About EmptySpace

  • Birthday 01/01/1995

EmptySpace's Achievements

Universalist

Universalist (6/7)

0

Reputation

  1. There is few buttons and all of them have same value and name. Only differences is action code in html. <form method="post" action="/somestuffblahblahblah"> I didnt used autoit for ages so im lost in these things. So how I could click button only knowing that action code. $oButtons = _IETagNameGetCollection ($oIE, "INPUT") For $oButton In $oButtons If $oButton.action = "/peaceofletters" Then ;if that would work.. : _IEAction ($oButton, "click") ExitLoop EndIf Next Sorry for my bad english.
  2. All the time I find it difficult to use arrays becouse all that redim, ubound stuff.. so I used variables alot! I need func which would allow to add only unique arrays. #include <Array.au3> $ArraySTORAGE=_ArrayCreate("") $ArraySTORAGE[0] = Ubound($ArraySTORAGE) - 1 $whattoadd = 'always other string' For $i = 1 To UBound($ArraySTORAGE) - 1 If |$ArraySTORAGE contains| = $whattoadd Then ;;; Else _ArrayAdd($ArraySTORAGE ,$whattoadd ) Endif Next Should I use _ArraySearch() ? Also I want to know how to clear whole array at once without using loop with _ArrayDelete() + I want to create 2D array but I dont know how to declare it in begining becouse all my elements would be added during the script (imputs/plits and so on..) I hope you guys understand me
  3. I need my user agent changed all time. #include <IE.au3> Global Const $sLink = "http://useragentstring.com/" GUICreate("Test User-Agent String", 700, 500) _IEErrorHandlerRegister() $oIE = _IECreateEmbedded() GUICtrlCreateObj($oIE, 10, 10, 680, 480) _IENavigate($oIE,"http://www.useragentstring.com/") sleep(1000) GUISetState() $oIE.Navigate2($sLink,Default, Default, Default, 'User-Agent: My super special user agent string.') While GUIGetMsg() <> -3 WEnd If I refresh page then I see my old ua..
  4. "Sets the user-agent string sent with InetGet() and InetRead() requests." Can I make it to work with _IECreateEmbedded() in direct browsing? not only for inet funcs? Its empty
  5. Long ago I tried to make program where I could fastly change user agent for IE embedded object in GUI. Now when I need to change it again I found that my user agent string is full of unneeded strings: Mozilla/4.0 (c; MSIE 7.0; cx; Trident/4.0; BTRS123646; GTB7.4; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SIE-ME75/22 UP.Browser/7.0.2.2.d.7(GUI) MMP/2.0 Profile/MIDP-2.0 Configuration/CLDC-1.1) With this method: http://www.door2windows.com/how-to-change-internet-explorer-user-agent-string-in-all-versions-of-internet-explorer-without-any-tool/ I added '; SIE-ME75/22 UP.Browser/7.0.2.2.d.7(GUI) MMP/2.0 Profile/MIDP-2.0 Configuration/CLDC-1.1)" but now cant delete leaving blank in custom string imputbox. Also tried: http://www.zytrax.com/tech/web/change-ua.html Both ways wont work. Ie addon http://www.iegallery.com/Addons/Details/2040 works how I want but it wont change UA in embedded object. Any ideas? How I can restore my UA to default if that 2 ways dont work? (Check your UA here http://www.useragentstring.com/)
  6. That permission to use Skype wont pop up anymore. Multiaccount would be very usefull! Now I use websites like plus.im to run my skype. I have 3 skype profiles and I need to run them at the same time (one skype for family/friends, other for my work...)
  7. Sorry for my bad english. I want to run more than one instance on my computer. I need to run few skype accounts at the same time.
  8. Its possible to do this portable? I mean I run real skype on my pc, and I want to run other skype profile with this UDF.
  9. Thanks for reply. Split succeeds- $setup[0] is 2 Error when- $setup[0] is 1 In first try this works for me If $setup[0] = 2 Then _IEFormElementsetValue($x,$setup[1]) _IEFormElementsetValue($y,$setup[2]) Endif
  10. My code: (I just pasted code from where I get error. I have GUI and other stuff ofcourse and its +200lines of code..) Func pagr() $i = $i + 1 showchromosom($i) Endfunc Func showchromosom($line) $oForm1 = _IEFormGetCollection($oIE, 0) $x = _IEFormElementGetObjByName($oForm1, "x") $y = _IEFormElementGetObjByName($oForm1, "y") $linne = FileReadLine($chromstxt,$line) $setup = StringSplit($linne, "|") _IEFormElementsetValue($x,$setup[1]) _IEFormElementsetValue($y,$setup[2]) EndFunc In txt file I have 5lines or more. As you see line contains number|number After showing these 5lines it tries to show 6line and error popups Array variable has incorrect number of subscripts or subscript dimension range exceeded.: _IEFormElementsetValue($y,$setup[2]) _IEFormElementsetValue($y,^ ERROR How to make it stop after it reads 5 lines? There is no loop or something I just push the button.
  11. Hey, I need some help from you guys. For example my text text just text wait wut after script work: text,just,text,wait,wut Maybe I need to use StringRegExp()? I never used it before. So ok my code: #include Global $pw = FileOpen("textwithspaces.txt") Global $hOutPutFile = FileOpen("nospaces.txt", $FO_OVERWRITE) $hash = FileRead($pw) ;I need array loop or something? ;I would try to read line by line and use stringinstr or smth but I beleive there is faster way WEnd FileClose($pw) FileClose($hOutPutFile)
  12. I think its slower cos I get my file after more than 3secs. Or maybe hosting fault?
×
×
  • Create New...