Search found 1242 matches

by tmplinshi
Yesterday, 12:28
Forum: Ask For Help
Topic: (solved) AutoXYWH function - Y axis Resize bug [cause Tab3] Topic is solved
Replies: 10
Views: 165

Re: (solved) AutoXYWH function - Y axis Resize bug [cause Tab3] Topic is solved

Adding WS_CLIPCHILDREN style to the control's parent window seems fixes a lot of flickering. Tab2 Demo: #NoEnv SetBatchLines -1 Gui, +Resize +0x02000000 ; WS_CLIPCHILDREN := 0x02000000 Gui, Add, Radio, y20 h24 gSwitchTab Checked, Page1 Gui, Add, Radio, x+50 h24 gSwitchTab, Page2 Gui, Add, Tab2, xm w...
by tmplinshi
16 Sep 2018, 12:53
Forum: Ask For Help
Topic: (solved) AutoXYWH function - Y axis Resize bug [cause Tab3] Topic is solved
Replies: 10
Views: 165

Re: AutoXYWH function - Y axis Resize bug [cause found Tab3] Topic is solved

Do you have a clue how we could reduce flickering apart from introducing a sleep before refreshing? Maybe use Tab2 instead? You can set w0 h0 to Tab2 control, and set the GUI color to white. Gui, Color, White Gui, Add, Text, w100 h40 0x201 Border gSwitchTab, REVENUS Gui, Add, Text, ys w100 h40 0x20...
by tmplinshi
15 Sep 2018, 15:29
Forum: Ask For Help
Topic: (solved) AutoXYWH function - Y axis Resize bug [cause Tab3] Topic is solved
Replies: 10
Views: 165

Re: Auto XYWH function (x0.5 + y0.8) bugs Y axis Resizing Topic is solved

I found the reason. The controls under Tab3 need to use relative positions for repositioning. @lexikos Is this a bug? Gui, Add, Tab3, w300 h150 Section vTabCtrl, aaa|bbb Gui, Add, Text, x+10 y+30 Section, Hello Gui, Add, Text, y+5, ------------------- Gui, Show Return F12:: ; Get the original positi...
by tmplinshi
15 Sep 2018, 12:14
Forum: Ask For Help
Topic: (solved) AutoXYWH function - Y axis Resize bug [cause Tab3] Topic is solved
Replies: 10
Views: 165

Re: Auto XYWH function (x0.5 + y0.8) bugs Y axis Resizing Topic is solved

I can't reproduce the bug. Gui, +Resize Gui, Margin, 100 Loop, 4 { Gui, Add, Text, xm, % "Key" A_Index Gui, Add, Text, x+100, % "Value" A_Index } Gui, Add, Button, xm w160, Test Gui, Show Return GuiSize: AutoXYWH("x0.5 y0.8", "Static1", "Static2", &q...
by tmplinshi
11 Sep 2018, 03:40
Forum: Ask For Help
Topic: [Need Help]Upload with WinHTTP
Replies: 6
Views: 131

Re: [Need Help]Upload with WinHTTP

There are 2 errors in your code: 1. g___Boundary := SubStr(g___Boundary, 3, StrLen(g___Boundary)) vContentType .= "; boundary=" . g___Boundary You seems aware of the dash characters should be 2 length smaller in the header, but you did it wrong accidentally. It should be: NewVal := SubStr(...
by tmplinshi
10 Sep 2018, 03:27
Forum: Ask For Help
Topic: UrlDownloadToFile, Cloudflare, and IE8 Topic is solved
Replies: 4
Views: 102

Re: UrlDownloadToFile, Cloudflare, and IE8 Topic is solved

I guess the URL you are using is not the direct download link to the file. An example url would be great help for others to help you.
by tmplinshi
10 Sep 2018, 03:10
Forum: Ask For Help
Topic: Newbie grappling with COM
Replies: 8
Views: 123

Re: Newbie grappling with COM

The PrintOut method has the OutputFileName parameter you can specify. See https://docs.microsoft.com/en-us/office/vba/api/word.application.printout Example: wd := ComObjActive("Word.Application") wd.ActivePrinter := "Microsoft Print to PDF" wd.ActiveDocument.PrintOut(,,, "D:...
by tmplinshi
30 Aug 2018, 11:57
Forum: Ask For Help
Topic: How to check if Clipboard image changed? Topic is solved
Replies: 11
Views: 196

Re: How to check if Clipboard image changed? Topic is solved

Do you know a way to take a screenshot of the active window without Alt+PrintScreen? You can use GDIP. pToken := Gdip_Startup() ; pBitmap := Gdip_BitmapFromHWND( WinExist("A") ) WinGetPos, x, y, w, h, A pBitmap := Gdip_BitmapFromScreen(x "|" y "|" w "|" h) Gd...
by tmplinshi
30 Aug 2018, 06:40
Forum: Ask For Help
Topic: ObjBindMethod causing __Delete() method not called Topic is solved
Replies: 4
Views: 112

Re: ObjBindMethod causing __Delete() method not called Topic is solved

Thanks a lot lexikos! Good idea to use the instance address &this as the menu name. Are you binding to the MenuX object just to get at the cmd[] array? Why not just bind the command itself to a function? Yes, that's better. I was a bit confused about the bind params and the menu's callback param...
by tmplinshi
29 Aug 2018, 02:19
Forum: Ask For Help
Topic: How to check if Clipboard image changed? Topic is solved
Replies: 11
Views: 196

Re: How to check if Clipboard image changed? Topic is solved

Interesting. I like v2 and h, but I am not ready or have time to switch.
by tmplinshi
29 Aug 2018, 02:07
Forum: Ask For Help
Topic: How to check if Clipboard image changed? Topic is solved
Replies: 11
Views: 196

Re: How to check if Clipboard image changed? Topic is solved

Variables to which ClipboardAll has been assigned can be compared to each other (but not directly to ClipboardAll) by means of the <> and = operators. In the following example, the length of each variable is checked first. If that is not enough to make the determination, the contents are compared t...
by tmplinshi
27 Aug 2018, 23:15
Forum: Ask For Help
Topic: How to check if Clipboard image changed? Topic is solved
Replies: 11
Views: 196

Re: How to check if Clipboard image changed? Topic is solved

Variables to which ClipboardAll has been assigned can be compared to each other (but not directly to ClipboardAll ) by means of the <> and = operators. #SingleInstance force F4:: Clipboard := "" Send !{PrintScreen} ; Take a screenshot ClipWait,, 1 a := ClipboardAll ; Assign variable to Cl...
by tmplinshi
27 Aug 2018, 13:32
Forum: Ask For Help
Topic: ObjBindMethod causing __Delete() method not called Topic is solved
Replies: 4
Views: 112

Re: ObjBindMethod causing __Delete() method not called Topic is solved

That worked, thanks Helgef. So I guess this one not considering a bug.
by tmplinshi
27 Aug 2018, 12:55
Forum: Ask For Help
Topic: How to check if Clipboard image changed? Topic is solved
Replies: 11
Views: 196

Re: How to check if Clipboard image changed? Topic is solved

Replace a := Clipboard to a := Clipboard All . F4:: Clipboard := "" Send !{PrintScreen} ; Take a screenshot ClipWait,, 1 a := ClipboardAll ; Assign variable to Clipboard Sleep, 100 Clipboard = ; Clear Clipboard Sleep, 100 Clipboard := a ; Clipboard = Variable ToolTip, done! Try pressing ct...
by tmplinshi
27 Aug 2018, 12:39
Forum: Ask For Help
Topic: ObjBindMethod causing __Delete() method not called Topic is solved
Replies: 4
Views: 112

ObjBindMethod causing __Delete() method not called Topic is solved

Example code: a := New MenuX() a.Add("item 1", "notepad.exe") a.Show() a := "" ; This line doesn't trigger __Delete() method class MenuX { __New() { static menuIdx := 0 this.menuName := "__MyMenu_" ++menuIdx } __Delete() { MsgBox delete! Menu, % this.menuName,...
by tmplinshi
27 Aug 2018, 12:10
Forum: Ask For Help
Topic: Basic pop-up menu
Replies: 7
Views: 134

Re: Basic pop-up menu

Example: a := New MenuX() a.Add("item 1", "notepad.exe") a.Add("item 2", "mspaint.exe") a.SetIcon("item 1", "C:\Windows\System32\notepad.exe") a.Show() class MenuX { __New() { static menuIdx := 0 this.menuName := "__MyMenu_" ++men...
by tmplinshi
26 Aug 2018, 23:31
Forum: Ask For Help
Topic: Is it possible to change a MsgBox's button caption without using a timer?
Replies: 13
Views: 297

Re: Is it possible to change a MsgBox's button caption without using a timer?

but it won't display the first second of the countdown timer. That's because your timer starts in 1 second later. You can add another timer with 10 milliseconds period to initialize the button text. global wTitle := "My Timed Message Dialog Box" global Secs := 5 global sText := % "Th...
by tmplinshi
26 Aug 2018, 11:25
Forum: Ask For Help
Topic: Improve a code to make it faster
Replies: 13
Views: 263

Re: Improve a code to make it faster

Try: #NoEnv SetBatchLines, -1 #a:: Clipboard := "" Send, ^c ClipWait, 2 if ErrorLevel { MsgBox, 48,, The attempt to copy text onto the clipboard failed. return } WB.Navigate("https://korean.dict.naver.com/kovidict/vietnamese/#/search?query=" Clipboard) Gui, Show return _InitGUI()...

Go to advanced search