Jump to content

DJ VenGenCe

Active Members
  • Posts

    47
  • Joined

  • Last visited

DJ VenGenCe's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Any idea how to push ANSI Screens (From old BBS Days) to this console?
  2. Trying to get the XML Wrapper to read through my two Songs in this XML Database. However the output (see below) only shows the last entry. #include"_XMLDomWrapper.au3" $XMLFILE = "test.xml" _XMLFileOpen($XMLFILE) $iCount = _XMLGetNodeCount("/VirtualDJ_Database/Song") ConsoleWrite("Node*s' <song> no." & $iCount & @CRLF) For $n = 1 To $iCount $Author = _XMLGetAttrib('(//Display)', 'Author') $Title = _XMLGetAttrib('(//Display)', 'Title') $FileName = _XMLGetAttrib('(//Song)', 'FilePath') ConsoleWrite($Author & @CRLF) ConsoleWrite($Title & @CRLF) ConsoleWrite($FileName & @CRLF) Next Output: Node*s' <song> no.2 Plasmic Honey Ride the Trip (Lift-Off - Mix 2) I:\Tools\02 - Ride the Trip (Lift-Off Mix - Mix 2).mp3 Plasmic Honey Ride the Trip (Lift-Off - Mix 2) I:\Tools\02 - Ride the Trip (Lift-Off Mix - Mix 2).mp3 >Exit code: 0 Time: 0.315 Test XML File is attached. Any ideas on how to parse each <Song> ? test.xml
  3. I am having problems simulating a drag and drop onto Control SysListView3 which is a list view. Basically Dragging and Dropping MP3s works, but when I use ControlSetText, etc, it does not. If more info is needed, I'll be happpy to oblige. I have also attached the AutoIT Window Info Summary. >>>> Window <<<< Title: Songtitle Class: #32770 Position: 241, 49 Size: 431, 457 Style: 0x94CA00CC ExStyle: 0x00050115 Handle: 0x001506C0 >>>> Control <<<< Class: SysListView32 Instance: 1 ClassnameNN: SysListView321 Name: Advanced (Class): [CLASS:SysListView32; INSTANCE:1] ID: 1016 Text: Position: 21, 52 Size: 383, 343 ControlClick Coords: 116, 88 Style: 0x5001884D ExStyle: 0x00000204 Handle: 0x00080814 >>>> Mouse <<<< Position: 137, 140 Cursor ID: 0 Color: 0xFFFFFF >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< f OK >> Repeat Playlist On Air: Singer: >>>> Hidden Text <<<< Drag & Drop files here AutoIT Window Info:
  4. My Barcode USB Scanner treats end of lines as enters. Using a Hotkeyset listed in the code, it detects for enter and sends tab. Used your code to test. Scanning into the first field, it'll send tab right after that. Appears to function. Test on yours. CODE #include <GUIConstants.au3> HotKeySet("{ENTER}", "enterfunc") GUICreate("Scanner GUI") GUISetState (@SW_SHOW) GuiCtrlCreateLabel("Bar Code", 10, 15, 150, 20) GUICtrlCreateInput ("", 10, 35, 300, 20) GuiCtrlCreateLabel("S/N", 10, 55, 150, 20) GUICtrlCreateEdit ("", 10, 75, 300, 20) ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend Func enterfunc() Send("{TAB}") EndFunc
  5. Anyone still have the original RegLoadHive? I cannot locate it using search.
  6. Using the following code provided by gafrost (thank you) I would like to take this listview a step further. Sending the data to a new listview but only by the ones that are checked off. Pressing the button at the top will copy the data into the listview on the right. This is where I am stuck. Any Ideas? CODE;gafrost ;gafrost #include <GUIConstants.au3> ;Global Const $LVFI_PARAM = 0x0001 ;Global Const $LVIF_TEXT = 0x0001 ;Global Const $LVM_FIRST = 0x1000 Global Const $LVM_GETITEM = $LVM_FIRST + 5 ;Global Const $LVM_FINDITEM = $LVM_FIRST + 13 ;Global Const $LVM_SETSELECTEDCOLUMN = $LVM_FIRST + 140 Dim $nCurCol = -1 Dim $nSortDir = 1 Dim $bSet = 0 Dim $nCol = -1 $gui = GUICreate("TEST APP!", 640, 480, -1, -1) $copy = GUICtrlCreateButton("Copy Selected Fields", 10, 5, 100,17) $listview = GUICtrlCreateListView("Column 1|Column 2|Column3", 0, 50, 200, 200, $WS_VSCROLL, $LVS_EX_CHECKBOXES + $LVS_EX_GRIDLINES) GUICtrlRegisterListViewSort(-1, "LVSort") ; Register the function "SortLV" for the sorting callback GUICtrlCreateListViewItem("444|444|444", $listview) GUICtrlCreateListViewItem("333|333|333", $listview) GUICtrlCreateListViewItem("222|222|222", $listview) GUICtrlCreateListViewItem("111|111|111", $listview) GUISetState(@SW_SHOW, $gui) $output_listview = GUICtrlCreateListView("Column 1|Column 2|Column3", 250,50, 200, 200); While 1 $msg = GUIGetMsg() Select Case $msg = $copy ;do stuff Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $listview $bSet = 0 $nCurCol = $nCol GUICtrlSendMsg($listview, $LVM_SETSELECTEDCOLUMN, GUICtrlGetState($listview), 0) DllCall("user32.dll", "int", "InvalidateRect", "hwnd", GUICtrlGetHandle($listview), "int", 0, "int", 1) EndSelect WEnd ; Our sorting callback funtion Func LVSort($hWnd, $nItem1, $nItem2, $nColumn) Local $nSort ; Switch the sorting direction If $nColumn = $nCurCol Then If Not $bSet Then $nSortDir = $nSortDir * - 1 $bSet = 1 EndIf Else $nSortDir = 1 EndIf $nCol = $nColumn $val1 = GetSubItemText($listview, $nItem1, $nColumn) $val2 = GetSubItemText($listview, $nItem2, $nColumn) $nResult = 0 ; No change of item1 and item2 positions If $val1 < $val2 Then $nResult = -1 ; Put item2 before item1 ElseIf $val1 > $val2 Then $nResult = 1 ; Put item2 behind item1 EndIf $nResult = $nResult * $nSortDir Return $nResult EndFunc ;==>LVSort ; Retrieve the text of a listview item in a specified column Func GetSubItemText($nCtrlID, $nItemID, $nColumn) Local $stLvfi = DllStructCreate("uint;ptr;int;int[2];int") DllStructSetData($stLvfi, 1, $LVFI_PARAM) DllStructSetData($stLvfi, 3, $nItemID) Local $stBuffer = DllStructCreate("char[260]") $nIndex = GUICtrlSendMsg($nCtrlID, $LVM_FINDITEM, -1, DllStructGetPtr($stLvfi)); Local $stLvi = DllStructCreate("uint;int;int;uint;uint;ptr;int;int;int;int") DllStructSetData($stLvi, 1, $LVIF_TEXT) DllStructSetData($stLvi, 2, $nIndex) DllStructSetData($stLvi, 3, $nColumn) DllStructSetData($stLvi, 6, DllStructGetPtr($stBuffer)) DllStructSetData($stLvi, 7, 260) GUICtrlSendMsg($nCtrlID, $LVM_GETITEM, 0, DllStructGetPtr($stLvi)); $sItemText = DllStructGetData($stBuffer, 1) $stLvi = 0 $stLvfi = 0 $stBuffer = 0 Return $sItemText EndFunc ;==>GetSubItemText
  7. You could call the file "firefox.au3" And when you compile it, it would appear as Firefox.exe. and try to code it that way. Start the program before StarCraft and the put in your code? I don't play any online games or anything, but from an outside perspective, it might work... Just make sure your antivirus trusts the application.. ?? Anyone else think this'll work?
  8. Could we see RASSIST.DLL? I am trying to load a Bitmap from a Test DLL. No Luck.
  9. Works for mine, as long as the server has no password.. Let me debug.
  10. I did it VIA a VNCx ActiveX. Worked at the time when auto it v3.1.1 was out.. requires beta and to download the files and register the dll. http://www.autoitscript.com/forum/index.ph...447&hl=vncx
  11. http://www.conaito.de - has an SDK & ActiveX.. Maybe this'll help?
  12. Need help starting a script enumerate or get a list of printers (Hidden) on a print server and store them in an INI-based file called @SCRIPTDIR\Printers.Ini Printers are accessed \\SERVERNAME\PrinterName. I am novice/mid-experienced with AutoIT and just would need a better method than just typing them all in. Thx.
  13. I think you beat me to it!
  14. Try the following code: Local $domain = "DOMAIN" $user = InputBox("Security Check", "Enter your USERID.", "") $password = InputBox("Security Check", "Enter your password.", "", "*") $remote_share = InputBox("Security Check", "Enter Network Resource", "\\server\resource$") $domain_and_user = $domain & "\" & $user DriveMapDel("J:") Sleep(2500) DriveMapAdd("J:", $remote_share, 0, $domain_and_user, $password) Code has been tested.. worked with my Domain & Resources..
  15. Good Idea!!! I have a little program I had made about 6 months ago (Still use it to this date) that allows you to input a Computer Name (or IP Address) Query the Make / Model & Serial from Win32_Bios. Also, determines the installed Operating system. Displays a list of Installed Updates + Service Packs. Detects if SMS (CCMExec) is installed (To connect to Remote System) Also, if Windows XP... Detects if Remote Desktop is enabled. I'll post the code, but this is a great Idea! I suggest a list of computers, rather than those that are on the Whole domain. That way you can Query the list you want.
×
×
  • Create New...