Search found 302 matches

by Nightwolf85
31 Aug 2017, 13:21
Forum: Ask for Help (v1)
Topic: [Word COM] Printing document--print more than 1 copy
Replies: 18
Views: 3189

Re: [Word COM] Printing document--print more than 1 copy

What about:

Code: Select all

oFile.PrintOut(,,,,,,,4)
by Nightwolf85
31 Aug 2017, 10:56
Forum: Ask for Help (v1)
Topic: First Script, Several Questions
Replies: 3
Views: 647

Re: First Script, Several Questions

I have no way of testing your code, but looking through it the best guess I have is that you are using CoordMode, Pixel, Screen but reading how ControlClick works, with the method you are using, it is relative to the window not the screen, sounds like that might be the problem. Mode 1 (Position): Sp...
by Nightwolf85
31 Aug 2017, 09:04
Forum: Ask for Help (v1)
Topic: Slider control's A_GuiEvent = 4 is unreliable
Replies: 34
Views: 6840

Re: Slider control's A_GuiEvent = 4 is unreliable

Well I don't have any more assistance to give. 1. it's a lot more code for me to implement (probably a whole day's work to adapt my script) whereas just adding a single WM_LBUTTONUP function and not having to change any of my slider subroutines is a lot less work Wouldn't any solution to this proble...
by Nightwolf85
30 Aug 2017, 15:42
Forum: Ask for Help (v1)
Topic: How to find out if a child gui exists?
Replies: 3
Views: 1572

Re: How to find out if a child gui exists?

Look into LastFoundExist Gui, Test:Show, , Gui123 ;Gui, Test:Destroy ; Try uncommenting an running again. ;;; GUI, Test:+LastFoundExist If WinExist() MsgBox Yes, the specific GUI 'test' exists. Else MsgBox No, the specific GUI 'test' doesn't exists. ExitApp Edited to add destroy, to show it works if...
by Nightwolf85
30 Aug 2017, 10:41
Forum: Ask for Help (v1)
Topic: Slider control's A_GuiEvent = 4 is unreliable
Replies: 34
Views: 6840

Re: Slider control's A_GuiEvent = 4 is unreliable

pneumatic wrote:Still trying to figure it that out.
Check out my posted example, seems relatively easy to manage. You'd get to keep all the different tasks in the same place, and it should work across different GUIs even.
by Nightwolf85
30 Aug 2017, 10:07
Forum: Ask for Help (v1)
Topic: Slider control's A_GuiEvent = 4 is unreliable
Replies: 34
Views: 6840

Re: Slider control's A_GuiEvent = 4 is unreliable

edit: tested it out and it seems to work fine. I just don't understand it , read it about 10 times and my brain is refusing :roll: Every time the slider's g-label is called If the reason is 4 or Normal ( Mouse release or at the end of any other reason is always a repeated normal ) it will run your ...
by Nightwolf85
30 Aug 2017, 09:37
Forum: Ask for Help (v1)
Topic: Slider control's A_GuiEvent = 4 is unreliable
Replies: 34
Views: 6840

Re: Slider control's A_GuiEvent = 4 is unreliable

What was wrong with: #Persistent #SingleInstance Force SetBatchLines , -1 DllCall("QueryPerformanceCounter", "Int64*", CounterBefore) Sleep 1000 DllCall("QueryPerformanceCounter", "Int64*", CounterAfter) 1ms := (CounterAfter - CounterBefore) / 1000 Gui, Main:New Gui, Add, Slider, ToolTip AltSubmit x...
by Nightwolf85
30 Aug 2017, 07:07
Forum: Ask for Help (v1)
Topic: Need help with simple battleloop with pixelsearch
Replies: 2
Views: 882

Re: Need help with simple battleloop with pixelsearch

Looks like your Available function has some syntax issues. You are missing Brackets where they are needed, and have a few that aren't needed, and checking if a value equals a string you need to use quotes. Try this and see if it works: Available(Ability) ;;checks if the ability passed from Attack() ...
by Nightwolf85
29 Aug 2017, 13:53
Forum: Ask for Help (v1)
Topic: Down and left/right arrows to switch desktops
Replies: 4
Views: 1362

Re: Down and left/right arrows to switch desktops

This works for me as well:

Code: Select all

Down::Down ; Otherwise down alone doesn't work (will be fired on key release)
Down & Left::Send ^#{Left}
Down & Right::Send ^#{Right}
by Nightwolf85
29 Aug 2017, 13:25
Forum: Ask for Help (v1)
Topic: how to replace a middot "·" Topic is solved
Replies: 4
Views: 1123

Re: how to replace a middot "·" Topic is solved

This appears to work for me:

Code: Select all

line1 := StrReplace(line1, "·", ",")
Edit: So does your initial code actually. So not sure my version is any better.
by Nightwolf85
29 Aug 2017, 11:33
Forum: Ask for Help (v1)
Topic: Slider control's A_GuiEvent = 4 is unreliable
Replies: 34
Views: 6840

Re: Slider control's A_GuiEvent = 4 is unreliable

i've been working on a timer solution, too. I think the timer has to be called in more cases to update the XGraph properly: You are probably right, I just used the dragging as it was being discussed earlier in the post, good suggested change though. Edit: Actually you probably only want the timer r...
by Nightwolf85
29 Aug 2017, 10:18
Forum: Ask for Help (v1)
Topic: Slider control's A_GuiEvent = 4 is unreliable
Replies: 34
Views: 6840

Re: Slider control's A_GuiEvent = 4 is unreliable

My sliders make adjustments to an xgraph which the user needs to see in real time not just on release An alternate option for you, since the issue is caused because only one thread of the g-label can be running, the event #4 never fires if the mouse is moving too fast. We can use SetTimer to work a...
by Nightwolf85
29 Aug 2017, 08:42
Forum: Ask for Help (v1)
Topic: Slider control's A_GuiEvent = 4 is unreliable
Replies: 34
Views: 6840

Re: Slider control's A_GuiEvent = 4 is unreliable

The label slider1 is getting called often while dragging, is that desired? (You can tell because the time updates while dragging the slider around). If you only need to run your subroutine once after the slider has been moved, just check for the Event first, and return if it isn't a mouse release......
by Nightwolf85
29 Aug 2017, 07:24
Forum: Ask for Help (v1)
Topic: Help with disable contexts menu Topic is solved
Replies: 9
Views: 2061

Re: Help with disable contexts menu Topic is solved

You can't create the menu before the user clicks and expect info from the users click location to be usable in the menu. You will have to delete and re-create the menu after the user clicks, or at least the menuitems that are dependent on where they click: Gui, -MinimizeBox Gui Add, ListView, vMyLis...
by Nightwolf85
25 Aug 2017, 09:42
Forum: Ask for Help (v1)
Topic: Replacing numbers (years) in a string Topic is solved
Replies: 3
Views: 1011

Re: Replacing a number (year) in a string Topic is solved

I'm sure there is a better way since the format is standard, but this is similar to what you have: Capslock & d:: clipboard := "" Send, ^c ClipWait, 1 IF (ErrorLevel) Return temp := clipboard temp := RegExReplace(temp, "(.*?)([0-9]{4})(.*)", "$1_$2_$3") temp := StrSplit(temp, "_") clipboard := temp[...
by Nightwolf85
25 Aug 2017, 09:26
Forum: Ask for Help (v1)
Topic: #IfWinExist gui Topic is solved
Replies: 3
Views: 1228

Re: #IfWinExist gui Topic is solved

Did the Ampersand before the letter not work? that way you can get rid of the context hotkeys all together.

Edit, just saw your edit. Good to hear it works.
by Nightwolf85
25 Aug 2017, 09:15
Forum: Ask for Help (v1)
Topic: #IfWinExist gui Topic is solved
Replies: 3
Views: 1228

Re: #IfWinExist gui Topic is solved

I'm trying to use #IfWinExist with my GUI to have hotkeys active only when the GUI is ACTIVE , but unfortunately I'm not figuring out how to get this to work. It sounds like you want to use #IfWinActive not #IfWinExist , you must also put #IF at the end of the context sensitive hotkeys. Also it app...
by Nightwolf85
25 Aug 2017, 08:20
Forum: Ask for Help (v1)
Topic: Adding EMAIL button to each row of ListView Topic is solved
Replies: 3
Views: 1270

Re: Adding EMAIL button to each row of ListView Topic is solved

I'm not sure how to add a button to each row, but I have in the past created a menu that showed on right click. You can then get the info from the right clicked row and use that to send an email. Here is a small example script of how this would look: Menu, ListRCMenu, Add, Send Email, sendEmail ; Cr...
by Nightwolf85
24 Aug 2017, 14:05
Forum: Ask for Help (v1)
Topic: Clipboard formating Topic is solved
Replies: 2
Views: 748

Re: Clipboard formating Topic is solved

Press Ctrl+Shift+c to get your desired copy: ^+c:: clipboard := "" Send, ^c ClipWait, 1 IF (ErrorLevel) Return temp := clipboard temp := StrReplace(temp, "`r`n", "<br>`r`n") temp := StrReplace(temp, "<br>`r`n<br>`r`n", "</p>`r`n`r`n<p>") clipboard := "<p>" . temp . "</p>" Return Only tested with you...
by Nightwolf85
23 Aug 2017, 12:33
Forum: Ask for Help (v1)
Topic: 2nd gui window
Replies: 6
Views: 1438

Re: 2nd gui window

Change your Gui, MyGui, Add to the correct one I posted above (Gui, MyGui:Add, Edit)

Also for your submit and Font

Go to advanced search