AutoHotkey Community

It is currently May 27th, 2012, 5:29 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: March 11th, 2010, 11:52 pm 
Offline

Joined: April 20th, 2009, 1:10 pm
Posts: 817
Location: North Dakota, USA
Hello. I'm using iWeb_SetDomObj to fill in a field on a web page. The information is a dollar amount coming from a variable. Here is a snippet of the code...
Code:
ORTOT = %clipboard%
;
;
;
iWeb_setDomObj(pwb,"txttotalamount", ORTOT )
;
;
;


Now, This works, but the iWeb does not like commas in the dollar amount. I have tested this and have come to that conclusion. When my clipboard contains an amount without commas, it will fill the field correctly 100% of the time. Any ideas as to what is going on here? Thanks!

_________________
-Jeremiah


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 12th, 2010, 12:19 am 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
Code:
StringReplace,ORTOT ,ORTOT ,`,,,,all
do stinking stuff #@$%^&*() i forgot i have to do some crazy things to get this to display right

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Last edited by tank on March 12th, 2010, 6:19 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 12th, 2010, 4:25 am 
Offline

Joined: April 20th, 2009, 1:10 pm
Posts: 817
Location: North Dakota, USA
Great thanks! Though, why so many commas?

_________________
-Jeremiah


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 12th, 2010, 3:32 pm 
Offline

Joined: April 20th, 2009, 1:10 pm
Posts: 817
Location: North Dakota, USA
Actually, I spoke too soon. I need the commas in the string. The are present until it inputs it into the web app. Any idea as to why?

_________________
-Jeremiah


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 12th, 2010, 6:19 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
uts an html entity and i forgot i had to go thru extra effor tot get it to appear correctly within the forum i have made correction above

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 12th, 2010, 8:02 pm 
Offline

Joined: April 20th, 2009, 1:10 pm
Posts: 817
Location: North Dakota, USA
I think either it didn't display correctly again, or I might not be using it correctly. I've been using an example number of "$1,000,000.00" -- This number is always getting put into the field as "$1" When I applied your first stringreplace line, it worked, only the commas were missing but the period was there. Your latest example was doing just the "$1" amount again. Sorry to keep coming back with this, but I just want it to work and I can't figure it out. I've put various msgboxes in my code to check the variable, and the commas and periods exist all the way up to when it actually ueses iweb to put in the variable into the field. Any other thoughts?

_________________
-Jeremiah


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 12th, 2010, 9:11 pm 
Offline

Joined: April 20th, 2009, 1:10 pm
Posts: 817
Location: North Dakota, USA
Here's what I ended up doing. Not sure if it's a desired method, but it works. :?

Code:
Clipboard = %ORTOT%
COM_Invoke(pwb, "document.all.txttotalamount.focus")
Send, ^v


Thanks for the replies.

_________________
-Jeremiah


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], dra, HotkeyStick, rbrtryn, Yahoo [Bot] and 74 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group