Jump to content

Atamisk

Members
  • Posts

    17
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Atamisk's Achievements

Seeker

Seeker (1/7)

2

Reputation

  1. Just copy and paste that into the address bar of the website? I tried (and made sure to type in the missing javascript portion) and it didn't do anything. I tested it out on a different window and nothing there either. I'm sorry I'm a bit dense when it comes to this stuff.
  2. I think I found it!! I forgot I can dive into the page code deeper and was able to isolate this section of the code Right now it shows a number. How it changes that number is still unknown. I'll play with it more at the end of the work day when i can disrupt less techs. But it gives me a spot to "read" the page code with and isolate the necessary number change if possible. Is there a faq or some prebuilt code to read the webpage changes every 2 seconds or something close that I can look at?
  3. Main goal is to read that number change from a 0 to anything else and play a sound. The 2nd goal is to make it deployable to other techs. The initial idea was to use a screen capture because that is what I'm most familiar with (and therefor the idea to mesh to two programs together to make the screen area selectable for the program). However, if I could pull the info directly from the webpage code somehow and deploy this to a few of the other front line techs that would be even better so it would be a seamless read. We all use the same webpage to display waiting calls. If I can find that number change in the code then the whole "select this area of the screen" becomes a moot point.
  4. Also I thought of something else. There was another post here About drawing a rectangle and getting a printout of those mouse coordinates. Would there be a way to mesh the two programs together to first give the user a box to highlight the specific area on their screen then whatever the result is input that into your field? Local Const $aScreenArea[4] = Right now the cord that fits that number so far is [4220, 325, 4235, 350] but I'm not sure what that translates to in a square size. Nor would I have any idea how to utilize the program listed above to "paste" the coordinates into the 2nd field.
  5. For anyone else running into this same issue of the mouse position being off, I figured it out! Well, You guys figured it out but I found the post that had the needed info in it. So my DPI was set to 125% and as stated here So I changed everything back to 100% and used the mouse position from auto IT window program and it worked! it was giving the correct position. So in case anyone runs into this problem with using mouse position, change your windows DPI back to 100%!
  6. Alessandro, I've marked this as the solution. It's working 100% after finding the correct screen area with your other script trick. Since "read the screen" is a solution for my specific issue ATM I consider that perfect for a solution to the original question. I believe The next step is to figure out how the page displays the number change and capture it somehow. Once I can do that I could deploy this to the rest of my coworkers to help bring our call answered %'s up even more. We are all T1 guys for a mid-sized MSP in Illinois. Pity us.
  7. Those are gonna be my next steps. I want to be able to pull the information directly from the webpage code somehow so I can deploy this little script to others on my team and help pull up our answer call %'s. Makes us look better to management and I get a bit of credit for coming up with a solution that "made the numbers go up" (cuz thats all they friggen care about anyway) from what I pasted on the first picture with the page code, anything that might look like it could contain something for what I'm talking about? I know it's a barren bunch of <div> stuff so not much to go off of but the system has to inject the change somehow into the page.
  8. At the moment, it is running on the laptop screen which would be considered the main display but with the two externals still plugged in. I'll unplug the other screens here and test again. I'm betting it has to do with the multi-monitors messing with how things are detected. Gotta go take care of some stuff so I'll have to work more on this tomorrow. Thanks for the help, I'll let you know how it goes!
  9. Very odd. Using your program I was able to narrow down the cord's and the window info was way off Blue lightning bolt is my Cursor position, red lines are detection area that makes noise when crossed Right side has the cursor cord's while the bottom window shows what the program sees as the cursor cords. Wonder why the discrepancy.
  10. weird, it's above the detection area by about 1/4 an inch. Wonder if having the three screens is messing with the detection area..... or maybe I'm thinking about the X,Y positions wrong?
  11. so I changed it to the Beep(500,500) and it didn't work but I opened a program window and threw it over in that area and my computer beeped. I think it's a location thing. Maybe I should increase the size of the detection box and test that. I'm gonna play with a tiny window about the size of my detection box and see if it beeps while I moved it near that area.
  12. So Changed a little bit here but I'm having some issues. I dont know if this is relevant or not but I have 3 monitors (laptop screen and 2 LCD's off the laptop's dock) I made the following adjustments to the script #include <AutoItConstants.au3> Main() Func Main() Local Const $aScreenArea[4] = [4160, 320, 4200, 350] ; Get coords with AutoIt v3 Window Info tool, Mouse tab Local $iCheckSumZero Local $iCheckSumNotZero Local $iCheckSum MsgBox(64, "Collecting graphic info", "Ensure number zero is on screen, inside $aScreenArea portion before continue") $iCheckSumZero = PixelChecksum($aScreenArea[0], $aScreenArea[1], $aScreenArea[2], $aScreenArea[3]) While 1 $iCheckSum = PixelChecksum($aScreenArea[0], $aScreenArea[1], $aScreenArea[2], $aScreenArea[3]) While $iCheckSum == $iCheckSumZero Sleep(1000) $iCheckSum = PixelChecksum($aScreenArea[0], $aScreenArea[1], $aScreenArea[2], $aScreenArea[3]) WEnd $iCheckSumNotZero = $iCheckSum SoundPlay(@WindowsDir & "\media\Alarm06.wav", $SOUND_NOWAIT) $iCheckSum = PixelChecksum($aScreenArea[0], $aScreenArea[1], $aScreenArea[2], $aScreenArea[3]) While $iCheckSum == $iCheckSumNotZero Sleep(1000) $iCheckSum = PixelChecksum($aScreenArea[0], $aScreenArea[1], $aScreenArea[2], $aScreenArea[3]) WEnd WEnd EndFunc Simple things like different sound and a bit longer sleep timer. Here is the screenshot of the window info on the watched area It's not working though. I feel like I'm missing something basic here.
  13. Yep, noticed that was a problem so I disabled my tab refresher program. The portal should do the Contact waiting update on it's own but it was not 100% so I tossed a tab auto-refresher in there to help things along. For the purpose of this working I can disabled my addon and trust Mitel's software to update like it's supposed to (HA!)
  14. I'm playing with it now. I will be back to let you know how it goes.
  15. OMG thank you so much! I'll use this as a template and work with it this evening. It'll help out the other T1 guys to get a notification that there is something waiting if I can append this to work on their computers as well. Thanks again!!!
×
×
  • Create New...