Jump to content

Recommended Posts

Posted

Hello, I am new to Autoit and trying to use ctrl+f to search some text on webpage by sending ctrl+f but not getting succeed.

Please help how can i search some text on webpage or send ctrl+f with text to search.

Thanks

sud

Posted

would anyone will interested to answer?

I am using below but not getting through.

Send("{^F}")
Send("{LCTRL+F}")

 

thanks

sud

Posted

Did you read @JohnOne answer ?

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

Did you try to it ?

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

what it is there in his answer to try.  are you able to see anything else which i am not. pls let me know.

 

Posted (edited)

lets get away form ctrl+f, that will be clunky, look at 

inetread()

can you provide us the URL and what data you are looking for?

*and @JohnOne did not provide an answer, just informed that you were in the examples section initially, and then oddly linked to that thread here...do not worry odder things will happen.  you are certainly seeing everything we can see.

Edited by iamtheky

  Reveal hidden contents

Posted (edited)

Ah sorry.
Ok
Why you trying to use such unstable, unpredictable methods like 
Send("{^F}")
Send("{LCTRL+F}")

Of course they are "unstable, unpredictable " even primitve with relation to WebBrowser.

There is many more advance posibilities.

But you should to give some more info like: Windows OS version, WebBrowser name and version, URL to the website.

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

I am working on firefox 38.7.0 on Windows 7 and it is 1 internal URL which will not gonna be accessible outside.

I can say it is a normal webpage on which i am trying to find the "active" keyword. 

actually my webpage having information of different session's with status like read/active/stateless...etc.

I am trying to open that URL with and after that it should highlighted all the jobs which are in "active" state.

Hope this helps.


Run("C:\Program Files (x86)\Mozilla Firefox\firefox.exe https://URL")

WinWaitActive("Authentication Required")
Sleep(1000)

$title = WinGetTitle("Authentication Required") ; retrives whole window title

$UN=WinGetText($title,"User Name:")
ControlSend($title,"",$UN,"manager") ;Sets Username

$PWD=WinGetText($title,"Password:")
Send("{TAB 1}")
Sleep(1000)
ControlSend($title,"",$PWD,"password") ;Sets PWD

Sleep(1000)
Send("{ENTER}")
WinWaitActive("Java Dynamic Management View of Show_Servers invocation - Mozilla Firefox")
Sleep(2000)

; here now i am trying to send ctrl+f to find "active" on webpage.

 

Thanks,

Sud

Edited by sud
Posted (edited)

You should start looking here:

https://www.autoitscript.com/wiki/User_Defined_Functions#Browsers

and then go to:

 

 

BTW:

Read this:

 * How to post code on the forum *

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

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
  • Recently Browsing   0 members

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