Mast3rpyr0 Posted February 10, 2008 Share Posted February 10, 2008 For some reason, the $PsInfo_ExecBtn always seems to set itself in the GuiGetMsg() function and causes its function to loop endlessly. I ran it using _arraydisplay to see what the data from the Guigetmsg() function and it always seems to be 0x000000. its only in the program 3 times, the variable initialization, in the while loop and where the control is created: Init: Global $PsFile_ExecBtn, $PsGetSid_user, $PsGetSid_account, $PsGetSid_ExecBtn, $PsGetSid_target, $PsGetSid_pass, $PsInfo_ExecBtn, $PsInfo_user, $PsInfo_pass, $PsInfo_target, $PsInfo_appsoÝ÷ Ø*'¶º%jëh×6$PsInfo_ExecBtn = GUICtrlCreateButton(" Execute ", $win[0]/2-50, $win[1]-50, 100) maybe i have too many variables and 0x000000 now points to something other than nothing lol My UDF's : _INetUpdateCheck() My Programs : GameLauncher vAlpha, InfoCrypt, WindowDesigner, ScreenCap, DailyRemindersPick3GeneratorBackupUtility! Other : Bored? Click Here! Link to comment Share on other sites More sharing options...
Bowmore Posted February 10, 2008 Share Posted February 10, 2008 (edited) For some reason, the $PsInfo_ExecBtn always seems to set itself in the GuiGetMsg() function and causes its function to loop endlessly. I ran it using _arraydisplay to see what the data from the Guigetmsg() function and it always seems to be 0x000000. its only in the program 3 times, the variable initialization, in the while loop and where the control is created: Init: Global $PsFile_ExecBtn, $PsGetSid_user, $PsGetSid_account, $PsGetSid_ExecBtn, $PsGetSid_target, $PsGetSid_pass, $PsInfo_ExecBtn, $PsInfo_user, $PsInfo_pass, $PsInfo_target, $PsInfo_appsƒoÝŠ÷ Ø*'¶º%jëhŠ×6$PsInfo_ExecBtn = GUICtrlCreateButton(" Execute ", $win[0]/2-50, $win[1]-50, 100) maybe i have too many variables and 0x000000 now points to something other than nothing lol Is _updateCtrls() doing anything to affect $PsInfo_ExecBtn in the GUI that may cause it to send a message? Edited February 10, 2008 by Bowmore "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook Link to comment Share on other sites More sharing options...
Uten Posted February 10, 2008 Share Posted February 10, 2008 (Is it not supposed to be 0 most of the time? From the help file $array[0] = 0 or Event ID or Control IDOr did I miss something? Try to validate the value of $PsInfo_ExecBtn. My guess is that it is 0. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
Mast3rpyr0 Posted February 10, 2008 Author Share Posted February 10, 2008 _updateCtrls just makes it so if the user selects a checkbox, a certain input is disabled. If it is 0 then how would i change that? My UDF's : _INetUpdateCheck() My Programs : GameLauncher vAlpha, InfoCrypt, WindowDesigner, ScreenCap, DailyRemindersPick3GeneratorBackupUtility! Other : Bored? Click Here! Link to comment Share on other sites More sharing options...
Uten Posted February 10, 2008 Share Posted February 10, 2008 IF $PsInfo_ExecBtn=0 then you have goofed somewhere.. (and have to find out where) Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
Mast3rpyr0 Posted February 11, 2008 Author Share Posted February 11, 2008 i think i know whats up. Ther are 4 layouts of 4 windows each and thats the 5 th on the second layout, which doesnt get created until layout 2 is selected. Ill just have to make all the windows at the begining and hide em My UDF's : _INetUpdateCheck() My Programs : GameLauncher vAlpha, InfoCrypt, WindowDesigner, ScreenCap, DailyRemindersPick3GeneratorBackupUtility! Other : Bored? Click Here! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now