Jump to content

Gotemp

Active Members
  • Posts

    39
  • Joined

  • Last visited

Recent Profile Visitors

132 profile views

Gotemp's Achievements

Seeker

Seeker (1/7)

1

Reputation

  1. Melba, i mean he's a troll as in continues to poke his nose in where its not needed nor required in and he he has done this on more than one occasion which resulted in me being blamed for something i had not done i quite frankly find this forum very unwelcoming with the mod and devs seemingly wanting to hide facts and truths from users. The user asked a question how to secure his script i pointed out that it can be decompiled quite easily with that the security added would be useless i really have NO idea why you lot seem to want to hide this fact? Is it one of them "if they dont know it wont hurt" kind of things? Anyway like i said i find this forum/community unwelcoming and quite frankly have had enough of it and will not be using it from now on i can see why its not thriving community with the way you treat people and hide facts here. Please feel free to give me a warning or some other crap because i wont be signing in again.
  2. Title of the thread is "Secure your script" to me securing could mean anything, and yes the user does then talk about adding a serial number to his script, i mealy pointed out that autoit is easy to decompile compared to other languages which would result in that serial number being useless. John, i dont know why now but you seem to have some sort of grudge against people either that or your justa forum troll hence the 7k posts and i say this because this is the third time (4th if you count your bad code in the last thread) that you poked your nose in and said something useless or have accused someone of something. Like you accused me of sharing code with someone when oh yes you were completely wrong.
  3. Ive used Greenshot for a few days then i re-installed my computer and forgot about it ts not a bad little utility. @TheSaint its just a screen capture program but i liked the fact i could capture parts of the screen without the need of an editor and cropping, only thing that would of been nice was the naming of the file after maybe thats in there but i never really looked for it and use to F2 every file for the rename.
  4. Hi John from your explaining you want the following... Start Notepad = MsgBox > You close notepad Start Word = MsgbBox > You close word Start Notepad = MsgBox > You close notepad Start Word = MsgbBox > You close word Can you tell me what my code did your end because my end it did as you explained. If its that you also want a closing message then (yes i used mspaint i got fed up of closing my browser =P): While 1 If ProcessExists ("mspaint.exe") Then test("mspaint is open") ProcessWaitClose("mspaint.exe") Test("mspaint was closed") ; <=== close message ElseIf ProcessExists ("notepad.exe") Then test("Notepad is open") ProcessWaitClose("notepad.exe") Test("notepad was closed") ; <=== close message Else Sleep(100) EndIf WEnd I'll also add your doing alot unnecessary typing :/
  5. If it wasn't possible then obfuscators wouldnt be needed.
  6. I personally dont see why you have created this thread when you already have one further down that the answer could be posted in infact post #10 is you asking this very same question. < same question but you made a new post! Personally i dont see how you have tried to achieve this, to me it looks like you just thrown code in there without even reading how its ment to work, and with me being somewhat of a lerner myself trying to dismantle our code and getting it to work is just too much hassel. Do, Until False < until what is false? Like i said read and learn before throwing code into a bucket and wondering why it does not work.
  7. Update: ProcessWaitClose - User needs to close the window rather than it being automatic Test() updated for personal message as seen below. While 1 If ProcessExists ("chrome.exe") Then test("Chrome is open") ProcessWaitClose("chrome.exe") ElseIf ProcessExists ("notepad.exe") Then test("Notepad is open") ProcessWaitClose("notepad.exe") Else Sleep(100) EndIf WEnd Func Test($message) MsgBox(0, 0, $message) EndFunc ;==>Test
  8. Probably a better way f doing this but thought id give it a shot still learning myself see. I used Chrome, which brought up two message boxes i was too lazy to find wordpad on windows 8 I used ProcessClose to close the application, you could use Sleep(5000) for 5 seconds to close it yourself though. While 1 If ProcessExists ("chrome.exe") Then test() ProcessClose("chrome.exe") ElseIf ProcessExists ("notepad.exe") Then test() ProcessClose("notepad.exe") Else Sleep(100) EndIf WEnd Func Test() MsgBox(0, 0, 0) EndFunc ;==>Test
  9. If you really want to secure your script i think you would be better re-writing it in a different language and making it hard to decompile. Though i will admit ive never really got the obfuscator to work but then ive never gone to release anything that needed securing specially with my noob like scripts only being personal use.
  10. Like i said in my first post image search is not 100% accurate, you can use one image that works flawless for hours restart the script and it will not find the image for some unknown reason, if your issue is only with Windows Photo Viewer then have you thought about not using it for tests? I personally dont use it as it discolors the images but then again i thought that this might of been a Windows 8 bug. All my tests are done on the Desktop or in a Windows Folder, but Windows Paint works just fine too.
  11. Thanks Melba will read up on recursion, i normally use a loop and sleep command but i wrote this code right before bed when i was very tired and im still tired now i got up! But here is what i mean The code is a loop of 5 Paretns, within them 5 Parents are the children which is the code that the user picks for example if the user picks child3 > Check runs = 0 Continue with child3 code once thats complete goto the next parent and child action so in the code below we need to do all the code in Parent1 > Child3 before we move onto Parent2 > Child1 So its Parent > Child3 > Check > Child3 > Parent2 > Child1 > Check > Chld1 > Parent3 if that makes sense guess not because im confused o.O lol $parent = 1 $child1 = 3 $child2 = 1 Func Test() Do Select Case $parent = 1 Select Case $child1 = 1 Check() ;code for action1 $parent = $parent + 1 Case $child1 = 2 Check() ;code for action2 $parent = $parent + 1 Case $child1 = 3 Check() ;code for action3 $parent = $parent + 1 EndSelect Case $parent = 2 Select Case $child2 = 1 Check() ;code for action1 $parent = $parent + 1 Case $child2 = 2 Check() ;code for action2 $parent = $parent + 1 Case $child2 = 3 Check() ;code for action3 $parent = $parent + 1 EndSelect EndSelect Until $parent > 4 Exit EndFunc Also which browser is beter for the autoit code? Im using chrome and its always indented to the left like above makes it hard to read imo :/ anyawy better get ready off out for the day.
  12. Is it possible to jump back into a case where you left off? I'll post some demo code with what i mean and i keep having ideas on how to do it but so far they have failed, even re-wrote the damn thing which took me a good 30mins and then... it failed! Anyway here is an example i just wrote because i dont know if im doing it right or if there is a better way, plus its getting late. Sorry its not indented or anything, the autoit code button always fails to work properly. -.- Global $action = 1 Global $action1 = 3 Global $action2 = 2 Func Test() Do Select Case $action = 1 Select Case $action1 = 1 Check() ;code for action1 Case $action1 = 2 Check() ;code for action2 Case $action1 = 3 Check() ;code for action3 EndSelect Case $action = 2 Select Case $action2 = 1 Check() ;code for action1 Case $action2 = 2 Check() ;code for action2 Case $action2 = 3 Check() ;code for action3 EndSelect EndSelect Until $action > 4 Exit EndFunc Func Check() ;imageseach code here if $image = 1 then ;image exsists it shouldnt so re-run code Check() ElseIf $image = 0 Then ;image does not exsist this is good continue ;where $action1,$action2 or $action3 left off EndIf EndFunc
  13. Idea scrapped annoying me.
  14. The image search starts from the top left and works down to the bottom right, so if shot.bmp is before your gui version then yes it will say "Found!" open up notepad or something to block off that image on your desktop and try again or change $x = 0 to $x = "after image" $y = "after image" Images searching is not 100% accurate either and can "sometimes" go over the image and say "not found", when i played about with it i ended up using the same image multiple times (when it faled id take a new screen, crop the image and tell my script to look for both and add more when needed.) Here is a basic example of what i mean which can be improved, i have another somewheer using a basic array but this was easier for modification ;images should be names test0, test1, test2 etc $image = "test0" $imgdir = "image" $c = 5 ; number of image to check dont matter if this is 20 and you have only 2 images For $i = 0 To $c $img = _ImageSearchArea($imgdir & $image & $i & ".png", 1, 0, 0, @DesktopHeight, @DesktopWidth, $x, $y, $tollerence) If $img = 1 Then MouseClick("left", $x, $y) Return EndIf Next As you can see no error checking that was another 20 lines down. Btw i have never attepmtped to do what your doing, mine has always been desktop or web based.
  15. Yep that was it took me a whole two mins of "eh... WHY YOU NO WORK!!!" lol
×
×
  • Create New...