Search found 15 matches
- 08 Aug 2023, 11:12
- Forum: Ask for Help (v1)
- Topic: AHK XML Parsing, Change Child names Topic is solved
- Replies: 2
- Views: 210
Re: AHK XML Parsing, Change Child names Topic is solved
SOLVED: I found the following setup works wonderfully. Sleep 2000 FileRead, XMLData, C:\Pending\New.xml ; Read XML file XMLData := strreplace(XMLData, "<EmsIncident>", "<EmsIncident1>",,1) XMLData := strreplace(XMLData, "</EmsIncident>", "</EmsIncident1>",,1) XMLData := strreplace(XMLData, "<EmsInci...
- 08 Aug 2023, 07:54
- Forum: Ask for Help (v1)
- Topic: AHK XML Parsing, Change Child names Topic is solved
- Replies: 2
- Views: 210
AHK XML Parsing, Change Child names Topic is solved
I am looking to Change Child names of XML file. I can read file, However because everything is duplicated I cant put proper info together. Example: XML FILE <CadData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <EmsIncidentCollection> <EmsIncide...
- 06 Aug 2020, 14:59
- Forum: Ask for Help (v1)
- Topic: Need Help Getting Values from XML Text Topic is solved
- Replies: 12
- Views: 4539
Re: Need Help Getting Values from XML Text Topic is solved
Thank you All for the help.. I am having more trouble. TheDewd Your code works great, I am not however able to figure out how to get information that is different further down XML file. Example is below. XML FILE <?xml version="1.0" encoding="US-ASCII"?> -<CadData xmlns:xsd="http www.w3.org /2001/XM...
- 30 Jul 2020, 10:22
- Forum: Ask for Help (v1)
- Topic: Need Help Getting Values from XML Text Topic is solved
- Replies: 12
- Views: 4539
Re: Need Help Getting Values from XML Text Topic is solved
How would I add title to each value? Like "ID:" Before AgencyId or "Number:" Before Incident Number Example showing how to read an XML file, and then parse the XML data to get values from specific tag names, and then display each value in separate message boxes or combine everything together and dis...
- 30 Jul 2020, 08:04
- Forum: Ask for Help (v1)
- Topic: Need Help Getting Values from XML Text Topic is solved
- Replies: 12
- Views: 4539
Re: Need Help Getting Values from XML Text Topic is solved
This is janky but gets the job done. fileRead xml,xmlSource.xml boldArr := strSplit(xml,["[b]","[/b]"]) bolds := for index,entry in boldArr { if(!mod(index,2)) { bolds .= entry . "`n" } } clipboard := bolds This was my first time trying to make Code Bold. It did not work. i was going to make it bol...
- 30 Jul 2020, 08:01
- Forum: Ask for Help (v1)
- Topic: Need Help Getting Values from XML Text Topic is solved
- Replies: 12
- Views: 4539
Re: Need Help Getting Values from XML Text Topic is solved
This is Updated code with Kinks worked out, after i posted the other code I started having Clipboard Errors. So I tried a few things and found i did not need clipboard at all if all function are in script. Hope this code can help others in need. Im not sure if extra unit Numbers work, I added them a...
- 29 Jul 2020, 13:49
- Forum: Ask for Help (v1)
- Topic: Need Help Getting Values from XML Text Topic is solved
- Replies: 12
- Views: 4539
Re: Need Help Getting Values from XML Text Topic is solved
The following is completed code that works great Thank you for your help. hope it could help someone else. #SingleInstance, Force ; Only allow one running instance of script at one time Move: { Sleep 100 Clipboard := "" While (Clipboard != "") Sleep, 100 Sleep 1500 FileMove, E:\999999\*.xml, C:\FLOW...
- 29 Jul 2020, 08:58
- Forum: Ask for Help (v1)
- Topic: Need Help Getting Values from XML Text Topic is solved
- Replies: 12
- Views: 4539
Need Help Getting Values from XML Text Topic is solved
The Following Bold Text Or words with is what im needing to get from Clipboard, I have XML files that the bold data is always changing. I am needing to get this information and move to single doc or copy so i can paste to email. <?xml version="1.0" encoding="US-ASCII"?> -<CadData xmlns:xsd="http www...
- 08 Oct 2019, 18:33
- Forum: Ask for Help (v1)
- Topic: AHK Webpage Search
- Replies: 11
- Views: 2144
AHK Webpage Search and Copy
Good Afternoon,
I am trying to copy information out of excel file, and past in another window.
I have tried using a way to copy webpage then search for information, but i am unable to find a solve.
if anyone can help i would be very thankful
I am trying to copy information out of excel file, and past in another window.
I have tried using a way to copy webpage then search for information, but i am unable to find a solve.
if anyone can help i would be very thankful
- 10 Oct 2017, 17:08
- Forum: Ask for Help (v1)
- Topic: AHK Webpage Search
- Replies: 11
- Views: 2144
Re: AHK WEBPAGE SEARCH
How do i Start with Regex i cant found it anywhere for scripting
- 24 Sep 2017, 14:08
- Forum: Ask for Help (v1)
- Topic: AHK Webpage Search
- Replies: 11
- Views: 2144
Re: AHK WEBPAGE SEARCH
The following Code works, But it Displays a MsgBox when Nothing is found. Change Available to Dispatched and it will display a blank Box. I would like it to have no MsgBox until Dispatched is found. Thanks anyone's help is greatly appreciated. ________________________________________________________...
- 24 Sep 2017, 08:51
- Forum: Ask for Help (v1)
- Topic: AHK Webpage Search
- Replies: 11
- Views: 2144
Re: AHK WEBPAGE SEARCH
I have Corrected Script. The problem was I deleted parts of what copies to Clipboard from website, do to Private information. The following is how it copies to clipboard. Works great Except for It brings up MsgBox and Include the following, At Hospital Time: , Arrived At Patient Time: . Due to follo...
- 24 Sep 2017, 08:14
- Forum: Ask for Help (v1)
- Topic: AHK Webpage Search
- Replies: 11
- Views: 2144
Re: AHK WEBPAGE SEARCH
To: Xtra
This Script brings back a MsgBox with just a "0". Do i need to add this to what i already have or edit it slightly?
I have tried changing Dispatched to Enroute due to having plenty of Enroute pages to test with. Still just gives "0".
could you maybe explain the setup for CheckStatus?
This Script brings back a MsgBox with just a "0". Do i need to add this to what i already have or edit it slightly?
I have tried changing Dispatched to Enroute due to having plenty of Enroute pages to test with. Still just gives "0".
could you maybe explain the setup for CheckStatus?
- 22 Sep 2017, 18:36
- Forum: Ask for Help (v1)
- Topic: AHK Webpage Search
- Replies: 11
- Views: 2144
Re: AHK WEBPAGE SEARCH
no this is one of the Scripts i have tried
{
Sleep, 5000
Send,^a
Send,^c
ClipWait,2
clip = %clipboard%
Haystack = Status: Dispatched
Needle = Status: Dispatched
IfInString, Haystack, %Needle%
MsgBox, The string was found.
return
else,
Sleep, 1
{
Sleep, 5000
Send,^a
Send,^c
ClipWait,2
clip = %clipboard%
Haystack = Status: Dispatched
Needle = Status: Dispatched
IfInString, Haystack, %Needle%
MsgBox, The string was found.
return
else,
Sleep, 1
- 22 Sep 2017, 13:51
- Forum: Ask for Help (v1)
- Topic: AHK Webpage Search
- Replies: 11
- Views: 2144
AHK Webpage Search
VERY NEW TO SCRIPTING.. Hi I am trying to create a Script to find Words on our 911 Dispatching Site to send a MsgBox when found. I have tried coping to clipboard and searching it but its not working right. I am wanting to search for the words "Status: Dispatched". If found Create MsgBox Stating the ...