473,508 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I Need help with an Auto Button Basher...

1 New Member
I am making a VB Project and i wanted to add something a bit unusual
like an auto button basher, i realize i have to use a timer and a lot of loops,
but how can i make VB , on activation by pressing a button (like F7 or whatever), actually press a button untill the activation button is pressed again??

plz help me i'm still a beginer when it comes to VB but i think doing something like that is possiable in VB, only i dont know how.....yet...

thanks in advance
Feb 11 '07 #1
2 1068
balid
18 New Member
I am making a VB Project and i wanted to add something a bit unusual
like an auto button basher, i realize i have to use a timer and a lot of loops,
but how can i make VB , on activation by pressing a button (like F7 or whatever), actually press a button untill the activation button is pressed again??

plz help me i'm still a beginer when it comes to VB but i think doing something like that is possiable in VB, only i dont know how.....yet...

thanks in advance
Would something like this work?
Expand|Select|Wrap|Line Numbers
  1. Dim test As Integer
  2.  
  3. Private Sub Command1_Click()
  4.    test = Abs(test - 1)
  5.    Timer1.Enabled = (test = 1)
  6. End Sub
  7.  
  8.  
  9. Private Sub Timer1_Timer()
  10.    do your code
  11. End Sub
  12.  
Feb 12 '07 #2
Killer42
8,435 Recognized Expert Expert
If you mean that you want your program to send keys as though the user is pressing them, you'd most likely want to use the SendKeys statement.

Not too sure how you will go about "deactivating" it, though.
Feb 13 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

8
4782
by: knoxautoguy | last post by:
This problem has consumed a lot of my time, and I'm aftraid someone will tell me that my whole approach to this objective is wrong; however, I would like to know if there is a way to do this. I...
2
3638
by: Graeme | last post by:
Hi there Yet another daft question. Can I fill a css defined box with a text character such that the box can be set to say, 85% page width, and the text character fills the bos to that width,...
15
2023
by: active | last post by:
Below is a small but complete program that appears to show you can't retrive a Palette from the clipboard. This is true whether the palette is placed on the clipboard by Photoshop or Photoshop...
0
7135
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7410
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7067
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4729
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3201
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
440
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.