Jump to content



Photo

Trying to run app inside the GUI


  • Please log in to reply
6 replies to this topic

#1 tymo93

tymo93

    Seeker

  • Banned (NOT IN USE)
  • 19 posts

Posted 20 February 2012 - 10:27 PM

Hello,
When I run my app inside the GUI it freezes and comes up with Not Responding.
Here is my code:
#include <windowsconstants.au3> #include <constants.au3> $hGui1 = GUICreate('Parent',800,600,100,100, BitOr($GUI_SS_DEFAULT_GUI,$WS_CLIPCHILDREN)) $iBtn1 = GUICtrlCreateButton("fit",560,10,100,21) $hLV1 = GUICtrlCreateListView("lvexample",410,50,300,300) GUISetState() Run("E:\AutoClickExtreme\AutoClicker.exe") Sleep(300) WinMove("AutoClickExtreme","",0,0,395,600) WinMove("D:\WINDOWS\System32\cmd","",395,0,400,620) Sleep(300) DllCall("user32.dll", "int", "SetParent", "hwnd", WinGetHandle("AutoClickExtreme"), "hwnd", WinGetHandle('Parent')) While 1     $msg = GUIGetMsg()     If $msg = -3 Then Exit   WEnd


Here is a screenshots of the App in Action:
Posted Image

Why?! I don't understand, is it because of that cmd?







#2 tymo93

tymo93

    Seeker

  • Banned (NOT IN USE)
  • 19 posts

Posted 20 February 2012 - 10:47 PM

Ok, I made it by putting it inside, changed some settings in my program. Now, when I click the X button to exit the application, it stands on Not Responding.

#3 AlmarM

AlmarM

    Programming my way.

  • Active Members
  • PipPipPipPipPipPip
  • 1,642 posts

Posted 21 February 2012 - 08:53 AM

Ok, I made it by putting it inside, changed some settings in my program. Now, when I click the X button to exit the application, it stands on Not Responding.

I assume that is because the application is still doing stuff.
For instance: if you run this script press the button and then press [X], the script will not exit because it's still doing stuff. (Press F10 to exit).

AutoIt         
HotKeySet("{F10}", "DoStop") Global $sBigFile = @ScriptDir & "BIG_FILE.txt" Global $bStop = False Global $hWnd = GUICreate("Test", 170, 45) Global $hButton = GUICtrlCreateButton("Do stuff", 10, 10, 150, 25) GUISetState() While 1     Switch GUIGetMsg()         Case -3             Exit         Case $hButton             Do                 If $bStop Then Exit                 FileWrite($sBigFile, Random(1, 999999999, 1))             Until FileGetSize($sBigFile) >= (10 * 1024 * 1024)     EndSwitch WEnd Func DoStop()     $bStop = True EndFunc

Edited by AlmarM, 21 February 2012 - 08:53 AM.


#4 JLogan3o13

JLogan3o13

    Down to 98

  • MVPs
  • 2,114 posts

Posted 21 February 2012 - 09:41 PM

AutoClickExtreme's own website calls it a "secure keylogger" under the FAQ's. I'm thinking this would go against our own forum rules.
J.I spent 10 minutes reviewing code and thinking "What kind of drugs is this guy on?" before realizing it was something I wrote.My Scripts:Include Source with Compiled Script, Disk Maintenance for Windows XP, "Deal-A-Day" Sites, SCCM 2007 Front End, Windows Firewall UDF

#5 BrewManNH

BrewManNH

    באָבקעס מיט קודוצ׳ה

  • MVPs
  • 6,877 posts

Posted 21 February 2012 - 09:52 PM

It doesn't seem to be much different from the automation abilities of AutoIt combined with AU3Recorder. You misquoted their FAQ or at least took a part out of context.

19.About AutoClickExtreme security.

There is NO DANGER in using AutoClickExtreme! AutoClickExtreme is a secure key logger (the program that collects users' actions), as it can't transmit information through the Internet or by any other means.


How to ask questions the smart way!

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.

Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.

_FileGetProperty - Retrieve the properties of a file SciTE Toolbar - A toolbar demo for use with the SciTE editorGUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.

GUIToolTip UDF Demo - Demo script to show how to use the GUIToolTip UDF to create and use customized tooltips.

Posted Image


#6 JLogan3o13

JLogan3o13

    Down to 98

  • MVPs
  • 2,114 posts

Posted 21 February 2012 - 09:58 PM

Not sure that I took it out of context: what one person claims to be a "secure" keylogger is still a keylogger, but I see your point, BrewManNH.

I guess it is one for the Mods to decide on :)

Edited by JLogan3o13, 21 February 2012 - 09:58 PM.

J.I spent 10 minutes reviewing code and thinking "What kind of drugs is this guy on?" before realizing it was something I wrote.My Scripts:Include Source with Compiled Script, Disk Maintenance for Windows XP, "Deal-A-Day" Sites, SCCM 2007 Front End, Windows Firewall UDF

#7 Melba23

Melba23

    Yes, me!

  • Moderators
  • 15,398 posts

Posted 21 February 2012 - 10:14 PM

Hi,

I guess it is one for the Mods to decide on

So send a report so we can take a look rather than hoping that one of us stumbles on the thread. ;)

I am with BrewManNH on this - the app seems legit and you can do almost as much with AutoIt itself. Unless it appears that the OP is using it as a keylogger I am happy for the thread to continue. :)

M23
StringSize - Automatically size controls to fit text - ExtMsgBox - A user customisable replacement for MsgBox

Toast - Small GUIs which pop out of the Systray - Marquee - Scrolling tickertape GUIs

Scrollbars - Automatically sized scrollbars with a single command - GUIFrame - Subdivide GUIs into many adjustable frames

GUIExtender - Extend and retract multiple sections within a GUI - NoFocusLines - Remove the dotted focus lines from buttons, sliders, radios and checkboxes

ChooseFileFolder - Single and multiple selections from specified path tree structure - - Notify - Small notifications on the edge of the display

RecFileListToArray - An alternative to _FileListToArray with user-defined include/exclude masks, maximum recursion level, sorting and displayed path options

GUIListViewEx - Insert, delete, move, drag and sort ListView items





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users