Sign in to follow this  
Followers 0
aurorae128

Extract USB information

9 posts in this topic

Hi.. i really really need help from you guys

How can i create GUI that extract my USB data from thumbdrive. I read something in google that say "the information inside the USB is store in EndPoint 0-15 and can be extracted using "window API". What is window API what should i write in the sourse code to use window api. Is autoIT have a function for that purpose.

Please help me at least i can extract one words from usb and put it in the variable such as

$data = (from api function) i guess!!!

i really appreciate if one can include example script or other link.

thanks you

Share this post


Link to post
Share on other sites



Hi.. i really really need help from you guys

How can i create GUI that extract my USB data from thumbdrive. I read something in google that say "the information inside the USB is store in EndPoint 0-15 and can be extracted using "window API". What is window API what should i write in the sourse code to use window api. Is autoIT have a function for that purpose.

Please help me at least i can extract one words from usb and put it in the variable such as

$data = (from api function) i guess!!!

i really appreciate if one can include example script or other link.

thanks you

What do you mean by USB data? Acutal files? Part of a file? Infomation like size etc?

Share this post


Link to post
Share on other sites

What do you mean by USB data? Acutal files? Part of a file? Infomation like size etc?

Thank you for fast reply

what i mean is i have created a device that send data over the usb. the problems is i have no idea how to get the data.

the data i send is only ascii like char "A" at one time. then computer send again reply data to my device.

I used PIC18f4550 MCU device.

Any idea how i get the ascii string and put it in the variable so i can process the data then reply to my device to take action

Share this post


Link to post
Share on other sites

Please, explain it more precisely !

Who is sending the data 'A', which application.

Who is sending back the data, which application.

Gimme an example ...

Greetz

Greenhorn

Share this post


Link to post
Share on other sites

Well a start is looking at displaying the files on the drive.

"Gimme an example .."

Where is the please there? We aren't here to write it for you but to help you. Don't make that mistake twice.

@JamesB

Is this post adressed at me ???

If it is the case then, please, take a look at the first line of my reply: It already contains a 'please' !

I don't think that I'm understood harshly, in case I am, take my excuse.

Also it is not me, who needs help in this topic, I just wanted to help !!!

So take the fire off from mine, please.

Greetz

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Thank you for you atleast lookin at my treat

but i hav waiting an hours but no body reply than i guess i check my treat again latter

ok here the example

my device is sending the data "A" to the computer using USB.

next i put the data to PC. the GUI here will display what i am transfer which is char "A"

then the program will issue back to the device that the char have been retrieve. we will see LED blinking.

[My device] --------char "A" ----> [Computer ] [ GUI show char "A"]|

<------reply data---- ( Here the part i cant do yet)

i hope u all can understand !!!

What i wanna know is what is window API

what code or macro that can call the data char "A" that all i dont ask a complete program and just run it...

i thought it may be two line for that purpose right so i am not too greedy here. but i dont know the syntax that what i am looking for...

by the way thank you all except bert always comment without help what are you doin man

Edited by aurorae128

Share this post


Link to post
Share on other sites

Hi,

http://en.wikipedia.org/wiki/Application_p...mming_interface

http://en.wikipedia.org/wiki/Windows_API

Do you already have a Script, it seems so if I understood you right.

In case of that, please post your current Script.

Greetz

Greenhorn

thank you greetz for fast reply i had read it before but dont understand that why i change from vb

to autoIT hopefully they have built in function for that or mocro perhaps.

My program ... hmm i couldn't start the gui part is ok

so what i need in the program help here is

$variable = (function) <--- what return here

value set for $variable suppose to be char "A"

function()

{

how to excess USB data

-maybe-

Private Const WM_NCLBUTTONDOWN As Long = &HA1&

Private Const HTCAPTION As Long = 2&

Private Declare Function ReleaseCapture Lib "user32" () As Long

Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" _

(ByVal hWnd&, ByVal wMsg&, wParam As Any, lParam As Any) As Long

Private Sub Command1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)

Call ReleaseCapture

Call SendMessage(Command1.hWnd, WM_NCLBUTTONDOWN, ByVal HTCAPTION, ByVal 0&)

End Sub

(this in vb rite (from wikipedia ofcourse)

but not workin for me. as they just put "Call ReleaseCapture" as that easy.

}

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0