NexusFi: Find Your Edge


Home Menu

 





looking for C# code for a keyboard command simulation


Discussion in NinjaTrader

Updated
    1. trending_up 4,155 views
    2. thumb_up 3 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

hi,

i am working on some button-stuff and like to trigger a keyboard command with a condition in my indiactor
(a simulation of pressing the letter "A" on the keyboard in example)

it looks like this

 
Code
                            
if ( this is happening )


{
// do something here
code should send a simulation of pressing "A" on the keyboard

any ideas how this code has to look ?
i think it should be easy / predefined yet but i dont find the right piece.

thanks for input
-

max-td
Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
How to plot a custom icon for crossover
NinjaTrader
MC Advanced Simulated Trading.
MultiCharts
Elite Trader Funding, Avoid?
Funded Trading Evaluation Firms
Brendt Skorupinsky
Trading Reviews and Vendors
Radarscreen
TradeStation
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
ApexTraderFunding.com experience and review
84 thanks
What is Markets Chat (markets.chat) real-time trading ro …
53 thanks
HumbleTraders next chapter
39 thanks
1 Minute Man
22 thanks
Tao te Trade: way of the WLD
17 thanks
  #3 (permalink)
 gomi 
Paris
Legendary Market Wizard
 
Experience: None
Platform: NinjaTrader
Posts: 1,270 since Oct 2009
Thanks Given: 282
Thanks Received: 4,505


I have used something like SendKeys.Send("{F5}");

Reply With Quote
Thanked by:
  #4 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

Works

thanks !

the results for playing and further developement are comming soon

max-td
Started this thread Reply With Quote




Last Updated on December 29, 2010


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Sitemap - Downloads - Top
no new posts