Search found 122 matches

by ameyrick
21 Mar 2021, 20:28
Forum: Scripts and Functions (v1)
Topic: EXAMPLE: Edge & Chrome automation using chrome.ahk
Replies: 0
Views: 3665

EXAMPLE: Edge & Chrome automation using chrome.ahk

Hi all, Big shout out to Joe Glines, Jaki Sztuk & GeekDude for all their shared information. I just wanted to share my edge/chrome browser automation efforts. This script relies on a slightly tweaked chrome.ahk lib theres a video here: https://www.youtube.com/watch?v=XdY0H8voHg0 My script opens a wb...
by ameyrick
10 Mar 2021, 17:32
Forum: Gaming Help (v1)
Topic: 'Send' Commands Do Not Work At All in 'Total War: Warhammer II'
Replies: 1
Views: 614

Re: 'Send' Commands Do Not Work At All in 'Total War: Warhammer II'

Have you tried elevating the script to run as admin? I had to do this for FFXIV or the game wouldnt accept input from ControlSend. Run as Administrator https://www.autohotkey.com/docs/commands/Run.htm#RunAs How to Make AHK Work in Most Games - The Basics https://www.autohotkey.com/boards/viewtopic.p...
by ameyrick
07 Mar 2021, 10:40
Forum: Ask for Help (v1)
Topic: Problem converting BIN File to CSV Topic is solved
Replies: 6
Views: 491

Re: Problem converting BIN File to CSV Topic is solved

Hi MrLogfile, I had a stab at this script & was unable to get it to replicate your output from the files you provided. I cleaned up the code spacing & added a few lines to help debug the script. Just after building the GUI I noticed the variable Subpat1 returns empty. From what I could work out, the...
by ameyrick
21 Apr 2018, 19:23
Forum: Scripts and Functions (v1)
Topic: Thunderball frequency checker [CSV & Arrays]
Replies: 0
Views: 867

Thunderball frequency checker [CSV & Arrays]

Hi all, Thought I'd brush up on some AHK. Browsing the forum & playing with CSV data and arrays, I came up with a thunderball frequency checker. Just thought I'd share, If it helps others, Great! Any comments or advice welcome. Thanks! #NoEnv ; Recommended for performance and compatibility with futu...
by ameyrick
05 Apr 2017, 19:28
Forum: Ask for Help (v1)
Topic: Looking for a Cut and Paste solutuon Topic is solved
Replies: 34
Views: 4910

Re: Looking for a Cut and Paste solutuon Topic is solved

I downloaded the cre2004.exe POS software just to help and this is what I have come up with... ;This script has to be run as admin! ;vars cre_exe := "CRE2004.exe" window_class := "WindowsForms10.Window.8.app.0.141b42a_r9_ad1" barcode_edit_box := "WindowsForms10.EDIT.app.0.141b42a_r9_ad11" beer_edit_...
by ameyrick
04 Apr 2017, 18:04
Forum: Ask for Help (v1)
Topic: Looking for a Cut and Paste solutuon Topic is solved
Replies: 34
Views: 4910

Re: Looking for a Cut and Paste solutuon Topic is solved

Sounds like the {Delete} key is a hotkey on the POS system to remove the last item.
Have you tried using {Backspace} ?
Failing that.. Maybe for a messy hack you could overwrite the previous value [15.00] with a meaning full symbol £
by ameyrick
04 Apr 2017, 16:52
Forum: Ask for Help (v1)
Topic: Can't create ahk file
Replies: 3
Views: 3173

Re: Can't create ahk file

When saving from notepad remember to change the file type to "All Files (*.*)" Before writing your file name: *.ahk
save as.png
save as.png (11.5 KiB) Viewed 3167 times
by ameyrick
05 Oct 2016, 18:24
Forum: Ask for Help (v1)
Topic: Finding a control that is created after IE is loaded with COM
Replies: 1
Views: 1441

Re: Finding a control that is created after IE is loaded with COM

GetElementsByTagName() http://www.w3schools.com/jsref/met_docu ... agname.asp

Something like this may work:

Code: Select all

x := wb.document.GetElementsByTagName("Div")
loop, % x.Length
{
	if( x[(a_index-1)].name == "export_queue" ){
		x[(a_index-1)].click()
		break
	}
}
by ameyrick
22 Jul 2016, 17:28
Forum: Ask for Help (v1)
Topic: How to use AHK to make computer sleep, wake, run script and repeat
Replies: 4
Views: 3433

Re: How to use AHK to make computer sleep, wake, run script and repeat

Task scheduler can wake a computer from sleep. If needed to be written within the script, you could use the "Run" command to create a scheduled task via command line - https://technet.microsoft.com/en-us/library/cc738335(v=ws.10).aspx Or you could install an advanced task scheduler. something like t...
by ameyrick
15 Jul 2016, 17:11
Forum: Ask for Help (v1)
Topic: InputBox updates only when typing values in input box
Replies: 10
Views: 2678

Re: InputBox updates only when typing values in input box

OnChange Javascript: http://stackoverflow.com/a/2856602 if ("createEvent" in document) { var evt = document.createEvent("HTMLEvents"); evt.initEvent("change", false, true); element.dispatchEvent(evt); } else element.fireEvent("onchange"); ahk, Possibly could be translated better: try evt := Frame.do...
by ameyrick
14 Jul 2016, 18:59
Forum: Ask for Help (v1)
Topic: InputBox updates only when typing values in input box
Replies: 10
Views: 2678

Re: InputBox updates only when typing values in input box

Similar to what you were trying but sends each key via sendInput instead of a string fail_counter := 0 update_amount: try Frame.document.getElementById("amount").value := "" Sleep, 200 loop, parse, TSize { key_Code := asc( A_LoopField ) try Frame.document.getElementById("amount").focus() SendInput, ...
by ameyrick
07 Jul 2016, 18:47
Forum: Ask for Help (v1)
Topic: How can I execute this code?
Replies: 15
Views: 3717

Re: How can I execute this code?

So from testing, everything get's stuck in a loop and won't exit. This didn't seem to detect also. /head-to-desk While busy.getattribute("data-c-id") = "busy-overlay" sleep, 10 Just to check. Which obj were you searching for: if ( div_array[a_index-1].getattribute("data-c-id") = "busy-indicator" ) ...
by ameyrick
07 Jul 2016, 17:39
Forum: Ask for Help (v1)
Topic: How can I execute this code?
Replies: 15
Views: 3717

Re: How can I execute this code?

try connecting to the data-c-id="busy-overlay" instead or play around with different events http://www.w3schools.com/tags/ref_eventattributes.asp div_array := wb.document.getElementsByTagName("div") ;msgbox, % div_array.length loop, % div_array.length { ;msgbox, % div_array[a_index-1].getattribute("...
by ameyrick
07 Jul 2016, 16:21
Forum: Ask for Help (v1)
Topic: How can I execute this code?
Replies: 15
Views: 3717

Re: How can I execute this code?

Can try to connect to the "busy-indicator" object events, maybe OnChange something like this: title := "Sales Application" wb := IEGet(title) ;connects to open window by title wb.document.getElementByID("quoteDetail_copyquote").click() ;while wb.readyState != 4 ; Sleep, 10 loading := true ;flag var ...
by ameyrick
07 Jul 2016, 14:45
Forum: Ask for Help (v1)
Topic: How can I execute this code?
Replies: 15
Views: 3717

Re: How can I execute this code?

Whats the page <title> of your web application? title := "My web app title" ;url := "http://192.168.0.1" wb := IEGet(title) ;connects to open window by title /* if !wb wb := ComObjCreate("InternetExplorer.Application") ; opens new window wb.visible := true wb.Navigate(url) */ while wb.readyState != ...
by ameyrick
07 Jul 2016, 13:15
Forum: Ask for Help (v1)
Topic: How can I execute this code?
Replies: 15
Views: 3717

Re: How can I execute this code?

https://autohotkey.com/board/topic/47052-basic-webpage-controls-with-javascript-com-tutorial/ wb := ComObjCreate("InternetExplorer.Application") wb.visible := true wb.Navigate("work application webpage") while wb.readyState != 4 or wb.busy Sleep, 10 wb.document.getElementByID("quoteDetail_copyquote"...
by ameyrick
07 Jul 2016, 11:32
Forum: Ask for Help (v1)
Topic: Selecting dropdown box with div's
Replies: 5
Views: 1820

Re: Selecting dropdown box with div's

Done some testing and this works for me: x := wb.document.GetElementByID("values") div_array := x.getElementsByTagName("div") ;msgbox, % div_array.length loop, % div_array.length { ;msgbox, % div_array[a_index-1].getattribute("name") if ( div_array[a_index-1].getattribute("name") = "FRBEG" ){ div_ar...

Go to advanced search