Jump to content

Nemon

Members
  • Posts

    11
  • Joined

  • Last visited

Nemon's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. damn I'm dumb! Thanks to both of you. I used the endless loop like melba said. I felt like I was close but I just couldn't get it to jive. Thanks again for the help and fast response!
  2. I'm so mad I can't figure this out! I've been looking over the fourm archives for ever and it could be that it is so simple no one talks about it. Here is what I need: $num = InputBox("Number", "What is the number? ", "", "") if $num = "" Then Exit WinActivate("window") Send($012num) $msg = MsgBox(36, "correct?", "Was the number input correctly") If = $msg = 7 Then :::loops back to the input box until::: Else $msg = 6 Then ;;;;;The rest of the script keeps going;;;; Is this possible to do? Thanks Sigh
  3. I was thinking more people would have an idea
  4. Well I think you could use: $oIE =_IEAttach(http://internal.company.website) But the web page you would have to open manualy...OR just create script #1 with it opening another script and then create the webpage and get the error. Script #2 would be the rest of the script as you wanted just with a winwait and winactivate....rest of the script to start. Remember I did say I was a rookie. But that is what I will prob do if no one figures out what is up with the error.
  5. Hi there! So I've been using it a mega rookie for quite some time and only resently been getting into more normal rookie. That being said I can Co-sign with Horstj about IECreate having an issue, but its not with ALL websites. It only reacts to some that I try to go to. Local $oIE = _IECreate("http://www.google.com") MsgBox(0, "The URL", _IEPropertyGet($oIE, "locationurl")) Works great! but when I try an internal comapny page we use such as: Local $oIE = _IECreate(http://internal.company.webpage) It WILL create the page, but then I get then the error: "C:\Program Files (x86)\AutoIt3\Include\IE.au3 (560) : ==> The requested action with this object has failed.: WEnd WEnd^ ERROR pops up and ends the script. #include <IE.au3> _IECreate(http://internal.company.webpage) creates the error. That is the only thing in the script. Hope that kind of helps.
  6. Well I guess I’ll be more specific on what I’m doing. I want to pull data from a cell in a web based access spreadsheet in one window and have auto it type it out in another web based form. I was doing it with simple winactivate, send and mouseclick commands. But one of the new areas I want to use does not let you paste info into it. You have to type out things in the box, so that is the problem. I am still going to look into the suggestions you all have made, but I don’t think the excel one will work, this is just an assumption from looking at the help file on it. I really enjoy learning this and thanks for the help!
  7. Thanks I'll do all of the above and let you know how it turns out! Thanks much everyone!
  8. I am new to Autoit and I have been ok at making it do VERY VERY basic things. I'm wondering if it is possible to pull data from a field on a spreadsheet A and then type it out in another form? If you just bait me with the right commands I don't mind digging and learning. Thanks a ton! Nem
  9. Ok I changed it up a bit, took out the loop, put in cords to search. When execute the program the tool tip pops up, it make Media Monky the active window....and that is about it. It just sits there does not move to a color at all. Pixelsearch is kind of hard lol. ; ToolTip displaying function keys Tooltip("F10 = Exit", 0, 0) ; List of command keys If Not WinActive("MedaMonkey", "") Then WinActivate("MediaMonkey", "") HotKeySet("{F10}", "exitNow") $coord = PixelSearch(597, 154, 806, 628, 0x9C885C) ; If PixelSearch finds the pixel color at given coordinates, Then: If Not @error Then MouseClick("left", $coord[0], $coord[1], 1, 0) EndIf ; Exit Func exitNow() Exit EndFunc
  10. Fixed the space, not sure why I had that in there. As for the 0,0 search to the windows height, in the $size = WinGetClientSize("MediaMonkey", "") $coord = PixelSearch(0,0, $size[0], $size[1], 0xFECE56) I thought that it will automatically grab the entire window called Media Monkey and search it. I was kind of cloudy on getting the correct pixels of the screens.
  11. Ok, I have been lightly using auto it for very basic junk. I can get this to work if just use all mouseclick x,y with some sleep commands. I just wanted to try to use pixelsearch to get it done a little more automatic. The script below will select that correct window, but that's about it. All the tooltips work like they should. Just it does not seem that the pixelsearch works at all. Not sure what I am doing wrong. If you could look it over and offer any advice would be great. The old mouseclick script I used for everything else I did is getting old. Thanks in advance!! ; Declare Variables $media = 0 ; ToolTip displaying function keys Tooltip("HOME = On/Off find media, F10 = Exit", 0, 0) ; List of command keys If Not WinActive("MediaMonkey", "") Then WinActivate("MediaMonkey", "") While WinWaitActive("MediaMonkey", "") HotKeySet("{HOME}", "Find media") HotKeySet("{F10}", "exitNow") WEnd ; Click loop While True If $media = 1 Then $size = WinGetClientSize("MediaMonkey", "") $coord = PixelSearch(0,0, $size[0], $size[1], 0xFECE56) ; If PixelSearch finds the pixel color at given coordinates, Then: If Not @error Then MouseClick("left", $coord[0], $coord[1], 1, 0) EndIf EndIf Sleep(500) WEnd ; Functions ; On/Off find media(): Func media() If $media = 0 Then $media = 1 Tooltip("Auto deleting on command (HOME to disable)", 0, 0) Else $media = 0 Tooltip("HOME = On/Off Start deleting, F10 = Exit", 0, 0) EndIf EndFunc ; Exit Func exitNow() Exit EndFunc
×
×
  • Create New...