Search found 18 matches

by asghar5676
23 May 2019, 19:20
Forum: Ask For Help
Topic: Inconsistent result when reading from CSV file
Replies: 10
Views: 815

Re: Inconsistent result when reading from CSV file

Thanks folks for your kind assitance. Apology for my late reply. I was dumped with other works and forgot to check the forum. gregster I figure that out after posting my reply. Maybe I should change my approach and not using CSV from the first place. Please read the last paragraph to see what is my ...
by asghar5676
21 May 2019, 18:27
Forum: Ask For Help
Topic: Inconsistent result when reading from CSV file
Replies: 10
Views: 815

Re: Inconsistent result when reading from CSV file

I do not have time right now to analyze what goes wrong in your program. Made a little different solution - In the beginning of the program you need #Persistent - instead of "Send", a file (Result.txt) is created with the result in ;SetKeyDelay, 400 #SingleInstance force #Persistent SplitPath, A_Sc...
by asghar5676
20 May 2019, 21:12
Forum: Ask For Help
Topic: Inconsistent result when reading from CSV file
Replies: 10
Views: 815

Inconsistent result when reading from CSV file

Hi all, I have a simple CSV file called Template.CSV (attached) with couple of columns and rows. I would like to read the content of it and SEND it through. I also want to replace the blank cells with TAB . Here is my code: !F12:: ;Alt + F12 ;SetKeyDelay, 400 #SingleInstance force SplitPath, A_Scrip...
by asghar5676
06 Apr 2019, 20:55
Forum: Ask For Help
Topic: Cannot get ControlClick working
Replies: 5
Views: 374

Re: Cannot get ControlClick working

I'm sure others will have a much better answer but if it were me, I'd consider (if the window is in a static spot every time) doing a mousemove and send a click. Good luck, I feel your pain. MouseMove is no good to me as the code might be used on different machine with various display setups :eh: W...
by asghar5676
06 Apr 2019, 02:28
Forum: Ask For Help
Topic: Cannot get ControlClick working
Replies: 5
Views: 374

Re: Cannot get ControlClick working

I'm sure others will have a much better answer but if it were me, I'd consider (if the window is in a static spot every time) doing a mousemove and send a click. Good luck, I feel your pain. MouseMove is no good to me as the code might be used on different machine with various display setups :eh:
by asghar5676
05 Apr 2019, 19:30
Forum: Ask For Help
Topic: Cannot get ControlClick working
Replies: 5
Views: 374

Cannot get ControlClick working

Hi All, I m trying to use one the most user un friendly software on earth named Bluebeam Revu 2018. You probably have heard about it. It's a shitty PDF handling application which does not let users navigate through the interface using keyboard shortcuts. Anyhow, as shown in screenshots attached, all...
by asghar5676
14 Aug 2018, 22:27
Forum: Ask For Help
Topic: Read the Tree text of whatever has focus (in Adobe Acrobat) Topic is solved
Replies: 4
Views: 380

Re: Read the Tree text of whatever has focus (in Adobe Acrobat) Topic is solved

Try this. It's kinda hacky but works great on my computer. f6:: send {AppsKey}R controlGetText,text,edit1,A send {esc} tooltip %text% return Thanks for the help. It did the job. :clap: Just for learning purposes, what is ' edit1 ' in your code? I am asking because now I need to get to JavaScript fo...
by asghar5676
08 Aug 2018, 19:35
Forum: Ask For Help
Topic: Read the Tree text of whatever has focus (in Adobe Acrobat) Topic is solved
Replies: 4
Views: 380

Read the Tree text of whatever has focus (in Adobe Acrobat) Topic is solved

Hi all, I have a tree in Adobe acrobat which contains the name of the fields. I would like to get the text of focused item. See screenshot below: https://image.ibb.co/fzjGy9/1.jpg In this case, for instance, I would like to get " EndYearManager20 " And FYI, here is what I get in window spy: https://...
by asghar5676
21 Nov 2017, 00:00
Forum: Ask For Help
Topic: Get text content out of HTM file
Replies: 10
Views: 1053

Re: Get text content out of HTM file

FileRead, html, JReportLT.htm HtmlToText(html, outText) MsgBox, % outText HtmlToText(ByRef html, ByRef resultText) { doc := ComObjCreate("HtmlFile") doc.open() doc.write( RegExReplace(html, "`as)<head>.*?</head>|<img .*?>") ) doc.close() resultText := doc.body.innerText } Thanks tmplinshi. You rock...
by asghar5676
20 Nov 2017, 21:01
Forum: Ask For Help
Topic: Get text content out of HTM file
Replies: 10
Views: 1053

Re: Get text content out of HTM file

HIAC wrote:

Code: Select all

FileRead, File, JReport.htm
FileAppend, %File%, AutohotkeyTemp1.txt

Nope. Still getting the HTML codes. :headwall:


Screenshot below is what I see in AutohotkeyTemp1.txt:

Image
by asghar5676
20 Nov 2017, 19:17
Forum: Ask For Help
Topic: Get text content out of HTM file
Replies: 10
Views: 1053

Re: Get text content out of HTM file

The first line downloads the HTML. The second line reads from that downloaded file. Adapt that to your needs. Thanks Osprey. I figured out that much but I still get the HTML code in AutohotkeyTemp1.txt instead of content text. FileRead, File, JReport.htm FileAppend, % File, AutohotkeyTemp1.txt
by asghar5676
20 Nov 2017, 18:49
Forum: Ask For Help
Topic: Get text content out of HTM file
Replies: 10
Views: 1053

Re: Get text content out of HTM file

See this link: https://autohotkey.com/boards/viewtopic.php?p=398#p398 Look at the first and follow the links at the top. I am sorry but I forgot to mention that I am not a pro ! I don't want to download HTM file. The HTM file is already there somewhere in my C drive. I just want to read the content...
by asghar5676
20 Nov 2017, 18:14
Forum: Ask For Help
Topic: Get text content out of HTM file
Replies: 10
Views: 1053

Get text content out of HTM file

Hi all,

I have an HTM file which contains pure text stuff i.e. no image, no fancy thing. How can I get the text content?

FileRead delivers the html code which is not what I want

Code: Select all

FileRead, Clipboard, JReportLT.htm
	FileAppend, %Clipboard%, AutohotkeyTemp1.txt
by asghar5676
16 Sep 2017, 18:57
Forum: Ask For Help
Topic: Reading multiple tabular HTM files
Replies: 2
Views: 486

Reading multiple tabular HTM files

Hi all, I have several dozens of *.HTM which have been extracted from a power utility server and saved locally on my machine. They provide information for power poles. Each power pole has two correspondant *.HTM files: XXXXX Work Summary Location.htm --------------> XXXXX represents the pole unique ...
by asghar5676
26 Aug 2017, 05:56
Forum: Ask For Help
Topic: Adding EMAIL button to each row of ListView Topic is solved
Replies: 3
Views: 651

Re: Adding EMAIL button to each row of ListView Topic is solved

Thanks to you both Nightwolf85 & garry. That was very generous of you guys. Really appreciate your time.
by asghar5676
25 Aug 2017, 06:03
Forum: Ask For Help
Topic: Adding EMAIL button to each row of ListView Topic is solved
Replies: 3
Views: 651

Adding EMAIL button to each row of ListView Topic is solved

Hi all, I am a beginner and I am now trying to add an EMAIL button to each row of my ListView and I have no idea how to achieve that. The intent is by clicking on email button, an email to be sent for to that particular user http://uupload.ir/files/wy8m_1.jpg #SingleInstance force SetWorkingDir %A_S...
by asghar5676
22 Aug 2017, 04:13
Forum: Ask For Help
Topic: How to display text file in tabular format?
Replies: 2
Views: 372

Re: How to display text file in tabular format?

Thanks wolf_II.

It did the trick.
by asghar5676
22 Aug 2017, 01:30
Forum: Ask For Help
Topic: How to display text file in tabular format?
Replies: 2
Views: 372

How to display text file in tabular format?

Hi all, I am very new to AHK. So please pardon me if I am asking basic questions here. I have text file containing several lines like below: [email protected] out license at 22/08/2017 11:38 AM Hours used: 3:33 [email protected] out license at 22/08/2017 3:07 PM Hours used: 0:04 [email protected]...

Go to advanced search