Gamestudio Links
Zorro Links
Newest Posts
FXCM => AVA Trade Plugin???
by Martin_HH. 11/17/26 17:02
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
What are you working on?
by rayp. 11/02/26 13:57
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (AndrewAMD, TipmyPip, Martin_HH, alibaba, 1 invisible), 28,095 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rht, MaliceTheMaker, Haitao_Ren, JimSimons, julienp
19249 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
send key.. #264966
05/09/09 08:07
05/09/09 08:07
Joined: Dec 2008
Posts: 124
bobby_danseco Offline OP
Member
bobby_danseco  Offline OP
Member

Joined: Dec 2008
Posts: 124
hi..

the following code should be terminated by pressing enter key
Code:
...
  inkey(my_input_key);
...


but i don't want to press enter smile i want to click button
is there a way when i click button i can terminated that
by sending the enter key code thru code.

i tried
Code:
str_cpy(my_input_key,str_for_key(temp_key,13));

it didn't work.

thanks..

Re: send key.. [Re: bobby_danseco] #264968
05/09/09 08:14
05/09/09 08:14
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline
Expert
Germanunkol  Offline
Expert

Joined: Jun 2006
Posts: 2,640
Earth
as the button's function, use:
void stop_input()
{
inkey_active = 0;
}

that'll stop the input.


~"I never let school interfere with my education"~
-Mark Twain
Re: send key.. [Re: Germanunkol] #264969
05/09/09 08:20
05/09/09 08:20
Joined: Dec 2008
Posts: 124
bobby_danseco Offline OP
Member
bobby_danseco  Offline OP
Member

Joined: Dec 2008
Posts: 124
thanks a lot.. smile
it works now.. i just inserted that
to my button function..

Re: send key.. [Re: bobby_danseco] #264971
05/09/09 08:36
05/09/09 08:36
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline
Expert
Germanunkol  Offline
Expert

Joined: Jun 2006
Posts: 2,640
Earth
No problem smile
just be careful: this button will also end all other input now when pressed.


~"I never let school interfere with my education"~
-Mark Twain
Re: send key.. [Re: Germanunkol] #265006
05/09/09 14:03
05/09/09 14:03
Joined: Dec 2008
Posts: 124
bobby_danseco Offline OP
Member
bobby_danseco  Offline OP
Member

Joined: Dec 2008
Posts: 124
thanks again for the warning smile ill take note of that....


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1