
seesoe
Active Members-
Posts
138 -
Joined
-
Last visited
Everything posted by seesoe
-
LIB USB - DLL C for loop with structures.
seesoe replied to FaT3oYCG's topic in AutoIt General Help and Support
hello, old thread i know. however is there any update on making a udf? -
i tired things from but i couldn't get anywhere
-
i attached my resluts of the scan in my last post. the device shows up as 'USB Composite Device' and i guess in device manger these are what the composite device is made up of HID-compliant device HID-compliant device USB Human Interface Device USB Human Interface Device
-
Bump
-
sorry for the really late reply, got busy with finals. actually i scanned the device with USBDeview, here is the info i came out with, not exactly a generic bluetooth dongle, but i do know it uses bluetooth to connect to the headset. report.html
-
hello, i've looked around the forum for some tool to read usb data but i couldn't find anything im guessing im going to have to write something with some dll but ive never done this before so im not sure how to start or do it. im looking for something like the read raw bytes function in martins com udf but for usb the device im trying to read is a bluetooth usb dongle that communicates with a headset thanks seesoe
-
[SOLVED] AES encryption / decryption
seesoe replied to seesoe's topic in AutoIt General Help and Support
so stupid lol, i searched aec encryption:S didn't find anything edit oops:D i know i searched aec not aes! it is really late im off to bed, will dive into it tomorrow when i wake up thank you both! ps the is for a project im working on to access the epoc emotiv headset through autoit -
hello autoit forum! i am trying to figure out how to do AES encryption and decryption in autoit? i have seen it done in php, js, python... i found a js version in the html source of this site any help would be greatly appreciated! thanks seesoe
-
thank you very much:) a little more complex than i imagined but fair enough #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include 'CommMG.au3' #Region ### START Koda GUI section ### Form=c:\users\waseem\autoit projects\koda 1.7.2.0\forms\form1.kxf $Form1 = GUICreate("Serial Switch", 186, 216, 455, 354) $com_port_label = GUICtrlCreateLabel("COM Port Number", 24, 32, 90, 17) $com_port = GUICtrlCreateInput("1", 120, 28, 41, 21) $group_con = GUICtrlCreateGroup("Connection", 8, 72, 169, 65) GUICtrlCreateGroup("", -99, -99, 1, 1) $group_settings = GUICtrlCreateGroup("Settings", 8, 8, 169, 57) GUICtrlCreateGroup("", -99, -99, 1, 1) $activate = GUICtrlCreateButton("Activate Serial Switch Box", 16, 96, 147, 25, 0) $group_stat = GUICtrlCreateGroup("Status", 8, 144, 169, 65) $barcode = GUICtrlCreateLabel("Barcode", 24, 168, 63, 25, BitOR($SS_CENTER,$SS_CENTERIMAGE)) GUICtrlSetBkColor(-1, 0x00FF00) $data_link = GUICtrlCreateLabel("Data Link", 96, 168, 63, 25, BitOR($SS_CENTER,$SS_CENTERIMAGE)) GUICtrlSetBkColor(-1, 0xC0C0C0) GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### Global $iPos = 0 Dim $aColor[2] = [0xFFFF00, 0xC0C0C0] _Flash() Func _Flash() $iPos = 1 - $iPos GUICtrlSetBkColor($data_link, $aColor[$iPos]) EndFunc $connected = False While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then if $connected = True Then _Commcloseport() EndIf Exit EndIf If $msg = $activate Then If Not $connected Then Local $sportSetError If _CommSetPort(GUICtrlRead($com_port),$sportSetError, 4800, 8, 0, 1, 0) Then $connected = True AdlibEnable('_Flash', 300) GUICtrlSetBkColor($barcode, 0xC0C0C0) GUICtrlSetData($activate, "Deactivate Serial Switch Box") Else $connected = True AdlibEnable('_Flash', 300) GUICtrlSetBkColor($barcode, 0xC0C0C0) GUICtrlSetData($activate, "Deactivate Serial Switch Box") EndIf Else $connected = False AdlibDisable ( ) GUICtrlSetBkColor($data_link, 0xC0C0C0) GUICtrlSetBkColor($barcode, 0x00FF00) GUICtrlSetData($activate, "Activate Serial Switch Box") _Commcloseport() EndIf EndIf WEnd
-
hello, how can i flash a labels background color, lets say every 1 second for example, red black red black red black.....
-
how do i create an array that has arrays for its element, i couldn't figure it out from the docs i need an array thats 7 big, and each element in that element i need it to have 3 more elements Local $worker[1][3] = [[1], ['name'], [111]] Local $worker[2][3] = [[1], ['name'], [111]] Local $worker[3][3] = [[1], ['name'], [111]] Local $worker[4][3] = [[2], ['name'], [111]] Local $worker[5][3] = [[2], ['name'], [111]] Local $worker[6][3] = [[2], ['name'], [111]] Local $worker[7][3] = [[2], ['name'], [111]]
-
hello, im trying to figure out how i can make a program that will allow for user control permissions over hotkeys. i have a wireless keypad for the computer, and i want to do like functions, like pressing 0 and 1 will start the user login, and after that they must enter their id then press enter, and after that they can for examples sake press period and the plus sign to higher the volume. different users have different permissions, like one can pause music, while another can only higher or lower it. im just going to change this senddata function in this script for vlc #626595 im thinking putting if hotkeys thens in a while loop and go from there but im not sure how to do it with users im just looking for second opinions on how to code this thanks all
-
@martin, is there any chance that you will ever be adding text wrap to your udf?
-
so we have page width from the print udf in millimeters, do i use the word wrapping udf for info on how to split the text or the actually split of the text? im not sure i get how to proceed in trying to write the code
-
interesting i really dont understand how the page width and all that stuff works with the print udf, but i found this in the udf ;_PrintGetPageWidth ;parameters - $hDll, the handle for printmg.dll ;returns page width in tenths of a millimetre and @error = 0 ; ;on failure returns -1 and @error = 1 Func _PrintGetPageWidth($hDll) $vDllAns = DllCall($hDll,'int','GetPageWidth') If @error = 0 Then Return $vDllAns[0] SetError(1) Return -1 EndFunc
-
i have the following trimmed code, i am trying to wrap Func print_client_order($raw_order_data) Local $mmssgg,$marginx,$marginy $hp = _PrintDllStart($mmssgg);this must always be called first if $hp = 0 then consolewrite("Error from dllstart = " & $mmssgg & @CRLF) Exit endif $PrinterName = _PrintGetPrinter($hp) _PrintSelectPrinter($hp,$PrinterName) _PrintPageOrientation($hp,1) _PrintStartPrint($hp) $pght = _PrintGetpageheight($hp) - _PrintGetYOffset($hp) $pgwd = _PrintGetpageWidth($hp) - _PrintGetXOffset($hp) $axisx = Round($pgwd * 0.8) $axisy = Round($pght * 0.8) $print_order_1 = StringTrimLeft($raw_order_data, 1) $print_order_2 = StringTrimRight($print_order_1, 1) $print_order = StringSplit($print_order_2,"~") $from_1 = StringSplit($print_order[3],"=") $from = StringSplit($from_1[2],",") $from_comments_header = "-----------------------COMMENTS-----------------------" $from_comments = $from[4] $from_comments_footer = "-----------------------------------------------------------" _PrintSetFont($hp,"Times New Roman",11,0,'bold') _PrintText($hp,$from_comments_header,Int($pgwd/2 - _PrintGetTextWidth($hp,$from_comments_header)/2),800) _PrintSetFont($hp,"Times New Roman",11,0,'') _PrintText($hp,$from_comments,Int($pgwd/2 - _PrintGetTextWidth($hp,$from_comments)/2),850,0) _PrintText($hp,$from_comments_footer,Int($pgwd/2 - _PrintGetTextWidth($hp,$from_comments_footer)/2),950) for testing matters we can replace $from[4] with a long string that needs to be wraped
-
hello, im trying to wrap text so that i can print it on receipt paper from my thermal printer. i am trying to achieve what was said in post 132
-
yeah, kinda like when you open a program by command line and give it an argument
-
hello, im not sure the exact name of this, but i was wondering if autoit supports switches? like C:\script.au3 /a or something like that and if its A then in the script it will go to that part of code...?
-
can you provide some examples of text wrapping please?
-
the code is the whole program, it works as a whole i can't really cut some out and show you the part we are working on... i have a program that accepts socket data and then when it finds specified types of data strings it phrases that, prints it, and writes to a database, the part that we are working on is the last part right after the database writing, where it looks for a key press and when it does it will send a signal to a server and then the server emails a confirmation email saying we got that data that was sent the program is tied to a few other servers and things, i will do my best to recreate some simple workable code environment for everyone here to see and mess with.
-
hmm, ya it works, however, 45 was just an example the function's input where 45 is at is suppose to have $id[2], and $id[2] is provided by the rest of the script... maybe setting it as global? *edit* that didn't seem to work
-
i would like to use HotkeySet("!+4","button_4") however, i need to run function button_4(45) not just button_4
-
hello, i have a function that i need to run when alt+shift+4 is pressed on the keyboard. here is the function Func button_4($user_id) $url = _HTTPEncodeString($var&"="&$user_id) $socket = _HTTPConnect($host) $post = _HTTPPost($host,$page,$socket,$url) $recv = _HTTPRead($socket,1) EndFunc the thing is, i need to put all that in another function and i need that function to wait for the hotkeys to be pressed and button_r function to finish processing before moving on.
-