Jump to content

Scinner

Active Members
  • Posts

    109
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Scinner's Achievements

Adventurer

Adventurer (3/7)

0

Reputation

  1. Hi guys! So I´ve been playing around with AutoIt again after a couple of years of absence. I'm trying to make ImageSearch work in my favor and got a test script going that looks like this: #include <ImageSearch2015.au3> Local $findImage[8], $resultPosition, $tolerance, $transparency, $waitSecs, $x, $y $findImage[0] = 7 $findImage[1] = "C:\Users\Micke\Desktop\AutoIt Script\ImageSearch2015\HK.png" $findImage[2] = "C:\Users\Micke\Desktop\AutoIt Script\ImageSearch2015\K4.png" $findImage[3] = "C:\Users\Micke\Desktop\AutoIt Script\ImageSearch2015\K5.png" $findImage[4] = "C:\Users\Micke\Desktop\AutoIt Script\ImageSearch2015\R8.png" $findImage[5] = "C:\Users\Micke\Desktop\AutoIt Script\ImageSearch2015\S7.png" $findImage[6] = "C:\Users\Micke\Desktop\AutoIt Script\ImageSearch2015\S8.png" $findImage[7] = "C:\Users\Micke\Desktop\AutoIt Script\ImageSearch2015\SJ.png" $x=0 $y=0 $waitSecs = 1 $findImage = _WaitForImagesSearch($findImage, $waitSecs, $resultPosition, $x, $y, $tolerance, $transparency = 0) ConsoleWrite($findImage & @CRLF) It works but kind of slow(2.5 s) and the area I want to search for those .png's is much smaller than my desktop, so my question is how would I go about setting that smaller area up in my script?
  2. How do I go about importing a server time to an AutoIt script?
  3. Thx, Im a newb but have been registered quiet a while. Wouldn't have made it with your info though. Thx, that works like a charm!
  4. Hello! Id like some help finishing this little GUI-problem. What I want is to show one new func in the GUI everytime I press the "+button" and take away the last func everytime I press "-button". #include <GUIConstantsEx.au3> Example() Func Example() Local $Button_2, $Button_3 $create = GUICreate("Edit:", 200, 200) GUISetBkColor(0xEBD7AC) $Button_2 = GUICtrlCreateButton("+", 90, 150, 20) $Button_3 = GUICtrlCreateButton("-", 112, 150, 20) GUISetState(@SW_SHOW) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop Case $Button_2 Call("Send1") ;first time $Button_1 is pressed the "Call("Send1")" function will show up in Gui. Second time its pressed "Call("Send1")" and "Call("Send2") will show and third time the "Call("Send1")", "Call("Send2") and "Call("Send3") will show. Case $Button_3 ;every time $Button_3 is pressed the last "Call("Send1-3")" will disappear. EndSwitch WEnd EndFunc ;==>Example Func Send1() GUICtrlCreateLabel("1.", 10, 30) $x = GUICtrlCreateInput("000", 22, 27, 27, 20) EndFunc Func Send2() GUICtrlCreateLabel("2.", 10, 55) $x2 = GUICtrlCreateInput("000", 22, 52, 27, 20) EndFunc Func Send3() GUICtrlCreateLabel("3.", 10, 80) $x3 = GUICtrlCreateInput("000", 22, 77, 27, 20) EndFunc
  5. The string looks like this: <table class="box smallPadding" cellspacing="0" style="empty-cells:show;"> <tr style="height: 20px;"> <td class="box-item icon-box firstcell"><a href="/arne" title="1163"><span class="icon header w"> </span></a></td> <td class="box-item"><span id="w" title="1163" class="re">52733</span></td> <td class="box-item icon-box"><a href="arne2" title="1163"><span class="icon header s"> </span></a></td> <td class="box-item"><span id="stone" title="1163" class="re">52000</span></td> <td class="box-item icon-box"><a href="arne3"1163"><span class="icon header i" > </span></a></td> And I want to strip out everything but the 2nd line from the bottom.
  6. How do I know what linend char I have? I get the source from _IEBodyReadHTML into a variable and then I want to strip the string of everything else but one line.
  7. If I have a string in a variable that contains lots of chars and I want to strip the string down to a specific line, is that possible? Or is there no lines in a variable?
  8. Is there a way to use FileReadLine to read a line in a variable? Without having to save the variable in a file and then use FileReadLine.
  9. I guess Im not that realistic but you gotta keep the faith
  10. I want an _IEBodyReadHTML function but for Opera
  11. Would love to get som example scripts to all the functions! Edit: Especially the OpenGetURL() function! Also, I would like to see the following functions in Opera UDF: _IEBodyReadHTML _IEBodyReadText _IELoadWait
  12. Thx mate! Will look in to that!! Edit: Would be nice with an example script. Im quiet inexperienced in AutoIt.
  13. I use Opera. Do the Opera UDF contain commands for that? Have looked at it but cant find it. Functions List: User's funcs... 1)_OperaFindDir 2)_OperaGetDir 3)_OperaGetDownloadsDir 4)_OperaGetVersion 5)_OperaGetTitle 6)_OperaGetProfileDir 7)_OperaGetMailDir 8)_OperaGetUserJSDir 9)_OperaGetPluginsDir 10)_OperaGetSessionFiles 11)_OperaGetSkinFile 12)_OperaGetLangFile 13)_OperaGetBookmarksFile 14)_OperaGetCacheDir 15)_OperaGetConfigFile 16)_OperaSetConfigFile 17)_OperaSetSkinFile 18)_OperaSetUserJSDir 19)_OperaSetLangFile 20)_OperaSelectFolder 21)_OperaAddMenuItem 22)_OperaRemoveMenuItem 23)_OperaIsRunning 24)_OperaRun 25)_OperaClose 26)_OperaKill 27)_OperaRestart 28)_OperaScreenCapture 29)_OperaMultiUserModeIsOn 30)_Opera_Integration_Example 31)_OpenGetURL 32)_OperaToggleMenuItemState internal funcs... 1)__Opera_WinGetTitleEx 2)__Opera_WinGetTitleByPID 3)__Opera_ProcessPathExists 4)__Opera_ProcessGetPath 5)__Opera_PathIsFolder 6)__Opera_PathIsOperaDir 7)__Opera_PathIsOperaProfileDir 8)__Opera_PathIsOperaConfigFile 9)__Opera_PathIsOperaLangFile 10)__Opera_PathIsOperaSkinFile 11)__Opera_PathIsOperaBookmarksFile 12)__Opera_PrefixStrIsOperaConfig 13)__Opera_ConfirmExitOperaWinExists 14)__Opera_Correct_Opera_Path 15)__Opera_GetOperaPIDs 16)__Opera_GetOperaPrefsFileName 17)__Opera_GetOperaPageHandle 18)__Opera_EnumOperaChildWindowsProc 19)__Opera_ExpandOperaMenuSectClassName 20)__Opera_Backup_Config 21)__Opera_FileNewName 22)__Opera_UTF8ToAnsi 23)__Opera_StringIsUTF8Format 24)__Opera_StringToUTF 25)__Opera_IniWriteToPos 26)__Opera_IniDeleteRegExp 27)__Opera_WinAPI_FindWindowEx 28)__Opera_WinAPI_GetClassName 29)__Opera_WinAPI_PathRemoveFileSpec 30)__Opera_WinAPI_AssocQueryString
  14. The page Im currently viewing in my web browser. Edit: Its behind a login. And if I just use _INetGetSource and the url it wont get the source I want.
×
×
  • Create New...