AutoHotkey Community

It is currently May 27th, 2012, 10:52 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: October 26th, 2006, 5:16 pm 
Offline

Joined: February 24th, 2006, 12:56 am
Posts: 172
trying to display data from stock market..idea is nothing that is original..download web page and than search for a string..that works fine but why traytip isnt showing?? i used it numerous times before but this time it doesnt work..thanx in a advance.


Code:
^F12::
URLDownloadToFile, http://81.93.74.18/berzanova/popisAkcija.aspx?trziste=13&pocinjeSa=e, H:\projects\berza\app\temp.txt
TrayTip DOWNLOADING,Done!
sleep 100

searchString=ELEKTROKRAJINA

Loop, read, H:\projects\berza\app\temp.txt
{
 IfInString, A_LoopReadLine, %searchString%
 {
   MsgBox, The string was found.
   MsgBox,%A_LoopReadLine%
   
   string=%A_LoopReadLine%
  StringRight, currentPrice, string, 18 ;
  StringTrimRight,currentPrice,currentPrice,12
   MsgBox, %currentPrice%
   TrayTip,%currentPrice%
   return
   }
}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 26th, 2006, 5:34 pm 
Offline

Joined: January 30th, 2006, 2:53 pm
Posts: 51
It appears that the reason why is that a traytip will not appear without text, even if a title is given (I've personally never run into this before). I played around with your script and once I added a second comma before the %currentprice%, it came up like a charm.

Hope this helps,
ehagood


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 26th, 2006, 9:03 pm 
Offline

Joined: February 24th, 2006, 12:56 am
Posts: 172
how the hell i missed that one?! :oops:
tchanks mate!


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Google Feedfetcher, HotkeyStick and 26 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