Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 pasting into turing run window
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Thuged_Out_G




PostPosted: Thu Sep 28, 2006 9:15 am   Post subject: pasting into turing run window

Is it possible to paste into the run window?
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Thu Sep 28, 2006 11:14 am   Post subject: (No subject)

into a GUI textbox? I don't know, you'd have to try. It's quite possible that this will not work, as Turing doesn't handle Win32 API, and thus should not have access to the clipboard.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
richcash




PostPosted: Thu Sep 28, 2006 3:54 pm   Post subject: (No subject)

I tried it into a GUI textfield, and it works if you use the 'Paste' button on the buttonbar (because you can't right-click).
I wonder how you make your own Paste button?
Thuged_Out_G




PostPosted: Thu Sep 28, 2006 8:17 pm   Post subject: (No subject)

Well, I would rather noe use the paste button on the button bar, or any of the GUI. If there is a functional paste button, there must be a way to code it so it will work with ctrl v?
Tony




PostPosted: Thu Sep 28, 2006 8:46 pm   Post subject: (No subject)

well you can capture Ctrl+V as any other keyboard input, and call a custom function afterwards. Ideally this is where you read the contents from the clipboard and decide what to do with that, but it's not that straight-forward
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
richcash




PostPosted: Thu Sep 28, 2006 9:05 pm   Post subject: (No subject)

Can you create a batch file that creates a text file containing the clipboard's contents (in other words, can batch files read the clipboard). Because then when you're manually created paste button is clicked, you could run the batch file with Sys.Exec and read the newly created text file in order to output the clipboard's contents in Turing. A lot of trouble to go through, and probably impossible, but at least it would work very well. Someone with knowledge on the topic (batch files) would have to verify!
Tony




PostPosted: Thu Sep 28, 2006 9:22 pm   Post subject: (No subject)

just about anything but Turing can read from the clipboard, including *gasp* JavaScript Laughing
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Thuged_Out_G




PostPosted: Fri Sep 29, 2006 6:13 pm   Post subject: (No subject)

What im doing is making an IP lookup tool, i work ISP tech support so it comes in handy. Although it's functionality is severly decreased if pasting is not permitted.
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Fri Sep 29, 2006 8:35 pm   Post subject: (No subject)

I'm pretty sure that there are rules against automated whois queries. And just use one of many online ones. I like http://whois.domaintools.com/
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Thuged_Out_G




PostPosted: Tue Oct 03, 2006 9:46 am   Post subject: (No subject)

Rules against automated whois queries, care to elaborate on that?

All it is doing is opening a connection to http://ws.arin.net/cgi-bin/whois.pl?queryinput=IPHERE

then it searches through the source for the information I need.
Tony




PostPosted: Tue Oct 03, 2006 12:26 pm   Post subject: (No subject)

I just remember seeing some declaimers against using bots, though I guess it might depend on the sevice being used.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 11 Posts ]
Jump to:   


Style:  
Search: