AutoHotkey Community

It is currently May 27th, 2012, 7:13 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Most Creative use of AHK
PostPosted: March 22nd, 2006, 4:24 am 
Offline

Joined: February 13th, 2006, 10:40 pm
Posts: 389
Location: Utah
Aight heres a topic for you to post the Most Creative Thing you have done with AHK.

I'll, go first:

Aight, so at my school they have DeepFreeze. Which makes it so the computer reverts to a 'SnapShot' (VMware term) of the computer each time it turns off. So no-one can install things. Anyways, I wanted to ask a girl out to Prom. So I asked the teacher to disable DeepFreeze on her assigned seat. I then added a script to startup that would check if it was the right user, if it was then display a gui with a picture (I used FileInstall) of a rose that said "%HerName%, Will you go to Prom with me. -%MyName%" and a custom icon. Then after words, delete those files, since they were now in the startup folder. Anyways, I have yet to get my answer, but I beleive it to be yes!

Heres the code for anyone who cares. (no you cant have the picture, and the names are now variables)

Code:
#singleinstance force
#notrayicon
FileInstall, rose.jpg, rose.jpg
FileInstall, littlerose.ico, littlerose.ico
if A_username not in %MyUserName(for testing)%,%HerUserName%
{
   filedelete, rose.jpg
   filedelete, littlerose.ico
   ExitApp
}
Menu, tray, icon, littlerose.ico
gui, margin, 0,0
gui, add, pic, ,rose.jpg
gui, show,,Will You...
return

guiclose:
filedelete, rose.jpg
filedelete, littlerose.ico
ExitApp


I realize this isnt the neatest code, but it got the job done perfectly!!!

Thank you Chris!!!

_________________
Image
"Power can be given overnight, but responsibility must be taught. Long years go into its making."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 22nd, 2006, 8:58 am 
@ Veovis
as you are from Utah I guess the follow up to "Will you ..." isn't something explicit, right ? :wink: Why I have the idea that replacing the name with a var has something to do with the array of names you didn't show us :shock::lol:

* u.o.m.s. = upholder of moral standards


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 22nd, 2006, 5:49 pm 
Offline

Joined: February 13th, 2006, 10:40 pm
Posts: 389
Location: Utah
Actually the title was probably not noticed by her as the picture took up most of the screen. And the title was "Will you..." (thats the whole thing) Anything was better than rose.ahk with a green H next to it. And as for my array, I turned 16 two months ago tommorow, and thus have only about 5 names. (and an empty wallet :lol: )

_________________
Image
"Power can be given overnight, but responsibility must be taught. Long years go into its making."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 22nd, 2006, 9:43 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
It is probably too late, but I'd have added a few buttons, like YES, OK, SURE, WHY NOT?, which sent you a confirmation email. You don't want her to come to you and say these in words, since she cannot be sure if someone just plays a prank on her.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 22nd, 2006, 10:48 pm 
Offline

Joined: February 13th, 2006, 10:40 pm
Posts: 389
Location: Utah
Actually, the seating chart has me one row behind and one seat to the right. (we are in the same period) and so I got to see her reaction, which is why I stated earlier "I beleive [the answer] to be yes"

And the way it works here is that you ask in a creative manner (if you think mine is dumb you should see what other guys do) and then the girl answers in a creative way. It's NOT just a "Hey, you doing anything friday" "No" "Wanna go out?" thing.

I thought about doing buttons, but I decided to leave it to her to answer.

_________________
Image
"Power can be given overnight, but responsibility must be taught. Long years go into its making."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 6th, 2006, 1:39 am 
Offline

Joined: February 12th, 2006, 11:55 pm
Posts: 16
Well, what did she say?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 7th, 2006, 4:34 pm 
Offline

Joined: February 13th, 2006, 10:40 pm
Posts: 389
Location: Utah
She said Yes, and we had a great time.

_________________
Image
"Power can be given overnight, but responsibility must be taught. Long years go into its making."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 7th, 2006, 5:27 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
...but you'r not gonna tell us about her creative way to answer?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 7th, 2006, 10:04 pm 
... might be caused by one of those obscure state laws to prevent kissing in public :wink:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 23rd, 2006, 3:50 am 
Offline

Joined: May 16th, 2006, 8:21 pm
Posts: 58
I wanna know how she said yes..


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher, thor and 4 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