Jump to content

tiosha

Active Members
  • Posts

    25
  • Joined

  • Last visited

tiosha's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi guys I've been searching for this but I couldnt find it I have 2 browsers on my GUI (wb1 and wb2) when I click on a button (btn1) a page loads on wb1. Then I want to click a link on the page that loaded on wb1 and I want that page to open on wb2. How can I make that? thanks in advanced
  2. Hi guys I need to know how to make something like this: Do PixelSearch( X, Y, X, Y, color1 OR color2) Until not @error Basically i want it to make a pixelsearch until it finds a pixel with color1 or 2 Any help? I've searched for this but i didnt found anything Thanks in advanced
  3. Thanks for the help
  4. can you just place it in the script please???
  5. Hi I made a GUI in Koda and the code is : #Region ### START Koda GUI section ### Form= $form = GUICreate("mygui", 194, 229, 205, 123) GUISetBkColor(0xD8E4F8) $Username = GUICtrlCreateLabel("Username:", 16, 16, 55, 17) $Input1 = GUICtrlCreateInput("Username", 16, 40, 161, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_CENTER,$ES_OEMCONVERT,$WS_BORDER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE)) $Input2 = GUICtrlCreateInput("Password", 16, 96, 161, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_CENTER,$ES_PASSWORD,$ES_OEMCONVERT,$WS_BORDER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE)) $Login = GUICtrlCreateButton("Login", 16, 136, 73, 33) $Skip = GUICtrlCreateButton("Skip login", 96, 136, 73, 33) $Password = GUICtrlCreateLabel("Password:", 16, 72, 53, 17) $Button1 = GUICtrlCreateButton("Exit", 16, 176, 153, 33) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### and then : Do $msg = GUIGetMsg() Select Case $msg = $Login $IE = _IECreate("mywebsite") $Form = _IEFormGetCollection ($IE, 0) $Utb = _IEFormElementGetObjByName ($Form, "login_username") $Ptb = _IEFormElementGetObjByName ($Form, "password") _IEFormElementSetValue ($Utb, $Input1) _IEFormElementSetValue ($Ptb, $Input2) _IEFormSubmit ($Form) Sleep(5000) it is suposed to get the $input1 and $input2 and set value in _IE but its doesnt, it just writes 1 character Any idea why?
  6. I DONT want to flood the page
  7. #include <IE.au3> #Include <Misc.au3> Global $Paused HotKeySet("{ESC}", "Terminate") $i=0 _Singleton("myscript") MsgBox(0, "Starting", "Starting, to exit press ESC at any time. Press OK to continue.") $oIE = _IECreate ("http://mywebsite") Do PixelSearch( 0, 0, 1000, 1000,0xA91A1C ) If Not @error then $oForm = _IEFormGetCollection ($oIE, 0) $oQuery = _IEFormElementGetObjByName ($oForm, "mytextbox") $oSubmit = _IEFormElementGetObjByName ($oForm, "submit") _IEFormElementSetValue ($oQuery, "mytext") _IEAction($oSubmit, "click") Sleep(5000) Endif If @error then $oForm = _IEFormGetCollection ($oIE, 0) $oQuery = _IEFormElementGetObjByName ($oForm, "mytextbox") $oSubmit = _IEFormElementGetObjByName ($oForm, "submit") _IEFormElementSetValue ($oQuery, "mytext") _IEAction($oSubmit, "click") Sleep(5000) Endif $i=$i Until $i=10 Func Terminate() Exit 0 EndFunc What do I need: Is there any way of removing the sleep(5000) fuction? (if it is not there the _IEAction will keep clicking very fast the button and flooding the page)How to make the IE page "always on top"Replace the PixelSearch( 0, 0, 1000, 1000,0xA91A1C ) function with a funcion that "pixelsearches" the IE Window while it is minimizedIts all for nowAny help?
  8. Any idea how?
  9. Edit Is there any comand to make the IE page "Always on top"???
  10. I know that there is a PixelSearch function but i want to make a PixelSearch without having to be in the page
  11. Is there any fuction to make a PixelSearch with a _IE function?
  12. will this fix my problem?
  13. Autoit v3.3.6.1
  14. any alternative to IE functions? Sorry but i dont want to provithe the website
  15. #include <IE.au3> #Include <Misc.au3> Global $Paused HotKeySet("{ESC}", "Terminate") $i=0 _Singleton("myscript") MsgBox(0, "Starting", "Starting, to exit press ESC at any time. Press OK to continue.") $oIE = _IECreate ("http://mywebsite") Do $oForm = _IEFormGetCollection ($oIE, 0) $oQuery = _IEFormElementGetObjByName ($oForm, "mytextbox") $oSubmit = _IEFormElementGetObjByName ($oForm, "submit") _IEFormElementSetValue ($oQuery, "mytext") _IEAction($oSubmit, "click") Sleep(2500) $i=$i Until $i=10 Func Terminate() Exit 0 EndFunc the line: _IEAction($oSubmit, "click") if the sleep isnt just after that , then it will keep clicking submit (on 7) any suggestion for this On w7 it simply doesnt click the button Any idea?
×
×
  • Create New...