Jump to content

Recommended Posts

Posted

I tried following code for Application "Indira Diet Version 10.0.4.0"

#include <MsgBoxConstants.au3>
#include <AutoItConstants.au3>
Opt("WinTitleMatchMode", 2)
$terminalName=WinGetTitle('DIET')

Local $hWind=WinActivate($terminalName)
WinSetState($hWind,"",@SW_MAXIMIZE)
WinSetOnTop($hWind, "", $WINDOWS_ONTOP)
BitAND(WinSetState($hWind,"",@SW_MAXIMIZE), WinSetState($hWind,"",@SW_MAXIMIZE), WinSetOnTop($hWind,"",$WINDOWS_ONTOP),WinActivate($hWind))
ControlClick($hWind,"","[class:SysListView32; instance:1]")
Send("{F1}")

////////////////////////////////////////////////////////////////////////////////////

autoit recorder also not recording any activities for this "Indira Diet Version 10.0.4.0" application

 

please help me

why it is so and what is solution?

 

 

 

 

 

Untitled.jpg

  • Developers
Posted

Moved to the appropriate forum, as the Developer General Discussion forum very clearly states:

Quote

General development and scripting discussions. If it's super geeky and you don't know where to put it - it's probably here.


Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums.

Moderation Team

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.
  :)

Posted (edited)

Well your script does not ask question for you. :lol:

 

I presume the question is : 

Why the ControlClick isn't clicking?

Did i am Correct ?

 

Hmmmmmmm 

Could you post the complet window info of the wanted control please ?

 

 

Also i checked your script. (please use <> tool to post script it is easyer for us ) 

 

#include <MsgBoxConstants.au3>
#include <AutoItConstants.au3>

Opt("WinTitleMatchMode", 2)


$terminalName=WinGetTitle('DIET')
$hWind = WinActivate($terminalName)

WinSetState ($hWind,"",@SW_MAXIMIZE)

WinSetOnTop ($hWind, "", $WINDOWS_ONTOP)

;BitAND (WinSetState($hWind,"",@SW_MAXIMIZE), WinSetState($hWind,"",@SW_MAXIMIZE), WinSetOnTop($hWind,"",$WINDOWS_ONTOP),WinActivate($hWind)) ; Wonder if this line is realy necessary since you do that already in precedent line ? Did you need it two time ? (What happen if you click two time on a icon in the taskbar ? )

ControlClick ($hWind,"","[class:SysListView32; instance:1]")

Send ("{F1}")

 

I dont see an error yet...  

 

Guess you just have to check this line : 

ControlClick ($hWind,"","[class:SysListView32; instance:1]", "left" , 1 )

Not sure let's see... with the provided further informations.

Edited by caramen

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

  • 2 weeks later...
Posted
  •  
  • GuruComputers
  • Members
  • 0
  • 1 post

I tried following code for Application "Indira Diet Version 10.0.4.0"

#include <MsgBoxConstants.au3>
#include <AutoItConstants.au3>
Opt("WinTitleMatchMode", 2)
$terminalName=WinGetTitle('DIET')

Local $hWind=WinActivate($terminalName)
WinSetState($hWind,"",@SW_MAXIMIZE)
WinSetOnTop($hWind, "", $WINDOWS_ONTOP)
BitAND(WinSetState($hWind,"",@SW_MAXIMIZE), WinSetState($hWind,"",@SW_MAXIMIZE), WinSetOnTop($hWind,"",$WINDOWS_ONTOP),WinActivate($hWind))
ControlClick($hWind,"","[class:SysListView32; instance:1]")
Send("{F1}")

////////////////////////////////////////////////////////////////////////////////////

autoit recorder also not recording any activities for this "Indira Diet Version 10.0.4.0" application

 

please help me

why it is so and what is solution?

Untitled.jpg

Posted

AutoIt Recorder is no longer supported.
And not all applications can be automated this way as they do not return the needed information.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

  • Developers
Posted (edited)

@GuruComputers, How often are you intending to open a new thread for this question? I have merge now 3 seperate thread, and let this not happen again!

Simply stick to a single thread please.

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.
  :)

Posted (edited)

@GuruComputers I wont help you aymore until you dont say what you've tryed to do. 

I sent you some pointer you dont even answer. 

Dont expect any help if you dont say us what is happenning when you try precedent answers.

 

Also check the correct syntax.

ControlClick ($hWind,"","[class:SysListView32; instance:1]", "left" , 1 )

"LEFT" CLICK

1 TIME click

 

Edited by caramen

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

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
×
×
  • Create New...