Jump to content

dragonheard

Active Members
  • Posts

    45
  • Joined

  • Last visited

Recent Profile Visitors

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

dragonheard's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thanks a lot + i forgot to remove that call i was working on removing all of them seems i overlooked one, i'll add the exitloop to check if it works edit: exitloop works but whenever i try to reboot trough ADB it opens another ADB gui =/
  2. Hello everyone, I've been working on an android tool which helps with some (basic) stuff in ADB and Fastboot. Features: Install adb and fastboot (downloads the setup n installs it) adb: Reboot: Device (normal), Recovery, Bootloader Install apps Fastboot Flash: kernel, Recovery Reboot Device(normal), Bootloader Well that's it for now... To be added: Maybe a tutorial how to flash roms? comment anything usefull and i'll try to add it Bugs: There's this weird bug which occurs as soon as you click adb/fastboot/install or close a newly opened GUI window. The script will pause and you won't be able to click anything anymore... you even have to close it via the icon bar in the lower right corner.. ( I would greatly appreciate any help on this as i currently am unable to find the reason for this to happen) That's it for the bugs as far as i know. Find any new bugs? glitches? comment below and i'll see what i can do any help with the code itself would also be appreciated as it's a bit messy right now =/ Download: https://www.mediafire.com/?m369j3xeyffmu51 This contains both the source and the program itself. source = ADB.au3 virus scan: https://www.virustotal.com/nl/file/b5bc565da3f842d3b750b5d734b0fc5731ec0fb0fc9c1c9932f2634db4c4403b/analysis/1398722313/ dh.
  3. Hello, For quite a long time i have been wondering something: I quite frequently use the command RunWait(@ComSpec & " /c " & "commandName") Now i'm wondering: what does the /c flag do? i apologize if the /c flag is not related to runwait as i put it like that in the title. Edit: Is it even a flag? thanks, dh Edit2: Never mind, I've found the answer: /C Carries out the command specified by the string and then terminates You can get all the cmd command line switches by typing cmd /? source: http://stackoverflow.com/questions/515309/what-does-cmd-c-mean I thought it was a flag from AutoIT but apparently it was a CMD thingy.
  4. Hello again, I'm trying to create a script which will create a folder/file structure. Example: projectname projectnameindex.php projectnamehtml projectnamehtmlindex.html projectnamecss projectnamecssindex.css here's what i have so far: #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #region program form $FORM = GUICreate("website folder builder v1 by g3mini", 216, 99, 192, 124) $PHP = GUICtrlCreateCheckbox("", 56, 30, 17, 25) $HTML = GUICtrlCreateCheckbox("", 56, 49, 17, 25) $CSS = GUICtrlCreateCheckbox("", 56, 68, 17, 25) $PHPLABEL = GUICtrlCreateLabel("PHP", 24, 35, 26, 17) $HTMLLABEL = GUICtrlCreateLabel("HTML", 18, 56, 34, 17) $CSSLABEL = GUICtrlCreateLabel("CSS", 25, 77, 25, 17) $NAME = GUICtrlCreateInput("project name", 80, 5, 121, 21) $NAMELABEL = GUICtrlCreateLabel("project name", 8, 8, 65, 17) $GO = GUICtrlCreateButton("create website", 80, 32, 123, 49) GUICtrlSetFont(-1, 35, 400, 0, "Parchment") GUISetState(@SW_SHOW) #endregion program form $PHPP = 0 $HTMLL = 0 $CSSS = 0 While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $FORM Case $FORM Case $FORM Case $FORM Case $PHP $PHPP = 1 Case $HTML $HTMLL = 1 Case $CSS $CSSS = 1 Case $PHPLABEL Case $HTMLLABEL Case $CSSLABEL Case $NAME Case $NAMELABEL Case $GO $naam = GUICtrlRead($NAME) DirCreate($naam) If ($PHPP == 1) Then FileWrite($naam"\index.php", "<?php") EndIf If ($HTMLL == 1) Then DirCreate($naam"\html") FileWrite($naam"\html\index.html", "") EndIf If ($CSSS == 1) Then DirCreate($naam"\html\css") FileWrite($naam"\html\css\index.css", "") EndIf EndSwitch WEnd I get errors on the $naam"html" etc, Could anyone please tell me how to add *normal text* to a variable so that i get the following example: $naam = "websitetest" and then it creates "websitetestindex.php" thanks =) dh.
  5. thanks a lot & i allways wondered what the tidy code changed cause i never saw any change, dh
  6. sorry it took me so long to reply i was busy for a while, i tried to add this, it does not show the previous content in the gui itself , thanks for the idea of making is save on each time a space is being sent though might make that a permanent. that's correct; what i want it to do is save any change being made to the text and whenever filename allready exists to view it's content inside the editbox thanks, dh
  7. Hello, i am trying to make a script which will keep increasing variables <makes no sense at all..> so like whenever i hit a button <my case number 1> i want it to make a new variable with a different name than the last one so for example: i hit 1 variable "var1 = data" i hit 1 variable "var2 = data" and so on and on i tried searching for solutions but the answers didn't help at all as they posted scripts which won't work the way they are supposed to. <they say use assign and then it says var not declared while it's the 1st thing happening> what i got now: HotKeySet("1","zetpositie") HotKeySet("{esc}","exit1") $pos1 = 1 dim $array[20] ;somethinghere to fill the array while 1 $getal = $array[$pos1] send ($getal) ; it's supposed to send the value of $getal yet it gives me not declared error. WEnd Func zetpositie() $pos1 = $pos1 + 1 EndFunc func exit1() Exit EndFunc please tell me what i am doing wrong and tell me how i can fix this =) thanks, Dh
  8. i'll try that thanks , & is there any way to let autoit know that a click made by autoit is a different click than an actual mouse click? cause when i want it to click as long as left mousebutton is pressed it keeps looping cause it clicks the left mousebutton (presses it)
  9. I'm sorry, you kinda lost me there: how do i put John's code and that code together?
  10. that did not work, it does open the file i think but it still does not show any content it just overwrites everything without showing it's content first. here's the code at this moment: #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("notepad by g3mini", 750, 375, 258, 127, BitOR($GUI_SS_DEFAULT_GUI,$WS_MAXIMIZEBOX,$WS_SIZEBOX,$WS_THICKFRAME,$WS_TABSTOP)) $edit = GUICtrlCreateEdit("", 0, 24, 750, 476) GUICtrlSetFont(-1, 12, 400, 0, "arial") $Input1 = GUICtrlCreateInput("Filename here.", 0, 0, 750, 21) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Form1 Case $Form1 Case $Form1 Case $Form1 Case $Input1 $name = GUICtrlRead ($Input1) case $edit $text = GUICtrlRead ($edit) $read = FileRead($name) if FileExists($name) then GUICtrlSetData($edit, FileRead($name)) FileDelete($name) EndIf FileWrite($name,$text) EndSwitch WEnd
  11. thanks billo for the help , i did get it to open it but i want it to show the content of opened file in the GUI not just open it.
  12. thanks i might try that, but i still have not found a way to make it show the content in a file if said file already exists
  13. i think i should be describing it more as a live editor there are some websites that allow this that you can even open 1 file with multiple users and instantly see what changes are being made. the reason why i make it delete the file first is because i haven't found a command which empties a file first. if i don't do so it will paste the whole text whenever a change is made behind the existing text. example: i type hi it says: hi but when i delete hi and type bla after it says: hibla because it just pasts it behind the text allready there. i've tried a if fileeists $name thing, it detects the file but it does not show it's content inside the edit box which is what i'm trying to accomplish. thanks for the help , dh
×
×
  • Create New...