It is currently Fri Sep 10, 2010 9:46 am


Welcome to Mango12!


Mango12 is a programming orientated community that primarily focuses on creating bots, macros, and other such applications to make things on the web easier; from things like simulating game play to submitting web forms. For more info, Read the FAQ or Join the IRC.

All times are UTC



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Sending keystroke to flash object?
PostPosted: Fri Jul 02, 2010 5:23 am 
Offline
Member

Joined: Thu Aug 14, 2008 3:20 am
Posts: 87
Given: 11 thanks
Received: 0 thanks
Known Programming Languages: Java PHP Pascal
I have been developing on a side project for awhile now and I am honestly stumped on this. How do you send a keystroke to a flash object.

I have tried firing the "onkeypress" event on the flash object, but this simply would not work.

Can someone enlighten me please?


Top
 Profile E-mail  
 
 Post subject: Re: Sending keystroke to flash object?
PostPosted: Mon Jul 05, 2010 11:23 pm 
Offline
Forum Elder
User avatar

Joined: Thu Aug 28, 2008 3:58 am
Posts: 326
Location: Wayne, NE
Given: 5 thanks
Received: 1 thanks
Known Programming Languages: C#, C++, VB, JAVA, COBOL
Well if you find the handle of the object you can send keys and mouse clicks to that handle. Check this post: http://www.mango12.com/viewtopic.php?f=54&t=10370

You didn't mention what language you were using, but I hope that helps.


Top
 Profile E-mail  
 
 Post subject: Re: Sending keystroke to flash object?
PostPosted: Tue Jul 06, 2010 8:21 pm 
Offline
Member

Joined: Thu Aug 14, 2008 3:20 am
Posts: 87
Given: 11 thanks
Received: 0 thanks
Known Programming Languages: Java PHP Pascal
I'm using Python with Win32Com. I have an instance of Internet Explorer created and I then locate the object element the flash game is stored in. I can then call methods on that element.


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot 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:
Jump to:  
cron
Powered by phpBB © 2007 phpBB Group
xand 2 for phpBB3 by Thomas Hoornstra and Shadow_One reklama