Jump to content

Alexxander

Active Members
  • Posts

    290
  • Joined

  • Last visited

Everything posted by Alexxander

  1. Thanks !, Very nice , but i think it need examples, it took me 2 hours to get it working (lost between version and other guides)
  2. i'm trying to control send a javascript to chome developer console ControlSend("Developer Tools","","Chrome_RenderWidgetHostHWND1","hi") why it is not working ?
  3. Hellooo, it had been a long time since i visited this lovely forum (i miss you guys ) i'm trying to put a hint for the 11 input-boxes but because i'm too lazy to write the code 11 times, i want tot use a for loop what i'm doing wrong here ? $Form1 = GUICreate("Form1", 547, 512, 186, 124) $Input1 = GUICtrlCreateInput("", 31, 24, 489, 21) $Input2 = GUICtrlCreateInput("", 31, 56, 489, 21) $Input3 = GUICtrlCreateInput("", 31, 88, 489, 21) $Input4 = GUICtrlCreateInput("", 31, 120, 489, 21) $Input5 = GUICtrlCreateInput("", 31, 152, 489, 21) $Input6 = GUICtrlCreateInput("", 31, 184, 489, 21) $Input7 = GUICtrlCreateInput("", 31, 216, 489, 21) $Input8 = GUICtrlCreateInput("", 31, 248, 489, 21) $Input9 = GUICtrlCreateInput("", 31, 280, 489, 21) $Input10 = GUICtrlCreateInput("", 31, 312, 489, 21) $Input11 = GUICtrlCreateInput("", 31, 344, 489, 21) For $i = 1 to 11 GUICtrlSendMsg("Input" & $i , $EM_SETCUEBANNER, True, "F1") Next i'm sure i had seen something that can do what i need but cant remember how, any ideas ?
  4. Thanks bro ..
  5. i want to check if mpc windows is running file 1.mp3 or not the following code will check if any window named 1.mp3 if WinExists("1.mp3","")how can i make it check for 1.mp3 and for class "MediaPlayerClassicW" so it must be mpc playing 1.mp3 not any windows named 1.mp3 any ideas ?
  6. Thank you that solved the problem
  7. in the download page it show that the latest version is v3.3.14.1 https://www.autoitscript.com/site/autoit/downloads/ when i download it i get v3.3.14.0 what is wrong ?
  8. Today i installed the latest v3.3.14.0 after a clean windows install ,during the installation of autoit my eset nod found a virus in C:\Program Files (x86)\AutoIt3\AutoIt3Help.exe here is the online scan https://www.virustotal.com/en/file/b25d575ebd36301b0e12940f01d53a922148d1471f832aeb327d1e78741d7f31/analysis/ i believe this is a false positive, but we need a prove , then we could fix this this is the first time my AV find a virus in autoit, i had been using autoit and eset fro more than 3 years , any one had the same issue ?
  9. i don't think this is possible in pure autoit i had done some OCR using tesseract which is free and open source and very good you can use it with autoit
  10. here is my modest code in case you don't understand regex (like me) $var = clipget() if StringInStr($var,"1") or StringInStr($var,"2") or StringInStr($var,"3") then;and so on msgbox(0,0,"the clipboard have one or more numbers") else msgbox(0,0,"the clipboard does not contain any numbers") endifor using a for loop $var = clipget() for $i = 0 to 9 then if StringInStr($var,$i) then msgbox(0,0,"the clipboard have one or more numbers") exitloop else if $i = 9 then msgbox(0,0,"the clipboard does not contain any numbers") endif next i did not tested this code i'm not working on windows os right now , but it should work fine ...
  11. Thank you mikell, you are awesome !
  12. Thank you ! here is my final code #include <GuiConstantsEx.au3> #include <GuiListView.au3> #include <WindowsConstants.au3> #include <file.au3> #include <array.au3> #include <Misc.au3> ;basic GUI Global $GUI = GUICreate("قائمة الجرد", 500, 600) Global $hListView = GUICtrlCreateListView("#|المادة |الكمية|مباع|في المستودع", 25, 25, 450, 500) $btn_refresh = GUICtrlCreateButton("تحديث",100,540,300,50) GUICtrlSetImage(-1, "shell32.dll", 21) GUISetState() list() func list() $buylist = _FileListToArray(@ScriptDir & "\Database\Buy") $selllist = _FileListToArray(@ScriptDir & "\Database\Sell") For $i = 1 To $buylist[0] $product = StringSplit(FileRead(@ScriptDir & "\Database\Buy\" & $buylist[$i]),";") $quantity = StringSplit(FileRead(@ScriptDir & "\Database\Buy\" & $buylist[$i]),";") $sold = 0 for $x = 1 to $selllist[0] if StringSplit(FileRead(@ScriptDir & "\Database\Sell\" & $selllist[$x]),";")[1] = $product[1] Then $sold = StringSplit(FileRead(@ScriptDir & "\Database\Sell\" & $selllist[$x]),";")[4] + $sold $stock = $quantity[4] - $sold ;MsgBox(0,0,$stock ) EndIf Next $stock = $quantity[4] - $sold GUICtrlCreateListViewItem($i & "|" & $product[1] & "|" & $quantity[4] & "|" & $sold & "|" & $stock , $hListView) Next EndFunc ;Context Menu Global $hCMenu = GUICtrlCreateContextMenu($hListView) ;add a context menu to the listview. I don't think you can add a seperate one to each item unless you write your own function. GUISetState() $z = 0 While 1 Switch GUIGetMsg() Case -3 Exit case $btn_refresh _GUICtrlListView_DeleteAllItems($hListView) list() EndSwitch WEnd the problem i'am facing is when there is a duplicate or more in the buy list i would like in that case to only only display one item and the quantity will be the duplicates sum any ideas ?
  13. i have files with csv format buy is what the user bought sell is what the user sold this small script must tell me what i have in stock(storage) #include <GuiConstantsEx.au3> #include <GuiListView.au3> #include <WindowsConstants.au3> #include <file.au3> #include <array.au3> ;basic GUI Global $GUI = GUICreate("", 500, 650) Global $hListView = GUICtrlCreateListView(" product |quantity|sold|Stock", 25, 25, 450, 600) $buylist = _FileListToArray(@ScriptDir & "\Database\Buy") $selllist = _FileListToArray(@ScriptDir & "\Database\Sell") ;_ArrayDisplay($selllist) For $i = 1 To $buylist[0] $product = StringSplit(FileRead(@ScriptDir & "\Database\Buy\" & $buylist[$i]),";") $quantity = StringSplit(FileRead(@ScriptDir & "\Database\Buy\" & $buylist[$i]),";") $sold = 0 for $x = 1 to $selllist[0] if StringSplit(FileRead(@ScriptDir & "\Database\Sell\" & $selllist[$x]),";")[1] = $product[1] Then $sold = StringSplit(FileRead(@ScriptDir & "\Database\Sell\" & $selllist[$x]),";")[4] $stock = $quantity[4] - $sold ;MsgBox(0,0,$stock ) Else $sold = 0 EndIf Next $stock = $quantity[4] - $sold GUICtrlCreateListViewItem($product[1] & "|" & $quantity[4] & "|" & $sold & "|" & $stock , $hListView) Next ;Context Menu Global $hCMenu = GUICtrlCreateContextMenu($hListView) ;add a context menu to the listview. I don't think you can add a seperate one to each item unless you write your own function. GUISetState() While 1 Switch GUIGetMsg() Case -3 Exit EndSwitch WEnd it is only working for the last item coudl any one help please ? i attached the files Database.zip
  14. I have lot's of images like this http://postimg.org/image/uz24d8z27/ http://postimg.org/image/5isx6mc61/ i would like to crop the page number (the arabic number on the top of the page) so it would be something like this ... any ideas ?
  15. @jchd thanks bro, appreciate your help... PS: Do you think we could face problems like this in the future with other texts ? (i'am not nagging), i only want to know if i should use the latest code for all my text or make more tests
  16. Bro i'am facing a problem with this text using your edited code Any ideas ?
  17. Thanks you very much, you are awesome !
  18. ​thank you for your simple solution ... but this way i loosed the symbols ex: \u2022 this is a bullet symbol "•" any other ideas ?
  19. Hello i have lots of text like this i have no idea what does this \u stuff means, after googling it i found that it is some sort of utf encoding how could i write this text to a file without loosing any characters and getting rid of \u ? EDIT: after more digging i found that i need "Converting Unicode Entities to Unicode Text" any ideas hoe to do that with autoit ?
  20. What i like about this forum members , that other forums members does not have is that they are always searching for something to stay busy thank you guys i really love this place , here is where i learned the first line of code All respect
  21. thank you all for responces what do you think about my Modest method ? $file[12] = Spider-Man Unlimited 1.4.1a$split = StringInStr($file[12],".") - 2 ;name + version $name = StringMid($file[12],1,$split) $version = StringMid($file[12],$split + 1,-1) MsgBox(0,0,"'" & $name & "_" & $version & "'")
  22. ​ this did't worked for me when i faced this : Spider-Man Unlimited 1.4.1a any ideas ?
  23. Melba23Thanks bro, was missing you ,i had not seen you around for a while ...
×
×
  • Create New...