
t1ck3ts
Active Members-
Posts
47 -
Joined
-
Last visited
Everything posted by t1ck3ts
-
Yeah, it can. Take a look at _IEAttach (Or other _IE functions) and FileWrite / FileWriteLine
-
Gosh, i broke out in tears of laugher when i saw "Exit" make a post in this thread. 10 internets to you, good sir. Glad your problem was fiexed Mikkelin
-
ImageSearch doesn't work at all.
t1ck3ts replied to qweeztar's topic in AutoIt General Help and Support
>ImageSearch @ 05 March 2008 - 12:58 PM >ImageSearch @ 14 June 2012 - 11:25 PM >ImageSearch @ 15 February 2013 - 01:17 PM Other than that, i have no idea where he could have gotten another version -
Identifying duplicates in an array
t1ck3ts replied to Seminko's topic in AutoIt General Help and Support
I find that asking a question promotes me to find the answer quicker I've doen this many times here -
I cannot view source mp3.zing.vn. Please help me!!!
t1ck3ts replied to BamBuVn's topic in AutoIt General Help and Support
Worked for me when i put myself behind a proxy, dont think he tested it. -
I cannot view source mp3.zing.vn. Please help me!!!
t1ck3ts replied to BamBuVn's topic in AutoIt General Help and Support
im guessing http://mp3.zing.vn? If it is, nothign loads for me -
Im also a little confused, but i *THINK* he means he doesnt want the array count "[0]" but instead, have his first column start at "[0]" As far as i can see, its only used with _FileReadToArray (and other such types) with the flag $FRTA_NOCOUNT (0)
-
Make autoit script hard to read
t1ck3ts replied to hiepxuan2008's topic in AutoIt General Help and Support
RTFC made a post about encrypting your script. '?do=embed' frameborder='0' data-embedContent>> Just remember, there is always a chance of the script breaking after its gone through its encryption/obfuscator process. -
Just a reminder, that Local $aResult = DllCall($ghGDIPDll, "uint", "GdipCreateBitmapFromScan0", "int", $iWidth, "int", $iHeight, "int", 0, "int", 0x0026200A, "ptr", 0, "int*", 0) has changed to Local $aResult = DllCall($__g_hGDIPDll, "uint", "GdipCreateBitmapFromScan0", "int", $iWidth, "int", $iHeight, "int", 0, "int", 0x0026200A, "ptr", 0, "int*", 0)
-
GUICtrlSetImage with an Array, inside a Do Loop
t1ck3ts replied to t1ck3ts's topic in AutoIt GUI Help and Support
You're a star Jos! Thanks for the help. -
Im trying to use GUICtrlSetImage inside a Do loop, problem is im not sure if i can use GUICtrlSetImage with an array inside the Do loop. Not sure if I'm doing this correctly. Local $Sites[3][3] = [["Google" , "google.com" , "$Google"], _ ["Localhost" , "127.0.0.1" , "$localhost"], _ ["Google2" , "google.com" , "$Google2"]] $GUI = GUICreate("GUI", 405, 294, 539, 252) GUICtrlCreateLabel("Google", 16, 16, 61, 17) $Google = GUICtrlCreateIcon("", -1, 150,16,16,16) GUICtrlCreateLabel("Localhost", 16, 16, 61, 17) $Localhost = GUICtrlCreateIcon("", -1, 150,16,16,16) GUICtrlCreateLabel("Google2", 16, 16, 61, 17) $Google2 = GUICtrlCreateIcon("", -1, 150,16,16,16) GUISetState(@SW_SHOW) Local $i = 0 Do $Ping = Ping($Sites[$i][1]) If $Ping = 0 Then GUICtrlSetImage($Sites[$i][2], "bullet_red.ico", -1) EndIf If $Ping > 500 Then GUICtrlSetImage($Sites[$i][2], "bullet_orange.ico", -1) Else GUICtrlSetImage($Sites[$i][2], "bullet_green.ico", -1) EndIf $i = $i + 1 Until $i = UBound($Sites) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
-
Autoit & Windows Parental Controls
t1ck3ts replied to t1ck3ts's topic in AutoIt General Help and Support
Yeah, i never said there was no tool for autoit, I was saying it cant find any working WMI Class for rootCIMV2ApplicationsWindowsParentalControls -
Autoit & Windows Parental Controls
t1ck3ts replied to t1ck3ts's topic in AutoIt General Help and Support
Parental Controls WMI Provider API http://msdn.microsoft.com/en-us/library/ee338592.aspx WMI Code Creator v1.0 http://www.microsoft.com/en-us/download/details.aspx?id=8572 Now im going to have a look into the scriptomatic script, from what i've read, it generates autoit code for the WMI to use in autoit. edit: looking into the scriptomatic script, it seems it cant load or find anything in rootCIMV2ApplicationsWindowsParentalControls -
Autoit & Windows Parental Controls
t1ck3ts replied to t1ck3ts's topic in AutoIt General Help and Support
No, its the actual Windows Parental Control. Limit what can be installed, removed, run, times, etc. -
I'm getting fed up with having to always add/update locations/.exe's in Windows Parental Controls, this is aimed at Blizzard games, as their update structure is kinda up the hill. I would just like to know if its possible to have autoit interact/add .exe's into the Windows Parental Control list. If someone could point me in the right direction to get started, that would be awesome! Thanks. edit Parental Controls WMI Provider API http://msdn.microsoft.com/en-us/library/ee338592.aspx WMI Code Creator v1.0 http://www.microsoft.com/en-us/download/details.aspx?id=8572 Now im going to have a look into the scriptomatic script, from what i've read, it generates autoit code for the WMI to use in autoit.
-
Thanks! That makes life so much easier! Marked as solved!
-
Im seriously confused as to how to set icons in the menu items. I just made up a small GUI as follows: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Form1", 615, 438, 192, 124) $MenuItem1 = GUICtrlCreateMenu("MenuItem1") $MenuItem2 = GUICtrlCreateMenuItem("MenuItem2", $MenuItem1) $MenuItem3 = GUICtrlCreateMenuItem("MenuItem3", $MenuItem1) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd No, i take a look at this post, from 2011 '?do=embed' frameborder='0' data-embedContent>> Well, needless to say this confused me even more Is there no simpler way to add an icon from resources, compiled into the script, to the menu item list?
-
hahaha, thanks Melba23 It always happens to me when i post something on the forums, take a look at my post, and then realise, "God damn it! you're an idiot!" Everything you said, is exactly what i changed And after taking ANOTHER look at your wiki post, i actually used a a For loop as you have just said So much more simpler too! I dont have an array for $MBBFiles but i do for $MDBFiles Heheh, thanks again!
-
I have a function in my GUI that runs on start Func MDBList() Local $MDBFiles = _FileListToArray(@ScriptDir, "*.mdb", $FLTA_FILES) Local $i = 1 Do Sleep(1000) GUICtrlSetData($Log," - " & $MDBFiles[$i] & @CRLF,1) $i = $i + 1 Until $i = $MDBFiles[0 + 1] EndFunc While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd but when it ends, it also ends the GUI, which is not what i want From reading Melba23's post in the Wiki (http://www.autoitscript.com/wiki/Interrupting_a_running_function), I think im using a GUI in MessageLoop mode but im not 100% sure how to go about it as it uses buttons being pressed and i have my code run at start up. Any way around this? EDIT: It seems to be _FileListToArray is the culprit, a simple Do loop works perfectly. After throwing in some error checking, i get this : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.: GUICtrlSetData($Log," - " & $MDBFiles[$i] & @CRLF,1) GUICtrlSetData($Log," - " & ^ ERROR From what i can tell, its because i did Until $i = $MDBFiles[0 + 1] But i dont know how i would make it display all *.mdb files, [0] is the ammount of files it found $i = 1 is to read the first file in the list. EDIT #2: Why is it when ever i ask a question on the forums, it makes me realise where my mistake was /facepalm Func MDBList() Local $MDBFiles = _FileListToArray(@ScriptDir, "*.mdb", $FLTA_FILES) Local $i = 0 Do Sleep(1000) $i = $i + 1 GUICtrlSetData($Log," - " & $MDBFiles[$i] & @CRLF,1) Until $i = $MDBFiles[0] EndFunc Is the working code
-
Hey again guys Im having an issue calling icon's from within the compiled .exe. When i call the icon from resource, i get some crappy sized one and not a 128x128 sized icon, using Resource Hacker, i did find it and its in there. Here is a make up snipet of my code: #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Res_Icon_Add=D:\AutoIt Projects\Remote View Backup\source\notfound.ico ; -5 #AutoIt3Wrapper_Res_Icon_Add=D:\AutoIt Projects\Remote View Backup\source\found.ico ; -6 #AutoIt3Wrapper_Res_Icon_Add=D:\AutoIt Projects\Remote View Backup\source\icon.ico ; -7 #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <ComboConstants.au3> #include <ProgressConstants.au3> GUICreate("Backup",347, 72,-1,-1,BitOR($WS_SYSMENU,$WS_CAPTION)) $CancelButton = GUICtrlCreateButton("Cancel",283,39,55,25) $Progress = GUICtrlCreateProgress(83,53,190,10,$PBS_SMOOTH) GUICtrlCreateIcon(@ScriptFullPath,-7,9,4,64,64) GUISetFont(8, 400, 0, "") GUICtrlCreateLabel("SQL", 95, 5, 71, 12) $SQLCheck = 1 If $SQLCheck = 1 Then GUICtrlCreateIcon(@ScriptFullPath,-6,83,7,8,8) Else GUICtrlCreateIcon(@ScriptFullPath,-5,83,7,8,8) EndIf GUISetState() ; all my other functions and codes go here.. While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop Case $CancelButton ExitLoop EndSwitch WEnd Here is an image showing you the called icon (-7) and what it should look like (if i call the icon directly from file) Am i doing something wrong?
-
Problem attaching to IE page, _IEAttach
t1ck3ts replied to t1ck3ts's topic in AutoIt General Help and Support
Updated with 'Solved' Danp2. For now it seems to be behaving, as i tweak and add more things, i will be sure to post back in here Thanks for the help, really appreciate it. -
Problem attaching to IE page, _IEAttach
t1ck3ts replied to t1ck3ts's topic in AutoIt General Help and Support
Oh wow, OK! It didnt occur to me to push the url on program startup since after a sucsessful connect, the url is remembered for next time use. I'll continue with my script and see if the complete automation was a success, Thanks again Danp2, ill like for now and update with 'Solved' as soon as im done -
Problem attaching to IE page, _IEAttach
t1ck3ts replied to t1ck3ts's topic in AutoIt General Help and Support
Hey Danp2 Thanks for getting back to me The code you gave me didnt work, the @SW_MAXIMIZE cause the software to not load. So i used your code, less @SW_MAXIMIZE #include <IE.au3> Run("C:\Program Files (x86)\Juniper Networks\Network Connect 7.1.17\dsNetworkConnect.exe") If WinWait("Network Connect - Sign In", "", 10) = 0 Then ConsoleWrite("WinWait failure" & @CRLF) EndIf $oIE = _IEAttach ("Network Connect", "embedded") If @error = $_IEStatus_Success Then ConsoleWrite("_IEAttach success" & @CRLF) _IELoadWait($oIE) If @error = $_IEStatus_Success Then ConsoleWrite("_IELoadWait success" & @CRLF) $Button = _IEGetObjByName($oIE, "btnSubmit") _IEAction($Button, "click") Else ConsoleWrite("_IELoadWait failure" & @CRLF) EndIf Else ConsoleWrite("_IEAttach failure" & @CRLF) EndIf Output: --> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop --> IE.au3 T3.0-1 Warning from function _IEAttach, $_IESTATUS_NoMatch _IEAttach failure +>00:32:59 AutoIt3.exe ended.rc:0 +>00:32:59 AutoIt3Wrapper Finished. >Exit code: 0 Time: 0.8168 I have also noticed that if i dont click on the Network Connect window that pops up, nothing will attach to it. I have to actually click on the little software window in order for the attach to work. (Thats why i use the WinActivate("Network Connect - Sign In"))