AutoHotkey Community

It is currently May 27th, 2012, 10:26 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: September 2nd, 2007, 6:58 pm 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2545
Very Nice :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 2nd, 2007, 11:24 pm 
Offline

Joined: September 9th, 2006, 9:44 pm
Posts: 13
I took your code and played with it, it works great, and I added this:

I took out
Code:
pc_difficulty = 20          ; enter 10 for hard, 20 middle, 30 easy


And added to the beginning:
Code:
Gui, Add, Text,, F1 for help.`nLeft Mouseclick to start the ball`nP for Pause`nCtrl+x for exit`nS to toggle sound on/off
Gui, Add, Text,, Choose your difficulty:
Gui, Add, Button, gBeg w350 h25, Beginner
Gui, Add, Button, gInt w350 h25, Intermediate
Gui, Add, Button, gHard w350 h25, Hard
Gui, Add, Button, gPro w350 h25, Pro
Gui, Add, Button, gExit w75 h20, Exit
Gui, Show,, Ping Pong
Sleep 600000

Beg:
pc_difficulty = 30
Gui, Destroy
Gosub, Play
return

Int:
pc_difficulty = 20
Gui, Destroy
Gosub, Play
return

Hard:
pc_difficulty = 10
Gui, Destroy
Gosub, play
return

Pro:
pc_difficulty = 1
Gui, Destroy
Gosub, Play
return

Exit:
exitapp
return

Play:


Is this any good? I am not good with AHK, but am trying to learn! :)

_________________
My forums:

http://crazyparty.18.forumer.com
http://wierdinfo.7.forumer.com
http://50megstech.9.forumer.com


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 3rd, 2007, 10:59 am 
Offline

Joined: August 31st, 2007, 8:22 pm
Posts: 29
nice idea, i think i will add a ingame config for those which cant change the code.
at first i would choose another gui window for the config, i think the added buttons could interfere with my normal gui
Quote:
Sleep 600000

i think this is not necessary because the game starts not unitil you pressed any button
Quote:
Pro:
pc_difficulty = 1

unfortunately the timer frequency is limited to 10 ms, anything below 10ms will result in ~10ms

nevertheless i will add a little ingame config :)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: XX0 and 22 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