How to paste number to this box? Please help...

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
RaisetheBass
Posts: 16
Joined: 08 Jul 2018, 06:17

How to paste number to this box? Please help...

10 Jul 2018, 08:47

inside have no element name and id...please help...thankss




Code: Select all

<INPUT onbeforepaste=FormRowSet_AllField_OnBeforePaste(this) style="TEXT-TRANSFORM: uppercase; WIDTH: 150px; DISPLAY: inline; HEIGHT: 20px" onkeydown=FormRowSet_AllField_OnKeyDown(this) class=dbform_inputfield_style title="" onkeypress=FormRowSet_AllField_OnKeyPress(this) onkeyup=FormRowSet_AllField_OnKeyUp(this) maxLength=30 caretRange="null">
Last edited by RaisetheBass on 15 Jul 2018, 07:50, edited 1 time in total.
A_AhkUser
Posts: 1147
Joined: 06 Mar 2017, 16:18
Location: France
Contact:

Re: How to paste number to this box? Please help...

10 Jul 2018, 09:13

Hi RaiseTheBass,

Classes can be used alternatively to identify an element; the getElementsByClassName method returns a collection of all elements in the document with the specified class name. It returns them as a nodelist object, something similar to an array:

javascript:

Code: Select all

document.getElementsByClassName("dbform_inputfield_style")[0]
[EDIT]
and to actually set the input's content:

Code: Select all

; the following assumes your ActiveX object is stored in pwb
element := pwb.document.getElementsByClassName("dbform_inputfield_style")[0]
element.value := "test"
my scripts
RaisetheBass
Posts: 16
Joined: 08 Jul 2018, 06:17

Re: How to paste number to this box? Please help...

12 Jul 2018, 18:56

Thanks for reply... :D :D :D :dance:

i have tried but still not working...its inside the iframe..do i need to access the iframe or the div ID first?? sorry for my bad english :? :crazy:

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot] and 88 guests