Jump to content

fraizor

Active Members
  • Posts

    50
  • Joined

  • Last visited

Recent Profile Visitors

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

fraizor's Achievements

  1. Thank you for your review dear SOLVE-SMART 1- Sure will take a look at the recommended UDF methods later , thanks 2- Yes it is not very suitable for complex browser automation, I would say the best use case for the UDF is doing simple tasks, like filling/submitting forms and doing bulk changes for a group of pages ... in fact i had multiple annoying tasks before that i need to do a simple checkbox click on a page then save the page (i had 100 pages) the task was stuck in the middle as it was not worth the trouble to install and learn about wedrivers and yet i cannot do them manually ... 3- Yes i agree that ControlSend is not the most reliable function, i believe that ControlSetText will be faster and more efficient , however i was not able to find the developer tool input box ControlID can you help me with that ?
  2. Introducing AutoFox, A Modern, Simple, No dependency, Noob friendly yet powerful Firefox UDF ! It controls the browser using the devtools , with JS commands ... REQUIREMENTS: Firefox v120 or later INSTALLATION: Copy AutoFox.au3 to "C:\Program Files (x86)\AutoIt3\Include" Use #include <AutoFox.au3> in your script LIST OF FUNCTIONS: Example Script: #include <AutoFox.au3> _AFPrepare() _AFLoadWait("https://qavalidation.com/demo-form/",50) ;load a url with 50 seconds load timeout _AFSetValue("#g4072-fullname","Autofox" ) _AFScroll(0,200);optional _AFSetValue("#g4072-email","Autofox@Email.com" ) _AFSetValue("#g4072-phonenumber","0015145451514" ) _AFScroll(0,200);optional _AFSetValue("#g4072-gender","NA" ) _AFClick("#g4072-yearsofexperience-4") _AFClick("#g4072-skills-Automation testing") _AFScroll(0,900);optional _AFSetValue("#contact-form-comment-g4072-otherdetails","Will submit after 2 sec delay ...." ) _AFExecute("document.getElementById('main').style.setProperty('background-color', 'green', 'important'); "); custom JS command Sleep(2000);optional _AFClick(".wp-block-button__link") _AFWait(10);wait 10 seconds for current page to finish loading _AFAction("print");optional DOWNLOAD: v0.1 (15/09/2024) Latest Version - v0.2 (11/01/2025) Note: This is my first UDF, i am open to all criticism AutoFox.au3
  3. Amazzing , you are a lifesaver , thank you very much for sharing this ...
  4. Amazing thank you @water thank you @ioa747
  5. @waterThank you for your response i tried to Call _ArrayAdd twice, but it created spaces in the array ... _ArrayAdd($Chart,$name) _ArrayAdd($Chart, $change_1h,1 ) Still after adding each value alone it is still not sorting properly ..
  6. Hello Everyone I have a strange issue ... The json generated array is not getting sorted properly for some reason #include <json.au3> #include <Array.au3> Dim $Chart[0][2] ; Array size of 2 columns $object = json_decode(FileRead("Test.json")) ;for local testing $Coins = json_get($object, '.data') for $i = 0 to UBound($Coins) -1 $name = json_get($object, '.data[' & $i & '].name' ) $change_1h = json_get($object, '.data[' & $i & '].quote.USD.percent_change_1h') _ArrayAdd($Chart,$name & "|" & number($change_1h,3) ) Next _ArraySort($Chart, 1, Default, Default, 1) _ArrayDisplay($Chart) _ArraySort is sorting the array like this (wrong): However if i click on the "Col 1" header it will be sorted correctly: How can i make _ArraySort sort them like clicking on "Col 1" does ? PS: i tried using the function "Number()" when i add the value to the array , but same result .. Thanks in advance Test.json
  7. Yes , actually as you know a client being offline is not only related to shutdown... It could be hardware failure, network failure, app crash .... A group policy script would not be able to detect these ...
  8. Hello I am making a simple script to share employees computers status (online/offline) I am using autoit as the windows client and PHP as the server... I was wondering if there is a method that is more reliable than constantly pinging the server with HTTP request to indicate client availability... I feel that multiple clients pinging the server every couple of seconds is a waste of resources for client and server. Anyone could direct me to the correct direction please?
  9. Thank you for your response... Yes i know about these option, and this is what i am trying to avoid... i am trying to automate a browser without any extra libraries or software ... that is why i am searching for a browser that accepts control send instead of changing my whole code login and redo my whole project ....
  10. I just discovered that chrome does not accept "controlsend" (when it is not in foreground ..) i was wondering if there is anything i can do to make chrome accept control send (while in background) ? or if there is any other browser that does not have this limitation ... PS: I cannot use IE as G sheets does not support it ...
  11. Hello I was wondering if it possible to detect Lan devices and communicate with them without a server ... I want to design a very simple tool that every device on local Lan could set a status (online , offline , away ,busy ...) We need to use it in our office to indicate if the any team member is available currently or not ... What is the simples communication method to do this ... Anyone would direct me to the correct direction?
  12. Hello i have this code that monitors the clipboard but it needs an GUI ... $gui = GUICreate("Clip Hook",400,400,-1,-1) $calldata= DLLCall("user32.dll","int","AddClipboardFormatListener","hwnd", $hHandle) GUIRegisterMsg(0x031D,"OnClipBoardChange") i am trying to monitor the clipboard without creating a GUI, However i am facing issues with DllCallbackRegister to replace (GUIRegisterMsg) this is what i tried , but ti is not working... ; Create callback function. Local $hHandle = DllCallbackRegister("_EnumWindowsProc", "int", "hwnd;lparam") ; Call dll. DllCall("user32.dll", "int", "AddClipboardFormatListener", "ptr", $hHandle) While 1 sleep(100) WEnd ; Callback Procedure Func _EnumWindowsProc($hWnd, $lParam) ConsoleWrite(ClipGet())) EndFunc what i am doing wrong ?
  13. Thank you all for your great help, all good now 👍
  14. sorry wrong link https://regex101.com/r/EC8Ob4/1
  15. Thank you for your response after trying out for 2 hours with regex i came up with this: https://regex101.com/ what do you think ?
×
×
  • Create New...