AutoHotkey Community

It is currently May 27th, 2012, 9:07 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 189 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10, 11 ... 13  Next
Author Message
 Post subject:
PostPosted: November 9th, 2011, 12:38 pm 
Offline

Joined: September 17th, 2005, 6:43 pm
Posts: 242
Welcome back ruespe :) It has been a while since I have seen you on. Just updated after your post so you might want to update the script :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 9th, 2011, 1:12 pm 
Offline

Joined: June 17th, 2008, 7:51 am
Posts: 243
maestrith wrote:
Welcome back ruespe :) It has been a while since I have seen you on.
Because all my whishes were fullfilled and I couldn't find any more bugs :D
maestrith wrote:
Just updated after your post so you might want to update the script :)
Unfortunaltely that was for evil. :( Okay, I told you that GUI-Numbers can be alpha-numerical now, but not everybody has got the latest AHK_L-version. So do I. And so nothing works anymore.
Code:
---------------------------
GuiCreator.ahkl
---------------------------
Error:  Max window number is 99.  The current thread will exit.

Specifically: hl:Destroy

   Line#
   901: }
   902: {
   903: Return
   905: Return
   906: }
   907: {
   908: gui_hotkey() 
--->   909: Gui,hl:Destroy
   910: MouseGetPos,x,y,win,control
   911: control := married(control)
   912: gui_d(58), 
   913: selected := tv_get(program_window(1,control),"C")
   914: if !GetKeyState("Shift","P") 
   914: {
   915: if selected = 0

---------------------------
OK   
---------------------------

_________________
Greetings
Rog


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 9th, 2011, 3:13 pm 
Offline

Joined: September 17th, 2005, 6:43 pm
Posts: 242
0.001.91
Added:
-Remove Selected: Works with multiple selections.
Bug Fixes:
-Re-aranged the way the script works a bit. Took out a lot of lag.
0.001.90
Fixed:
-Lots of bugs (Thanks Blaq)
-Changed the name of my highlight window from hl: to 99: (sorry about that)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2011, 8:22 pm 
Offline

Joined: June 17th, 2008, 7:51 am
Posts: 243
First test, still impressed on the progress of your program, but found first bugs:

  • After resizing a Control, mousecursor stays an arrow. Moving mouse over the Control restores the cursor.
  • Drop a control at the border of the window, drag the mouse via that Control out of the window: mousecursor stays at crossarrow
  • When Creator-window is active, no Click into other windows are possible. After hitting Alt, clicks are possible again
  • After drawing a pic-control, it sometimes disapears. Min-/Maximizing Creator-window restores the control.
  • Tab: It's not possible to click a tab-item, so you can't put controls into other then the first tab-item
  • Progress options: "Range" is missing; "Target label to trigger" is not allowed; "name of Control" creates the start position and should be called so
  • What does "Test script" do?
  • Add Radiobutton: positioning near a tab is created within the tab, even when mouse is outside the tab-control at right-click
  • The font of the contorl-options window seems to be too big. 9 should be okay.

So, enough for tonight. Thanks again for your work.

_________________
Greetings
Rog


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 11th, 2011, 2:44 am 
Offline

Joined: February 19th, 2010, 6:11 pm
Posts: 150
Location: California
Wheres the cred for the delete control using the button? :(

glitches:
-have to click twice on to another window to activate it while gui creator is active.
-a control is considered selected after dragging it, I think it would make more sense if it isnt selected by dragging a control. If it was active before the drag, keep it selected.
-I am having to rapidly left click to get the dragging of a control to actually stop.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 11th, 2011, 3:46 am 
Offline

Joined: September 17th, 2005, 6:43 pm
Posts: 242
KooKsTeR wrote:
Wheres the cred for the delete control using the button? :(

I have it in the program release notes inside the program, but I did not have time to update it here because I had something to take care of.
0.001.94
Fixed:
-Move and space evenly V&H and align V&H were not updating the selection area.
0.001.93
Changed:
-If you want to move a single control that is not in the selected group you can move it without having to select it. The previous group of selected controls will remain selected.
-A control is no longer selected if all you do is move it. (KooKsTeR)
Bugs:
-Tried to fix them all. If I missed one let me know. (ruspe,KooKsTeR)
Added:
-Range to the progress control.
Changed:
-When the program loads it will focus the main area rather than the Programs window. (was bothering me.)
0.001.92
Added:
-Delete selected controls with Backspace and Delete (KooKsTeR)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 12th, 2011, 10:51 am 
Offline

Joined: February 19th, 2010, 6:11 pm
Posts: 150
Location: California
Things are looking great as ever man!

But i do have a few glitches to report though.



Glitches:
1) It seems things are not properly sticking to the grid after moving them around a bit.

2) when snap to grid is unchecked things are still trying to snap to the grid.

3) When switching between showing and not showing the grid, sometimes controls will not reappear until moused over. You might need to do it a few times before it happens. I had 3 buttons on the gui.

4) It seems adding a control will not update the "Undo History" window. So if you add a control then delete it never goes into the undo history.



Suggestions:
1) Add a quick delete option that bypasses the "Remove Control" window.

2) When in the "Undo History" window and have a undo time selected, make enter the default, so it will select.

3) Add a quick undo/redo that bypasses the "Undo History" window option.



I think thats enough for now.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 13th, 2011, 2:28 am 
Offline

Joined: September 17th, 2005, 6:43 pm
Posts: 242
0.001.95
Improved:
-Resize was very inconsistent. It should catch every time now.
Changed:
-Move and Adjust no longer will tell you that the controls will be too wide for the GUI.
Fixed:
-The cursor was flickering like mad on resizing.
-Things should not snap to grid when snap to grid is disabled. (KooKsTeR)
-When switching between showing and not showing the grid, sometimes controls will not reappear until moused over. You might need to do it a few times before it happens. I had 3 buttons on the gui. (KooKsTeR) This is something that I have been trying to fix for a while. I finally figured it out....I hope.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 13th, 2011, 4:02 am 
Offline

Joined: February 19th, 2010, 6:11 pm
Posts: 150
Location: California
Glitches:
1) Any amount of controls will not be deleted when selected. Using delete/backspace key or remove control via right click menu.

2) Multiple selection is not working for drag.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 13th, 2011, 4:18 am 
Offline

Joined: December 26th, 2010, 7:40 pm
Posts: 4172
Location: Awesometown, USA
Bug: while dragging a control quickly, the mouse leaves the control and turns back into an Arrow cursor.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 13th, 2011, 5:29 am 
Offline

Joined: September 17th, 2005, 6:43 pm
Posts: 242
KooKsTeR wrote:
Glitches:
1) Any amount of controls will not be deleted when selected. Using delete/backspace key or remove control via right click menu.

2) Multiple selection is not working for drag.

nimda wrote:
Bug: while dragging a control quickly, the mouse leaves the control and turns back into an Arrow cursor


Welcome nimda! Glad to see you are trying my script and thanks for the report!
0.001.97
Changed:
-Right button only needs one click when the main window is not active. (KooKsTeR)
0.001.96
Fixed:
-Remove Controls: Working again. (thanks for pointing it was broken KooKsTeR)
-Multiple Selection: Working again. (thanks for pointing it was broken KooKsTeR)
-while dragging a control quickly, the mouse leaves the control and turns back into an Arrow cursor (nimda), Mouse should stay where you clicked.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 13th, 2011, 6:23 pm 
Offline

Joined: February 19th, 2010, 6:11 pm
Posts: 150
Location: California
Maestrith I was able to fix what you were working on last night.

Insert the bottom code after this code here:
Code:
 loop,parse,keys,`n
 {
  if Gui_split(A_LoopField,"=",2)
  Hotkey,% Gui_split(2),Hotkey_add,On
  Hotkeys[Gui_split(2)]:=Gui_split(1)
 }


Insert the following code at line 599
Code:
#InstallKeybdHook
WinGet,ID,ID,GUI Creator (Right click for menu) ahk_class AutoHotkeyGUI
If ( Firstload = 1 )
IfWinNotActive,GUI Creator (Right click for menu) ahk_class AutoHotkeyGUI
Loop
{
   sleep 5
   GetKeyState,Key1,RButton,P
   GetKeyState,Key2,LButton,P
   mousegetpos,,,Win,control
   If ( key1 = "D" ) && ( Win = ID )
   {
     WinActivate,GUI Creator (Right click for menu) ahk_class AutoHotkeyGUI
     RButton()
     break
   }
   Else if ( key2 = "D" ) && ( Win = ID )
   {
      test_hotkey()
      break
   }
}
Firstload := 1


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2011, 3:58 am 
Offline

Joined: September 17th, 2005, 6:43 pm
Posts: 242
0.001.98
Fixed:
-Right click works properly
0.001.97
Changed:
-When the Creator window is not active, You can do not need to click on the window first to interract with the controls. (concept by KooKsTeR)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2011, 8:42 am 
Offline

Joined: February 19th, 2010, 6:11 pm
Posts: 150
Location: California
You got it working!

Only one glitch to report with it.
1) If you have one or more controls selected, then activate a different window, then click back on one of the selected controls. The controls disappear. If you click on the gui, nothing happens, but if you click on any of the controls they disappear, well get aligned with the last active window, which for me typically makes them disappear.

[edit]
After further testing, I found:
1) it only does this when the window i activate is on a different monitor. If it's on the same window as the gui creator it doesn't happen.
2) Running in sandbox/saving and running made no difference.
3) If i make th gui the size of the screen and then select the other program it does not move. but as i make the gui smaller and smaller the controls move more and more.
[/edit]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 15th, 2011, 12:47 am 
Offline

Joined: September 17th, 2005, 6:43 pm
Posts: 242
0.001.103
Bug:
-Still working on it, but this one looks pretty good. Let me know if it works...or not.
0.001.102
Bug:
-Was not allowing you to click away from the program...sorry everyone.
0.001.101
Bug:
-Hopefully I have this sorted out. About half of the time when you try to resize a control it would get stuck.
0.001.100
Fixed:
-Duplicating with the hotkey was not working correctly.
0.001.99
Changed:
-More of a background thing, but the right click menu will come up when you release the right button.
-Arrow keys for fine movement now works at all times.
-When selecting items there should no longer be a winset,reload.
Fixed:
-Right click was not working on selected items.
-If you do not have any controls selected it will not ask you if you want to delete controls anymore.
-It no longer says "this can not be undone" because I have the undo implimented.
Added:
-Hotkeys for deleteing, editing, removing, duplicating, displaying script. Check the Hotkey Options for changes.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 189 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10, 11 ... 13  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Rajat and 8 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group