AutoHotkey Community

It is currently May 27th, 2012, 12:28 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 29 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: January 28th, 2009, 8:59 pm 
Offline

Joined: March 19th, 2006, 5:52 am
Posts: 419
You can use GuiControl to set a controls text, instead of Send. I clicked on a different window while the boss was talking and everything went screwy.

If you really like the gradual display of letters you get from Send, you could right a function to progressively add each letter.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2009, 1:40 am 
Offline

Joined: January 29th, 2009, 1:03 am
Posts: 41
Location: Australia
Tseik wrote:
Thanks dudes for the kind words.. :D it boost me up to do more!

What u all think, should it be only comic or also a playable game?

Its great how you mixed them both and its great!
You should keep up the good work and hopefully we see more of this MightyTank..


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2009, 6:01 am 
Offline

Joined: October 9th, 2008, 6:04 am
Posts: 180
Location: Finland
@TheIrishThug
I`ll make it better.

@Reynoldz
I think i use both also next time. Dialogs are fun to do.. :D
It`ll take a bit longer this time before it`ll be released, but i make a trailer before that.. :shock: 8)

_________________
was i wrong, it makes me a very sad panda!


Report this post
Top
 Profile  
Reply with quote  
 Post subject: insane tank
PostPosted: January 29th, 2009, 1:12 pm 
Offline

Joined: January 14th, 2009, 11:01 am
Posts: 2
Hahaha! Tseik you just made my day. The dialogue hit the spot, especially the boss's Darth Vader move..."I am your father." LOL.

The game would make a great popup though.

:D


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: insane tank
PostPosted: January 29th, 2009, 1:22 pm 
Offline

Joined: October 9th, 2008, 6:04 am
Posts: 180
Location: Finland
darthB wrote:
Hahaha! Tseik you just made my day. The dialogue hit the spot, especially the boss's Darth Vader move..."I am your father." LOL.

The game would make a great popup though.

:D


Glad you liked it.. :)

_________________
was i wrong, it makes me a very sad panda!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2009, 12:43 am 
Offline

Joined: January 29th, 2009, 1:03 am
Posts: 41
Location: Australia
lol make a trailer? thats going to good to see. :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 1st, 2009, 5:36 am 
Offline

Joined: January 12th, 2008, 7:45 pm
Posts: 131
Nice one, sir.

But shouldn't you stick to GDI+ and more graphics? the fighting game screenshot i previewed on the General Discussion topic, was able to render 200k 80x80 characters rendered per sec on a Nvidia 8600gt (Damn it, one of the reasons I dropped the game was because I have a ATi GPU, and apparently ATi has dropped proper support for 2D rendering, as I would get 40k even though my GPU is > than that 86kgtGPU, and applying the masking made it only reach 6k, so I ran it without hardware acceleration and I reached 20k, but ah well, still AHK was a reason I dropped it for...).
I doubt that the GUI will be able to keep up with that...

Oh, skip dialog button would be kewl too...

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 1st, 2009, 2:33 pm 
Offline

Joined: October 9th, 2008, 6:04 am
Posts: 180
Location: Finland
Ice_Tea wrote:
Nice one, sir.

But shouldn't you stick to GDI+ and more graphics? the fighting game screenshot i previewed on the General Discussion topic, was able to render 200k 80x80 characters rendered per sec on a Nvidia 8600gt (Damn it, one of the reasons I dropped the game was because I have a ATi GPU, and apparently ATi has dropped proper support for 2D rendering, as I would get 40k even though my GPU is > than that 86kgtGPU, and applying the masking made it only reach 6k, so I ran it without hardware acceleration and I reached 20k, but ah well, still AHK was a reason I dropped it for...).
I doubt that the GUI will be able to keep up with that...

Oh, skip dialog button would be kewl too...


Thanks.

Whole idea is that there are no other graphics that what ahk gui can provide. But maybe it could be for other project to make some nice graphics.

Yes, had same thoughts, i`ll add skipbutton to my next tank game.

_________________
was i wrong, it makes me a very sad panda!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 1st, 2009, 5:21 pm 
Offline

Joined: March 27th, 2008, 2:14 pm
Posts: 700
haha, that's really neat. :)

If you want to make it do multiple things at the same time, use labels and SetTimer instead of loops. And, yes, GuiControl would probably be better than send for reliability. I think it should also have an indicator to tell you when it's ready to fire again if you, uh, overshoot. xD

_________________
Scripts - License


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 1st, 2009, 6:07 pm 
Offline

Joined: October 9th, 2008, 6:04 am
Posts: 180
Location: Finland
infogulch wrote:
haha, that's really neat. :)

If you want to make it do multiple things at the same time, use labels and SetTimer instead of loops. And, yes, GuiControl would probably be better than send for reliability. I think it should also have an indicator to tell you when it's ready to fire again if you, uh, overshoot. xD


:D

I cant use guicontrol because its too fast, i used it before, setkeydelay doesnt work on it.

Fire indicator sounds good, have to think about it. 8)

I have doubts about timers and labels, if some timer starts it stops another.

_________________
was i wrong, it makes me a very sad panda!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 1st, 2009, 6:37 pm 
Offline

Joined: March 27th, 2008, 2:14 pm
Posts: 700
Tseik wrote:
I cant use guicontrol because its too fast, i used it before, setkeydelay doesnt work on it.
Use GuiControl in a loop with sleep and SubStr().

e.g.
Code:
GuiDelaySend(text, object, delay = 10)
{
    Global
    loop % StrLen(text)
    {
        GuiControl, , %object%, % SubStr(text, 1, A_Index)
        If delay
            Sleep delay
    }
} ;untested concept, use however you like



Tseik wrote:
I have doubts about timers and labels, if some timer starts it stops another.
You have to keep the code in the timers short, with no long loops and no sleeps. Use the timer interval in place of "sleep" and optimize your code to run as little as possible in each label. AutoHotkey runs quickly, so you shouldn't have any trouble with a couple timers going at the same time. Even if one does interrupt another, once it finishes, it goes back to the first one and finishes that one.

:)

_________________
Scripts - License


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 2nd, 2009, 5:36 am 
Offline

Joined: October 9th, 2008, 6:04 am
Posts: 180
Location: Finland
@infogulch

i made a similar function with send, but yours work great, only minus is that blinkingpipethingie doesnt follow the text, it stays front of the first letter. :D

_________________
was i wrong, it makes me a very sad panda!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 2nd, 2009, 3:10 pm 
Offline

Joined: March 27th, 2008, 2:14 pm
Posts: 700
you can build that in as well. you'll have to use controlsend in the loop (send "^{End}"). do guicontrolget, hwnd, hwnd, %object% before the loop.

hmm, for that matter, you could just use controlsend in a parsing loop. I would still recommend you use the hwnd of the control, it will be faster and more reliable.

_________________
Scripts - License


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2009, 8:51 am 
Offline

Joined: October 9th, 2008, 6:04 am
Posts: 180
Location: Finland
@infogulch
Alrighty then.. i`ll do it, send isnt good.


Now a story is almost done for the next MightyTank.

Name shall be:
MightyTank - The Beginning

It still take some time before i release it... next week maybe...

_________________
was i wrong, it makes me a very sad panda!


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bon, SKAN, Yahoo [Bot] and 6 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