Jump to content

phonerlite call monitor


beqa
 Share

Recommended Posts

hi all.

i need to monitor a call in app called phonerlite.

i need to find a controll listbox and if the list is empty find editbox write numbers and press enter.

i don't know how to get if the list is empty and how to find window by class or control id.

 

pleae help with this.

 

thank you.

Link to comment
Share on other sites

  • Developers

i know class and controll id of a window.

i need to find it programatically.

and also to determine if listbox is empty.

You are as clear as mud here. ;)

So what about you start sharing some more details to make clear what you are trying and what your issue is?

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

If you can read the control's info with the Au3Info program, use _GUICtrlListBox_GetListBoxInfo to get the number of items in the listbox.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

You can repeat that it's not an AutoIt application until you're blue in the face, but did you actually read what I wrote?

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

here is my code.

#include <Constants.au3>
$iniPath = @ScriptDir & "\callmonitor.ini"
If Not FileExists($iniPath) then
IniWrite($iniPath, "Settings", "Number", "123")
EndIf

Global $sNum = IniRead($iniPath, "Settings", "number", "")

Run("PhonerLite.exe")
Local $handle = WinGetHandle('PhonerLite'); <-- 1st window
If WinExists("PhonerLite") Then
callmonitor()
Else
MsgBox($MB_SYSTEMMODAL, "", "Window does not exist")
endif

Func callmonitor()
Local $handle = WinGetHandle('PhonerLite'); <-- 1st window;
Local $edit = ControlGetHandle($handle, '', '[Class:Edit; Instance:1]')
WinSetState($handle, "", @SW_SHOW)
ControlFocus($handle, '', $edit)
Send($sNum&"{ENTER}")

EndFunc

 

i need to execute a function if in listview with class:TListView and instance:1 are zero items.

 

please help to do this.

thank ou

Link to comment
Share on other sites

  • Developers

Again: show information about the window you are trying to communicate with. What is shown by au3info.exe?

You also might need a sleep() after the Run() to give the program time to start before getting its window handle and WinExists() check.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

from au3info class of listview is Class:ListView and Instance:1

Great info. Seriously, could you try for one moment try to place yourself in our shoes and think about what Information me might need to be able to help you?

You posted a script but do not specify any details what is happening, what is not working or where it is failing.

We have asked many times for the detailed info of au3info but we get bits and pieces.

This is my last contribution here until able to assists without asking questions, but wanted to give you a few pointers about were you might want to improve when seeking help here. ;)

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

ok, ther are details what this script should do.

1. it should start phonerlite.exe "done"

2. it should dial number and press enter "done"

3. after this time, focus jumps to listview with class written in previous post and displays item with duration and codec, at this time script must monitor list and if listview becomes empty this means that call was interrupted and i must jump to editbox, again write number and press enter. "not done"

 

if you ned further details, please ask.

thanks

Link to comment
Share on other sites

How many times do we need to ask? We've asked you several times to show us the Au3Info information, and you give us nothing. Then you tell us, again, what you want it to do but you don't tell us what isn't working or how you're trying to get the information.

POST THE SUMMARY TAB INFORMATION OF THE AU3INFO TOOL, ALL OF IT.

I hope that's clear enough for you now. If you don't post it, no one will help you or even be able to help you.

Last chance, then you're on your own.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

hi, unfortunately, i am not able to show you information from au3info, because it is not accessible enough for screenreaders.

i think information about listview class is enogh, and i can see from the code that punct 3 is not done.

i can't monitor listview to catch when there is zero items. that is why i am asking.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...