+ Reply to Thread
Results 1 to 5 of 5

Excel as Macro software for gaming

  1. #1
    Registered User
    Join Date
    09-03-2014
    Location
    Michigan, USA
    MS-Off Ver
    2007
    Posts
    6

    Excel as Macro software for gaming

    I am looking to use excel as a macro program for an online game that I play. I would like to be able to export keystrokes from excel to the game. I am just having troubles learning how.

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Excel as Macro software for gaming

    Hi hustlerburns,

    The following link is a tutorial for creating a simple game using Excel VBA. Chapter 6 addresses how the game identifies keystrokes.

    See http://www.wiseowl.co.uk/blog/s398/f...-vba-index.htm

    Lewis

  3. #3
    Registered User
    Join Date
    09-03-2014
    Location
    Michigan, USA
    MS-Off Ver
    2007
    Posts
    6

    Re: Excel as Macro software for gaming

    Thanks for the game link. But I want to use excel to send keystrokes to a game, program, whatever. Not to use excel as a game.

    If I have "Build" in a cell in excel and create a macro link to export keystrokes to a game that spell out "build" and then press enter.

  4. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Excel as Macro software for gaming

    To send text to another window is not trivial and may require a great deal of programming skill.

    You may be able to do what you want with 'SendKeys'. SendKeys is not always reliable, and may not be possible with some versions of Windows unless you turn UAC (User Account Control) off which is not recommended.

    See post #5 in the following thread for an example using Notepad: http://www.mrexcel.com/forum/excel-q...ing-focus.html

    If SendKeys doesn't work there is a similar low level routine called keybd_event(). See the following for a Notepad example: http://www.vbcode.com/asp/showsn.asp?theID=3536

    Sorry I couldn't be of more help.

    Lewis

  5. #5
    Registered User
    Join Date
    09-03-2014
    Location
    Michigan, USA
    MS-Off Ver
    2007
    Posts
    6

    Re: Excel as Macro software for gaming

    I thought this was going to be simple. But thanks for the links and the help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 02-23-2015, 03:07 PM
  2. Excel for Remote Gaming
    By leoth in forum Excel General
    Replies: 0
    Last Post: 01-31-2014, 02:58 PM
  3. Gaming Macro
    By markrennolds in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-20-2013, 01:41 PM
  4. create macro in excel to move my iphone notes to android software
    By tceg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-29-2013, 05:04 PM
  5. Is it possible for excel macro to recognize the hotkey of other software?
    By deldes29 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-07-2009, 01:04 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1