Search:

Type: Posts; User: naitsabes85

Page 1 of 5 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    6
    Views
    1,043

    Re: Setpixel from a byte array

    I sorted this by bigvalue - lowvalue, adding the difference.
    Now the pixels are drawn from 0,0px!
    Thanks for the help!
  2. Replies
    6
    Views
    1,043

    Re: Setpixel from a byte array

    The coordinates value sometimes gets over 17000.
    How big can you make a picturebox?
    Im thinking about bitblt on a large scaled picturebox to a smaller one.
  3. Replies
    6
    Views
    1,043

    Re: Setpixel from a byte array

    Yes but the issue is how to make sure x,y is within range of scalewidth/scaleheight.
  4. Replies
    6
    Views
    1,043

    Setpixel from a byte array [solved]

    Hello!
    Im trying to paint pixels from a byte array containing coordinates, my problem is how to get the coordinate to fit inside a picturebox.

    Since a byte is 255 max, the coordinates gets...
  5. Re: start Thread() from a unknown class

    I figured it out my self, thank you google!

    try {
    ClassLoader classLoader = new URLClassLoader(new URL[] {new File(scriptPath).toURI().toURL()});
    Class<?> testClass =...
  6. [RESOLVED] start Thread() from a unknown class

    Hello!
    I have been googling for hours not finding a solution, hopefully someone can help me!

    How do i start a new Thread from a Runnable class not located in the same folder?
    Im choosing the...
  7. Replies
    15
    Views
    1,002

    Re: Array travel from A to B

    Im currently coding a function looping through all areas and returning index of other areas touching current one. From there im planning on looping the touch areas and keep doing this until our...
  8. Replies
    15
    Views
    1,002

    Re: Array travel from A to B

    My mind is a big mess right now :p wish i could explain better...
    The goal is to get from one point to another by making some sort of walk path.
    When i said areas to walk i ment area(i) = reachable...
  9. Replies
    15
    Views
    1,002

    Re: Array travel from A to B

    Area(0) = "20080,5080,20090,5100"
    with Area(0)
    .x=20080'start coord.x
    .y=5080'start coord.y
    .width=20090'end coord.x
    .height=5100'end coord.y
    end with

    Thanks for sharing your thoughts!
    So...
  10. Replies
    15
    Views
    1,002

    Re: Array travel from A to B

    My bad, i have changed area into:

    Private Type Area
    X As Long
    Y As Long
    Width As Long
    Height As Long
    End Type
    This made it alot easier to work with :wave:
    You have any hints on how to make...
  11. Replies
    15
    Views
    1,002

    Re: Array travel from A to B

    All areas have walls, and if the distance from one area to another is less then 11 i can enter the other area.
    With my code it gets stuck since the distance sometimes is more then 11.
    In this...
  12. Re: Last numeric values in a string

    Then make a loop.

    dim s() as string,s1() as string
    dim i as long
    s=split(record,vbcrlf)'split the record by return
    for i = lbound(s) to ubound(s)'loop tru all items
    s1=split(s(i),"...
  13. Re: Last numeric values in a string

    This is one way doing it.

    Dim s As String, s1() As String
    s = "CRYOTUBE,1.8ML,RND INTHD 50/PK"
    s = Replace(s, "/PK", "")
    s1 = Split(s, " ")
    MsgBox s1(UBound(s1))
  14. Replies
    15
    Views
    1,002

    Re: Array travel from A to B

    Made this code to see if my madeup x,y coordinates actually exists.
    Need some ideas on how to do this :s

    function isValidArea(byref areas(),byval x as long, byval y as long) as boolean
    dim i as...
  15. Replies
    15
    Views
    1,002

    Re: Array travel from A to B

    'example of Area() x,y,width,height
    Area(0) = "20080,5080,20090,5100"
    Area(1) = "20040,5080,20080,5100"
    Area(2) = "20000,5080,20040,5100"
    Area(3) = "20080,5040,20090,5080"
    Area(4) =...
  16. Replies
    15
    Views
    1,002

    Array travel from A to B

    Hello!
    Need some help figuring this out.
    I need to go from point A to point B.
    Problem is that i can't tavel in a straight line since there are "out of screen" areas.

    The array Areas() is...
  17. Replies
    1
    Views
    467

    Re: Vb script math question

    I google a bit and found answer.

    CDbl()

    Yours,
    Sebastian
  18. Replies
    1
    Views
    467

    [RESOLVED] Vb script math question

    Hello!
    Im trying to calculate the value of two textbox but it gives me wrong answer.
    t1.value=12.2
    t2.value=12.2
    t3.value=24 and not 24.4?


    sub sCalculate()
    dim s(1),s1
  19. Re: SetWindowLong transparent, crashes?! (solved)

    Thanks :wave:
  20. Re: SetWindowLong transparent, crashes?!

    It's not the "SetWindowLong api" who caused all the error's, its "PrintWindow api"...
    I was trying to use PrintWindow with a child handle belonging to the transparent internet explorer window.
    ...
  21. Re: SetWindowLong transparent, crashes?!

    I have windows xp home and windows internet explorer 7.
    :blush: Yes i should probly try remove "on error resume next", brb with update.
  22. [RESOLVED] SetWindowLong transparent, crashes?!

    Hello,
    Im trying to make Internet Explorer transparent but when im using this code xp crashes with follow error: PAGE_FAULT_IN_NONPAGED_AREA?



    Private Declare Function GetWindowLong Lib...
  23. Re: Chat with Particular user using Winsock Multiple connection

    use the function i first posted:

    sendUDP "192.168.2.1", "28070", "This is a message"
    a) to recieve ip's & port's you connect to server.
    b) server gives you ip's & port's.
    c) call function i...
  24. Re: javascript onclick popupwindow?!

    Thank you coothead for saving my day, this work correctly! :wave:
  25. Re: Chat with Particular user using Winsock Multiple connection

    Sorry, this uses server...

    client(1) <-> server <-> client(3)'send:3:hello


    sub sock_dataarrivial(bytestotal)
    dim data as string,s() as string
    sock(index).getdata data,vbstring...
  26. Re: Chat with Particular user using Winsock Multiple connection

    Hi,
    Since each client(x) is connected to the server you must parse data from server.
    client(1) <-> server <-> client(3)...
    Using UDP protocol you can send messages like:

    sub sendUDP(byval host...
  27. javascript onclick popupwindow?! [solved by coothead]

    Hello!
    I have created a php script and trying to use javascript to create a popup window.


    <script language='javascript' type='text/javascript'>
    <!--
    function popup(id) {
    var url;...
  28. Replies
    2
    Views
    1,031

    Re: ReadProcessMemory returns wrong value?

    Thank you Xmas79!
    value + 2 ^ 32 gives the correct value :)
  29. Replies
    2
    Views
    1,031

    ReadProcessMemory returns wrong value?

    Hi folks!
    Im trying to use ReadProcessMemory to get a long value, but i get wrong value when doing this?

    The address im looking at is the correct one, i used T-search to get it.
    valbuffer...
  30. Replies
    0
    Views
    985

    ReadProcessMem, long to chr

    Hello folks!
    I been working on a memory scaner and i got a problem.
    First as you can see below, im capturing the memory info into a string.
    My problem is how to convert a long value eg "858585"...
  31. Replies
    0
    Views
    455

    bit shifting?

    Hello,
    I need some help understanding bit shifting.
    The word "sweden" got shifted to "00000000511DAEF2" i dont know how this was done and i didn't shift the bits.

    I would like to make...
  32. Replies
    4
    Views
    1,822

    Re: bytearray + ReDim Preserve?

    thanks milk, i forgot about the for next loop :wave:
  33. Replies
    4
    Views
    1,822

    Re: bytearray + ReDim Preserve?

    hehe.. im trying to make this code work with bytes instead of a string:
    (ChiefRedBull wrote)"http://www.xtremevbtalk.com/archive/index.php/t-29317.html"
    i can use another loop to do this but i want...
  34. Replies
    4
    Views
    1,822

    bytearray + ReDim Preserve?(solved)

    Hey,
    im new to bytes and im trying to get this code to work but im doing wrong??

    MaxByte = 2000
    Do
    i = i + 1
    ReDim Preserve Bytearr2(0 To i)
    Bytearr2(i) = Mid$(Bytearr1, j, MaxByte)'add...
  35. Replies
    4
    Views
    662

    Re: pixel color

    Hey,
    Is this what you are looking for?
    declares:

    Private Declare Function GetPixel Lib "gdi32" (ByVal Hdc As Long, ByVal x As Long, ByVal y As Long) As Long
    Private Declare Function GetDC Lib...
  36. Replies
    5
    Views
    1,001

    Re: getpixel of a circle 16x16?

    Im trying to make a code that can tell if there is a circle 16X16 inside a picturebox :sick:
  37. Replies
    5
    Views
    1,001

    Re: getpixel of a circle 16x16?

    I made a simple function and this is what i need.
    Anyways if there is another way please tell me!
    Function findSquare(pic As PictureBox, FindColor As Long) As Boolean
    Dim x As Long, y As Long
    Dim...
  38. Replies
    5
    Views
    1,001

    getpixel of a circle 16x16?

    Hi folks,
    Is there a easier way doing this, or do i have to make this the slow way by counting pixels?
    Big thanks
  39. Replies
    0
    Views
    509

    readprocessmemory address scaning?

    Hello folks!
    I have been trying to generate a code to "readprocessmemory" with address scaning, since the pid(address) always changes each time i reload.
    I need to scan "address(0 to end)" for the...
  40. Re: "Object variable or With block variable not set"(solved)

    Thanks all! This helped me out, :wave:
Results 1 to 40 of 179
Page 1 of 5 1 2 3 4



Click Here to Expand Forum to Full Width