+ Reply to Thread
Results 1 to 2 of 2

Thread: Adding a digit

  1. #1
    OD_
    Guest

    Adding a digit

    Hey i am useing sendkeys to do something and i have it looping but i cant loop the same word cuz it aready exist so i need to add a number to the end like this


    (heres my code so far)
    Code:
    sendkeys(PChar('{f10}'+'{right 1}'+'{down 2}'+'{enter}' + (Edit2.text) + '{Tab 6}' + ' ' + '{Tab 4}' + '{enter}'),false);
    This part needs to add a number to the end of whatever has been typed in Edit1

    Code:
    (Edit2.text)
    For example say i type Hi in edit1 and it is gonna loop 4 times i need it to do something like this

    Hi
    HI_1
    HI_3
    HI_4

  2. #2
    Chewbacca
    Guest
    Code:
    var i:integer;
    begin
    sendkeys(PChar('{f10}'+'{right 1}'+'{down 2}'+'{enter}' + (Edit2.text)+ '{Tab 6}' + ' ' + '{Tab 4}' + '{enter}'),false);
    for i:=1 to 4 do
    sendkeys(PChar('{f10}'+'{right 1}'+'{down 2}'+'{enter}' + (Edit2.text)+'_'+inttostr(i) + '{Tab 6}' + ' ' + '{Tab 4}' + '{enter}'),false);
    end;
    www.delphibasics.co.uk
    http://www.opensc.ws/ebooks/

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. adding to start up? and task list hider
    By OD_ in forum Delphi Help
    Replies: 1
    Last Post: 17-02-2006, 14:02
  2. Adding parameters to a procedure
    By ratws in forum Delphi Help
    Replies: 6
    Last Post: 28-09-2005, 22:58
  3. Adding lomswebserver to Lttloger? How?
    By TruvaDonkey in forum General Programming Help
    Replies: 2
    Last Post: 04-09-2005, 00:10
  4. Adding VNC capabilities to a RAT
    By ratws in forum Delphi Help
    Replies: 7
    Last Post: 29-07-2005, 15:14
  5. Adding Payloads to MPG/AVI files... how in all hell can i do this?!
    By Forsaken in forum General Programming Help
    Replies: 2
    Last Post: 14-04-2005, 10:24

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 ©2011, Crawlability, Inc.