aurorae128 Posted January 25, 2008 Share Posted January 25, 2008 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 Link to comment Share on other sites More sharing options...
BrettF Posted January 25, 2008 Share Posted January 25, 2008 Hi.. i really really need help from you guysHow 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 youWhat do you mean by USB data? Acutal files? Part of a file? Infomation like size etc? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
aurorae128 Posted January 25, 2008 Author Share Posted January 25, 2008 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 Link to comment Share on other sites More sharing options...
Greenhorn Posted January 25, 2008 Share Posted January 25, 2008 Please, explain it more precisely !Who is sending the data 'A', which application.Who is sending back the data, which application.Gimme an example ...GreetzGreenhorn Link to comment Share on other sites More sharing options...
James Posted January 25, 2008 Share Posted January 25, 2008 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. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Greenhorn Posted January 25, 2008 Share Posted January 25, 2008 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.@JamesBIs 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 Link to comment Share on other sites More sharing options...
aurorae128 Posted January 25, 2008 Author Share Posted January 25, 2008 (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 January 25, 2008 by aurorae128 Link to comment Share on other sites More sharing options...
Greenhorn Posted January 25, 2008 Share Posted January 25, 2008 Hi,http://en.wikipedia.org/wiki/Application_p...mming_interfacehttp://en.wikipedia.org/wiki/Windows_APIDo you already have a Script, it seems so if I understood you right.In case of that, please post your current Script.GreetzGreenhorn Link to comment Share on other sites More sharing options...
aurorae128 Posted January 25, 2008 Author Share Posted January 25, 2008 Hi,http://en.wikipedia.org/wiki/Application_p...mming_interfacehttp://en.wikipedia.org/wiki/Windows_APIDo you already have a Script, it seems so if I understood you right.In case of that, please post your current Script.GreetzGreenhornthank you greetz for fast reply i had read it before but dont understand that why i change from vbto 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 LongPrivate Declare Function SendMessage Lib "user32" Alias "SendMessageA" _ (ByVal hWnd&, ByVal wMsg&, wParam As Any, lParam As Any) As LongPrivate 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. } Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now