Author |
Message |
Thuged_Out_G
|
Posted: 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
|
|
|
Tony
|
Posted: 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. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
richcash
|
Posted: 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
|
Posted: 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
|
Posted: 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 |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
richcash
|
Posted: 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
|
Posted: Thu Sep 28, 2006 9:22 pm Post subject: (No subject) |
|
|
just about anything but Turing can read from the clipboard, including *gasp* JavaScript |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Thuged_Out_G
|
Posted: 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
|
|
|
Tony
|
|
|
|
|
Thuged_Out_G
|
Posted: 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
|
Posted: 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. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
|