Jump to content

Bester

Active Members
  • Posts

    25
  • Joined

  • Last visited

Recent Profile Visitors

254 profile views

Bester's Achievements

Seeker

Seeker (1/7)

2

Reputation

  1. Hello there, i`m really sorry to necropost or if this is not relevant anymore, just thought someone else might find this helpful, here`s an old UDF for communication with MikroTik devices, hope it helps someone @krypt022 _mikrotik_UDF.au3
  2. Hello there, first of all, what an awesome IDE, great work sir, it`s really good to see something like this. But i found a few little problems, hope you`ll have time to look at them: 1. if i`ll put comma behind parameter in a function, the tooltip will not appear (this happens only if i`m editing parameters of an already written function, if i write function down, the tooltip will appear) 2. also today i found out that that tooltip will appear if i`ll put comma behind comment above, but this is the only time this happened (see attachment) 3. some hotkeys don`t detect all the time, for example, ctrl+t for tidy work all the time, but F1 for help file or F5 to test project don`t work most of the time, if i want them to do something, i have to keep mashing to button and they will eventually do it and bit of a request, if you could make Jump to Function work for the whole project and not only for currently opened window, that would be great. Thank you
  3. Thank you again for your reply and i'm sorry for my late reply, i'm running Win 7 Pro x64 EN, but since you mentioned no-one else has had difficulties, i'm going to test this with a few newly installed machines at work to see what's going on
  4. Another rather interesting observation (applies for code with or without your function): so i run the code you send me and if i run the script and just wait for GUI, i will always get button with dotted border, BUT if i run the script and click on some other window or Windows taskbar, i will not get dotted border what is this madness?
  5. Thank you again for your reply and the highlights now here`s the funny thing, in the code you just posted i do get dotted border at the first MsgBox MsgBox(0, "NFL", $iRet) but if i click with mouse on button with dotted border (OK), i will not get it after that, which is great, but if i do remove that MsgBox or close it with Esc, or press Enter on the OK button, i`ll get dotted border on my GUI So, i`m kinda lost here Edit: after more testing, even if i remove your function, it acts exactly the same way, i really have no idea how that damn dotted border thing works
  6. Thank you so much for your reply, unfortunately, unless i`m using your UDF wrong, it does not work for me. #RequireAdmin Opt("MustDeclareVars", 1) #include <date.au3> #include <string.au3> #include <Crypt.au3> ;~ #include <StaticConstants.au3> ;~ #include <WindowsConstants.au3> #include <GUIConstantsEx.au3> #include <ButtonConstants.au3> #include <EditConstants.au3> #include "Include\variables.au3" #include "Include\_NoFocusLines.au3" #include "Include\_Licence.au3" _NoFocusLines_Global_Set() Local $gui_select Local $nMsg Local $btn_trial Local $btn_reg Local $btn_atris Local $applicationName = "IP Conf" $gui_select = GUICreate($applicationName, 280, 80) ;~ GUISetBkColor(0xFFFFFF, $gui_select) GUICtrlCreateLabel("This is a Trial version of " & $applicationName, 10, 10, 200, 20) $btn_trial = GUICtrlCreateButton("Continue Trial", 10, 40, 90, 30) ;~ If $trialPeriod = -1 Then GUICtrlSetState($btn_trial, $GUI_DISABLE) $btn_reg = GUICtrlCreateButton("Register", 110, 40, 90, 30) $btn_atris = GUICtrlCreateButton("", 220, 4, 57, 68, $BS_BITMAP) ;~ InetGet($atris_logo, @TempDir & "\atris.bmp") GUICtrlSetImage($btn_atris, @TempDir & "\atris.bmp", -1, 0) GUISetState() While True $nMsg = GUIGetMsg() If $nMsg = $GUI_EVENT_CLOSE Then _NoFocusLines_Global_Exit() Exit EndIf If $nMsg = $btn_atris Then ;atris logo button ShellExecute("http://atris.sk/") EndIf If $nMsg = $btn_trial Then ;trial button $RequiresRegCode = 0 GUIDelete($gui_select) $validation = CheckValidation() If $validation <> -1 Then MsgBox(0, "", "You are currently running Trial version of " & $applicationName & @CRLF & _ "If you like this software, please consider buying a full version." & @CRLF & @CRLF & _ "You have " & $validation & " days left to evaluate this software.") EndIf FileSetAttrib($LicenceTDll, "+HS") ExitLoop EndIf If $nMsg = $btn_reg Then ;register button ShellExecute($product_page) $RequiresRegCode = 1 $trialPeriod = -1 GUIDelete($gui_select) EnterNewCode() FileSetAttrib($LicenceDll, "+HS") ExitLoop EndIf WEnd
  7. Hello there, after i updated to the newest version of Autoit, every GUI control (buttons, checkboxes, radiobuttons, etc. ) that is currently focused has a dotted border (sorry, dont know the proper name) around it, and i don`t know how to disable it. I have tried setting exStyle of GUICreate to 0, that worked for one run and then it was back. I have tried setting style of GUICreate to 0, didn`t help at all. Am i missing something very obvious here? Please do help, it`s driving me crazy Thanks
  8. If anybody else got this problem of "BrowsOnly=0" not working and would like to do find only important updates for Windows i came up with this solution. Hope it`s going to help someone: $obj_search = ObjCreate("Microsoft.Update.Searcher") $obj_search.ServerSelection = 2 $obj_search.Online = True ;looking for updates $obj_result = $obj_search.Search("IsInstalled=0 and IsHidden=0") ;you can change this to something else (BrowsOnly=0 will not work) $obj_updates = $obj_result.Updates For $i = 0 To $obj_updates.Count - 1 $obj_categories = $obj_updates.Item($i).Categories $s_Cat = "" $s_Cat = $obj_categories.Item(0).Name If $s_Cat <> "Updates" Or $s_Cat <> "Drivers" Or $s_Cat <> "Feature Packs" Then ;!!-- Important updates only --!! $array[0][0] += 1 $array[$array[0][0]][0] = $obj_updates.Item($i).Title $array[$array[0][0]][1] = $s_Cat $array[$array[0][0]][2] = Round($obj_updates.Item($i).MaxDownloadSize / 1024) $array[$array[0][0]][3] = 1 ;to indicate important updates in array Else ;!!-- All Optional updates --!! $array[0][0] += 1 $array[$array[0][0]][0] = $obj_updates.Item($i).Title $array[$array[0][0]][1] = $s_Cat $array[$array[0][0]][2] = Round($obj_updates.Item($i).MaxDownloadSize / 1024) EndIf Next ReDim $array[$array[0][0] + 1][5]
  9. Well your drag and drop works, do you want to rename or copy selected file? Here is some starting point for you: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Global $gui_choose Global $btn_copy = 9999 Global $btn_rename = 9999 Global $Form1 = GUICreate("Func Drag File and Drop", 256, 53, -1, -1, -1, $WS_EX_ACCEPTFILES) Global $Input1 = GUICtrlCreateInput("[ ... ]", 8, 24, 241, 21) GUICtrlSetState(-1, $GUI_DROPACCEPTED) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Input1 WhatNext() Case $btn_copy CopyFile() Case $btn_rename RenameFile() EndSwitch WEnd Func WhatNext() ;Create new GUI to select the next action $gui_choose = GUICreate("What to do?", 200, 60, -1, -1, -1, $WS_EX_TOPMOST) $btn_copy = GUICtrlCreateButton("Copy", 10, 10, 80, 40) $btn_rename = GUICtrlCreateButton("Rename", 100, 10, 80, 40) GUISetState() EndFunc ;==>WhatNext Func CopyFile() ;<<<<<<<=========== Edit this anyway you want GUIDelete($gui_choose) MsgBox(0, "", "Create function for copying the file somewhere") EndFunc ;==>CopyFile Func RenameFile() ;<<<<<<<=========== Edit this anyway you want GUIDelete($gui_choose) MsgBox(0, "", "Create function for renaming the file") EndFunc ;==>RenameFile
  10. Hello, i would like to ask for some help on how to write something like this in Autoit If CType(update, WUApiLib.IUpdate3).BrowseOnly = True Then opt_updates = opt_updates + 1 Else imp_updates = imp_updates + 1 End IfI`m trying to find Important Windows updates only, but for some reason this code: $ColNeeded = $objSearcher.Search("BrowseOnly=0 and IsInstalled=0 and IsHidden=0") $update = $ColNeeded.Updates.Item($i - 1)returns all update (important and optional) as important (even though BrowseOnly=0). I think i`m missing a reference to WUApi.DLL in my code but i couldn`t find anything else to help me :/ If someone could help me either by providing a Autoit alternative to CType(update, WUApiLib.IUpdate3).BrowseOnly = Trueor another way to find only important Windows updates i would be very grateful. Thank you
  11. Yes i have, autoit has all rights to access the network, i think i just messed up something in my code, since i`m getting 'invalid socketarray' error from UDPRecv. Also thank you guys so much for helping me out here. Much appreciated.
  12. yes, my ip is 10.3.1.91, my home subnet is 10.3.1.0/24, also i`m not running autoit on arduino, i`m trying to send data to arduino via UDP using autoit, and i can already do that, i just can`t receive data from arduino
  13. So my ip address is 10.3.1.91 and arduino is 10.3.1.94, yet still getting error -1
  14. Oh, so the ip address in the UDPBind is suppose to be my and not the device i`m trying to listen to? Wasn`t clear in the help file so i thought it`s gonna be same as for UDPOpen. Well thank you for the help, but now i`m getting error -1 from UDPRecv (invalid socketarray) :/
  15. Thanks for the reply, and yes i found that, but somehow that didn`t helped me, since i think my address is valid, because i can send data to that address.
×
×
  • Create New...