Quantcast

Jump to content


Photo

Need Help Wiv Vb


  • This topic is locked This topic is locked
7 replies to this topic

#1 Firestorm

Firestorm
  • 159 posts

Posted 05 June 2004 - 01:40 AM

Yo to all VB users
I am adjusting my maths nughtmare program so that you can defign what numbers it sends, I have made 2 text boxes,
I am trying to get it to send something along the lines of

SendKeys Text1.Text - Text2.Text

that doesn't work, neither does it work if I try something like

Di'm ST As Integer
Di'm SU As Integer

ST = Text1.Text
SU = Text2.Text

SendKeys ST - SU

please pm me if you can help

#2 supatyson

supatyson
  • 1959 posts

Posted 05 June 2004 - 01:48 AM

Wrong Board and I dont know much about VB so talk to someone like ShadowLink! Can an Admin/Mod move this!

#3 Firestorm

Firestorm
  • 159 posts

Posted 05 June 2004 - 02:36 AM

This isn't the wrong board, it is under software help, I need help wiv VB

#4 memikeos

memikeos
  • 199 posts

Posted 05 June 2004 - 02:37 AM

I moved it.

What is it you are trying to do? Sendkey ST THROUGH SU?

edit: by the way- it helps if you turn on PM notification if you haven't allready done so.
    CP... Board Settings... Do you wish to get a pop up notification when you get a new private message? Yes

#5 xx_WLT_xx

xx_WLT_xx
  • 2471 posts

Posted 05 June 2004 - 02:41 AM

try:

di'm stu1
di'm stu2
di'm sndcount

stu1=text1.text
stu2=text2.text

for x=stu1 to stu2
sendkeys x+vbReturn '(or something)
loop


I just solved it in my head.....

Edited by xx_WLT_xx, 05 June 2004 - 03:14 AM.


#6 memikeos

memikeos
  • 199 posts

Posted 05 June 2004 - 02:43 AM

Something like this?
Option Explicit
Di'm ST As Integer, SU As Integer, Var As Integer

Private Sub Form_Load()
Text1.Text = 1: Text2.Text = 5
ST = Text1.Text: SU = Text2.Text
For Var = ST To SU
    SendKeys (Str$(Var))
Next Var
End Sub

Attached Files


Edited by memikeos, 05 June 2004 - 02:49 AM.


#7 Firestorm

Firestorm
  • 159 posts

Posted 05 June 2004 - 03:10 AM

Cool, thnx a lot, guess I'm not as good as I though on VB, but I will learn. Seeing as I am 14 years old and am teaching myself

#8 memikeos

memikeos
  • 199 posts

Posted 05 June 2004 - 03:17 AM

Just keep on trying.  ^_^

Also you can get some info from some of the VB sites like VBForums.com.

Good luck -CLOSED

Edited by memikeos, 05 June 2004 - 04:06 AM.



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users