Macroers prog need help!

Discussion in 'Programming General' started by anonim stray, Dec 1, 2007.

Macroers prog need help!
  1. Unread #1 - Dec 1, 2007 at 8:06 AM
  2. anonim stray
    Joined:
    Aug 19, 2007
    Posts:
    221
    Referrals:
    0
    Sythe Gold:
    0

    anonim stray Active Member
    Banned

    Macroers prog need help!

    HEy guys!
    PLz how u make so that when u click mouse down on a command button a cursor is shown on all the screen? And how do u detect mouse up to hide cursot and save location plz? i tried using invisible maximized form but did not work =/
    Tyvm for your help =)
     
  3. Unread #2 - Dec 1, 2007 at 8:07 AM
  4. anonim stray
    Joined:
    Aug 19, 2007
    Posts:
    221
    Referrals:
    0
    Sythe Gold:
    0

    anonim stray Active Member
    Banned

    Macroers prog need help!

    *Mouse icon i meant sorry (like to get pixel of current location)
     
  5. Unread #3 - Dec 3, 2007 at 8:47 AM
  6. Blupig
    Joined:
    Nov 23, 2006
    Posts:
    7,145
    Referrals:
    16
    Sythe Gold:
    1,609
    Discord Unique ID:
    178533992981594112
    Valentine's Singing Competition Winner Member of the Month Winner MushyMuncher Gohan has AIDS Extreme Homosex World War 3 I'm LAAAAAAAME
    Off Topic Participant

    Blupig BEEF TOILET
    $5 USD Donor

    Macroers prog need help!

    Uhhh, okay well for the cursor mousedown thing, just put Form1.Cursor in a Command1_MouseDown event. Then, in a Command1_MouseUp event, just change it back to the default one.
     
  7. Unread #4 - Dec 3, 2007 at 10:05 AM
  8. anonim stray
    Joined:
    Aug 19, 2007
    Posts:
    221
    Referrals:
    0
    Sythe Gold:
    0

    anonim stray Active Member
    Banned

    Macroers prog need help!

    Well tnx but i am not that noob..
    When u remove cursor from form it stays normal cursos :s
     
  9. Unread #5 - Dec 3, 2007 at 11:19 AM
  10. Covey
    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Macroers prog need help!

    uhhh, i dont even understand what your asking.
     
  11. Unread #6 - Dec 3, 2007 at 8:58 PM
  12. skate4lifee
    Joined:
    Jul 22, 2007
    Posts:
    108
    Referrals:
    1
    Sythe Gold:
    0

    skate4lifee Active Member

    Macroers prog need help!

    use the 'MouseHover' and 'MouseLeave' properties for the button so for example lets use 2 pictures. lets name one .cur 'rollover' and the other one 'normal' so for the buttons 'mousehover' property you could say
    Code:
    button1.cursor = my.resources.rollover
    for the buttons leave property you can say

    Code:
    button1.cursor = my.resources.normal
    it took a little time to understand what you were saying so i don't think i answered all your questions so if i didn't try rephrasing your unanswered question(s) and i will be happy to answer them as best i can.
     
  13. Unread #7 - Feb 9, 2008 at 12:01 PM
  14. Visual Basic Matt
    Joined:
    Jan 29, 2008
    Posts:
    647
    Referrals:
    2
    Sythe Gold:
    56
    Discord Unique ID:
    223154494878253056

    Visual Basic Matt Apprentice

    Macroers prog need help!

    No idea.... What you are talking about....
     
  15. Unread #8 - Feb 9, 2008 at 12:01 PM
  16. Visual Basic Matt
    Joined:
    Jan 29, 2008
    Posts:
    647
    Referrals:
    2
    Sythe Gold:
    56
    Discord Unique ID:
    223154494878253056

    Visual Basic Matt Apprentice

  17. Unread #9 - Feb 10, 2008 at 4:26 AM
  18. Darthatron
    Joined:
    May 22, 2006
    Posts:
    1,612
    Referrals:
    3
    Sythe Gold:
    0

    Darthatron Massive Troll
    Retired Sectional Moderator Visual Basic Programmers

    Macroers prog need help!

    Ok... I think this is what you want...

    Make 2 TextBox's - Text1 and Text2
    Make 1 CommandButton - Command1
    Make 1 Module - Module1

    In Module1 put the following code.
    Code:
    Public Type PointApi
    X As Long
    Y As Long
    End Type
    Declare Function GetCursorPos Lib "user32.dll" (lpPoint As PointApi) As Long
    In General Declarations put this code.
    Code:
    Dim PosXY As PointApi
    Then paste this code into the Command1_MouseDown Property.
    Code:
    Command1.MousePointer = 2
    Then in the Command1_MouseUp Property, paste this.
    Code:
    Command1.MousePointer = 0
    GetCursorPos PosXY
    Text1.Text = PosXY.X 'Gets the X Position of the mouse and saves it into Text1
    Text2.Text = PosXY.Y 'Gets the Y Position of the mouse and saves it into Text2
    Ok... That saves the X and Y positions into the given TextBox's, I think thats all you wanted... Try speaking more clearly next time, then I'm sure someone else may be able to help you out. :)
     
  19. Unread #10 - Feb 11, 2008 at 5:45 AM
  20. Rdogg999
    Joined:
    Jan 16, 2008
    Posts:
    215
    Referrals:
    0
    Sythe Gold:
    0

    Rdogg999 Active Member

    Macroers prog need help!

    no idea soz
     
< HD-DVD or Blue Ray - what is the better? | Tutorial: Manipulating Binary >

Users viewing this thread
1 guest


 
 
Adblock breaks this site