AutoHotkey Community

It is currently May 26th, 2012, 11:54 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: November 13th, 2009, 4:33 pm 
Quote:
AAA TY 676767 7679T767010267 56564 67675 6767 DT

Stringsplit,tah,clipboard,%A_Space%,


if tah8=DT
{
msgbox,NOWDT
}


Why that code does not work.. what is the problem. the msgbox does not appear.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 13th, 2009, 4:38 pm 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
It works for me (after putting the string on the clipboard of course).
Code:
clipboard = AAA TY 676767 7679T767010267 56564 67675 6767 DT

Stringsplit,tah,clipboard,%A_Space%,


if tah8=DT
{
msgbox,NOWDT
}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 13th, 2009, 4:49 pm 
Allright i have copy the text to clipboard from an excel cell and it contains formulas.May this effect the problem? How can i fix it?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 13th, 2009, 5:00 pm 
Offline

Joined: May 17th, 2007, 12:07 pm
Posts: 1004
Location: Germany - Deutschland
Try:
Code:
clipboard = AAA TY 676767 7679T767010267 56564 67675 6767 DT

Stringsplit,tah,clipboard,%A_Space%%A_TAB%,


if tah8=DT
{
msgbox,NOWDT
}


I think the delimiter is not a Space, perhaps a Tab.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 13th, 2009, 5:12 pm 
Code:
clipboard = AAA TY 676767 7679T767010267 56564 67675 6767 888

Stringsplit,tah,clipboard,%A_Space%,


if tah8=888
{
msgbox,NOWDT
}


Above code does not work too. How can i test if ahk calculate 888?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 13th, 2009, 5:35 pm 
Offline

Joined: May 17th, 2007, 12:07 pm
Posts: 1004
Location: Germany - Deutschland
Code:
Loop, %tah0%
MsgBox % tah%A_INDEX%


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], hyper_, Leef_me, patgenn123, Pulover, RaptorX, rbrtryn, tidbit, XstatyK and 20 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