AutoHotkey Community

It is currently May 26th, 2012, 7:51 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 15 posts ] 
Author Message
PostPosted: May 18th, 2009, 5:26 pm 
You know what AHK needs? A mode where highlighting some text in the forum brings up a 'run!' button next to it, creating and running a corresponding temporary AHK file -- and deleting it once the script is closed!


Why?

1)
people would stop going through the trouble of typing "(-n-o-t- -t-e-s-t-e-d- -b-u-t- -s-h-o-u-l-d- -w-o-r-k-)"
when they can just:
- highlight the code
- click run

and see that it works!

2.
People could check code posted in the forum without going through the trouble of selecting the code - copying the code - minimizing, minimizing, minimizing (until they can see the desktop) - right-clicking - clicking create a new AHK file - opening the new ahk file - pasting what they copied - saving the file - closing the file - double-clicking the file to run it and see what it does - right-clicking the file - clicking delete - confirming delete - opening one window they minimized - opening the other window they minimized - opening the forum window where they wanted to test the code in the first place

when they can just:
- highlight the code
- click run


and see what it does without even leaving the forum!

Who's with me??


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 18th, 2009, 5:37 pm 
Offline

Joined: June 26th, 2006, 6:14 pm
Posts: 1379
Location: USA
there are scripts on the forum if you search

_________________
Image
ʞɔпɟ əɥʇ ʇɐɥʍ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 18th, 2009, 5:43 pm 
Online

Joined: March 27th, 2008, 2:14 pm
Posts: 700
you know what AHK needs???!!!!!!!!

Forum users who take five seconds to make an account and log in.

ahklerner is right. I dont think it's a horrible idea, but making this a built in function of the forums is off the quick&easy-implementation/return scale.

_________________
Scripts - License


Report this post
Top
 Profile  
Reply with quote  
PostPosted: May 18th, 2009, 5:46 pm 
Offline
User avatar

Joined: March 19th, 2008, 12:43 am
Posts: 5480
Location: the tunnel(?=light)
loud and font-tastic Guest wrote:
1) people would stop going through the trouble of typing "(-n-o-t- -t-e-s-t-e-d- -b-u-t- -s-h-o-u-l-d- -w-o-r-k-)"
when they can just:
- highlight the code
- click run
and see that it works!


Not really. Some (if not many) of us aren't running the program(s) a particular user is talking about but we can tell by the code what corrections should make it work properly. Hence why many people qualify their script with "not tested" because, well, we can't test it if we don't have their software to verify it.

loud and font-tastic Guest wrote:
2.People could check code posted in the forum without going through the trouble of selecting the code - copying the code - minimizing, minimizing, minimizing (until they can see the desktop) - right-clicking - clicking create a new AHK file - opening the new ahk file - pasting what they copied - saving the file - closing the file - double-clicking the file to run it and see what it does - right-clicking the file - clicking delete - confirming delete - opening one window they minimized - opening the other window they minimized - opening the forum window where they wanted to test the code in the first place

when they can just:
- highlight the code
- click run

and see what it does without even leaving the forum!


That opens up some rather large opportunities for people to post malicious code in the forum with the forum's "auto-executing" software facilitating its action on your PC (and probably no meaningful way for the end user to stop its execution in time before some damage has been done). Granted, malicious code isn't typically a problem at the forums and most users here are pretty good at sniffing out trouble, but I think it would be a bad idea for the forum to help them on their way. If you want a script that you can use to run code without doing much of your mentioned rigamarole you can always download ACConsole, and maybe it would be a good idea to promote some scripts that have this capability. But I don't think it would be a good idea to host such functionality on the site.

_________________
Image
Try Quick Search for Autohotkey or see the tutorial for newbies.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 18th, 2009, 5:49 pm 
infogulch wrote:
you know what AHK needs???!!!!!!!!

Forum users who take five seconds to make an account and log in.

ahklerner is right. I dont think it's a horrible idea, but making this a built in function of the forums is off the quick&easy-implementation/return scale.


okay I made an acct (opfoo). It's not POSSIBLE to make it a function of the FORUMS, since there's no way a web site could (or should!!!) be able to just create and run an arbitrary script on a user's computer :). Instead, as I said, it should be a mode of AHK. You just start it in that mode and whenever you highlight something a little button comes up that you can click to try to run whatever is highlighted as a script (and delete it once it's done running).


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 18th, 2009, 5:49 pm 
ahklerner wrote:
there are scripts on the forum if you search

what should I search for? I'm not getting this...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 18th, 2009, 5:54 pm 
Offline

Joined: August 2nd, 2008, 12:31 am
Posts: 101
Search Sparrow, it's something DerRaphael has been working on. It could do that. But sinkfaze is right, it does put many opportunities for malicious code.

_________________
Woot.

Please read forum etiquette


Report this post
Top
 Profile  
Reply with quote  
PostPosted: May 18th, 2009, 6:20 pm 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
Anonymous wrote:
2.
People could check code posted in the forum without going through the trouble of selecting the code - copying the code - minimizing, minimizing, minimizing (until they can see the desktop) - right-clicking - clicking create a new AHK file - opening the new ahk file - pasting what they copied - saving the file - closing the file - double-clicking the file to run it and see what it does - right-clicking the file - clicking delete - confirming delete - opening one window they minimized - opening the other window they minimized - opening the forum window where they wanted to test the code in the first place

Create a script to automate this. Done.

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 18th, 2009, 6:28 pm 
Offline
User avatar

Joined: October 7th, 2006, 8:45 am
Posts: 3329
Location: Simi Valley, CA
I posted a script [here] that attempts to run the contents of the clipboard as though it were an AHK script. Whether or not to use it (or use your own) is up to individual preference. My version does have limited detection of potentially malicious code as well as a killswitch and lifespan.

_________________
Ternary (a ? b : c) guide     TSV Table Manipulation Library
Post code inside [code][/code] tags!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 18th, 2009, 7:16 pm 
[VxE] wrote:
I posted a script [here] that attempts to run the contents of the clipboard as though it were an AHK script. Whether or not to use it (or use your own) is up to individual preference. My version does have limited detection of potentially malicious code as well as a killswitch and lifespan.


but why should I trust YOU to program those functions? I want to just trust the writer of AHK to do it...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 18th, 2009, 7:23 pm 
Offline
User avatar

Joined: October 7th, 2006, 8:45 am
Posts: 3329
Location: Simi Valley, CA
Anonymous wrote:
but why should I trust YOU to program those functions? I want to just trust the writer of AHK to do it...


Don't trust me at all :twisted:

My source code contains a gating ritual that will call forth hellspawn from your computer monitor.

_________________
Ternary (a ? b : c) guide     TSV Table Manipulation Library
Post code inside [code][/code] tags!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 18th, 2009, 7:40 pm 
Offline
User avatar

Joined: March 19th, 2008, 12:43 am
Posts: 5480
Location: the tunnel(?=light)
Anonymous wrote:
but why should I trust YOU to program those functions? I want to just trust the writer of AHK to do it...


Who says the actual programmer(s) of AHK are any more trustworthy than anybody else here? Sure they have to put their name on the software but that aside whatever reasons you would have to trust one versus the other are pretty arbitrary.

[VxE] wrote:
My source code contains a gating ritual that will call forth hellspawn from your computer monitor.


That sounds kind of fun, really. :twisted:

_________________
Image
Try Quick Search for Autohotkey or see the tutorial for newbies.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 19th, 2009, 1:08 am 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
opfoo wrote:
It's not POSSIBLE to make it a function of the FORUMS, since there's no way a web site could (or should!!!) be able to just create and run an arbitrary script on a user's computer :).
oh now that's funny since i make a profession of doing just that

_________________
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: May 19th, 2009, 9:56 am 
I thought about that challenge the time I wrote the [FSC - Forum Script Copier], but wasn't really interested to 'auto-start' uninspected scripts for the above mentioned reason(s).


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 31st, 2010, 5:40 pm 
Offline

Joined: March 10th, 2008, 12:55 am
Posts: 1907
Location: Minnesota, USA
1) I copy code and press a hotkey and then the code is created in a new file and then ran. simple.

2) you have a very bad system. let me fix it a bit for you:
Quote:
selecting the code - copying the code - minimizing, minimizing, minimizing (until they can see the desktop) - right-clicking - clicking create a new AHK file - opening the new ahk file - pasting what they copied - saving the file - closing the file - double-clicking the file to run it and see what it does - right-clicking the file - clicking delete - confirming delete - opening one window they minimized - opening the other window they minimized - opening the forum window where they wanted to test the code in the first place

Things in red could be removed easily with built-in windows hotkeys and/or buttons. Such as: Minimize all, restore all, show desktop, Delete Key, Enter key. and you DON'T need to close your editor to run ahk code... you can leave it open.

How about code with external resources, like pictures and dll's and libraries and whatever? how would it know what and where to get them?

_________________
rawr. be very afraid
*poke*
Note: My name is all lowercase for a reason.
"I think Bigfoot is blurry, that's the problem. It's not the photographer's fault, Bigfoot is blurry. So there's a large, out-of-focus monster roaming the countryside."


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: 0x150||ISO, Azevedo, BrandonHotkey, perlsmith and 70 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