Search found 1110 matches

by TLM
Today, 14:56
Forum: Ask For Help
Topic: Ansi VS Unicode
Replies: 7
Views: 116

Re: Ansi VS Unicode

Perhaps but I started thinking maybe you need to make an API call to a language function that would switch it over ( and back if necessary ) for your script.
I'd try both ( or any other possible solution ).. BTW Switching TO Swedish didn't result in the same output for me :/ ...
by TLM
Today, 14:04
Forum: Ask For Help
Topic: Comparing two variables?
Replies: 12
Views: 136

Re: Comparing two variables?

try: currency = $1,000.25 msgbox % RegExReplace( currency, "[$,\.]" ) To keep the decimal place use [$,] It would be nice if StrReplace() had an `array for search text` option like StrSplit() ;) edit: BTW if you use the full needle, you can combine the above with the function I provided ea...
by TLM
Today, 12:45
Forum: Bug Reports
Topic: 1.1.29.00 Win32 API Call `EnumClipboardFormats` Fails
Replies: 7
Views: 127

Re: 1.1.29.00 Win32 API Call `EnumClipboardFormats` Fails

hrmm will test a hwnd & on Win10 later today..
edit: adding the script handle to OpenClipboard() did work in 1.1.29.00
( although now I'm not sure why it worked without one before )
thanks
by TLM
Today, 12:42
Forum: Offtopic
Topic: « What's on your mind? » Topic is solved
Replies: 3836
Views: 437288

Re: « What's on your mind? » Topic is solved

nnnik wrote:Why does that make you facepalm?
moar werk lol
anyone else have to run this pita??
Image
edit: oh wait, it just made my life 8billion times easier nvmd :lol:
by TLM
Today, 11:08
Forum: Bug Reports
Topic: 1.1.29.00 Win32 API Call `EnumClipboardFormats` Fails
Replies: 7
Views: 127

Re: 1.1.29.00 Win32 API Call `EnumClipboardFormats` Fails

I'm starting to think this has less to do with the function call.. Anyway I've modified this function to display the clipboard formats: EnumClipFormats() { FmtArr := [], DllCall( "OpenClipboard" ) While ( DllCall( "CountClipboardFormats" ) >= a_index ) { FmtArr.Push( fmt := DllCa...
by TLM
Yesterday, 16:46
Forum: Bug Reports
Topic: 1.1.29.00 Win32 API Call `EnumClipboardFormats` Fails
Replies: 7
Views: 127

1.1.29.00 Win32 API Call `EnumClipboardFormats` Fails

When I try to enumerate clipboard formats using DllCall( "EnumClipboardFormats", uint, *0 or 1* ) in the latest version I only return 0 now where in the previous build I returned the correct clipboard formats.
by TLM
Yesterday, 16:18
Forum: Bug Reports
Topic: 1.1.29.00 bugged
Replies: 4
Views: 121

Re: 1.1.29.00 bugged

Same thing here trying to call win32 api functions. I had to downgrade.. looking into it more now.
by TLM
Yesterday, 15:56
Forum: Bug Reports
Topic: 1.1.29.00 Display Issue
Replies: 7
Views: 127

1.1.29.00 Display Issue

Latest version does not display inline values correctly MsgBox % ">>" ["A", "B", "C"].Count() "<<" MsgBox % ">>" ["A", "B", "C"].Length() "<<" Both display << only.. Isolated works MsgBox % ">>&q...
by TLM
Yesterday, 14:14
Forum: Ask For Help
Topic: How to make this timer stop execution the rest of my code
Replies: 8
Views: 105

Re: How to make this timer stop execution the rest of my code

I forgot to remove the x y coordinate parameters KillTimer( width, msg ) ; remove mx & my parameters { CoordMode, Mouse, Screen mouseGetPos,mx,my Progress, cw000000 CTFFFFFF W%width% ZX1 ZY1 x%mx% y%my% m b fs25 zh0, % msg, , , Arial if ( msg = "Canseled" ) { Sleep 400 Progress, Off Se...
by TLM
Yesterday, 14:10
Forum: Ask For Help
Topic: Restarting a Window's Service
Replies: 1
Views: 29

Re: Restarting a Window's Service

Have you tried WInServ ??
by TLM
Yesterday, 13:47
Forum: Ask For Help
Topic: AHK Script freezing due to pop up.
Replies: 3
Views: 59

Re: AHK Script freezing due to pop up.

If it's a modal alert it like this: https://i.imgur.com/C6dm2Pd.png It can be closed like any other standard dialog box. For instance: WinWait Message from webpage ControlClick, Button1, Message from webpage If it's a DOM based dialog box create a reference to it and then use the close() met...
by TLM
Yesterday, 13:00
Forum: Ask For Help
Topic: Comparing two variables?
Replies: 12
Views: 136

Re: Comparing two variables?

What I meant was AHk does not see the difference between 20 & 20.00 for evaluation purposes. I would divide the whole integer by 100 then either Format or Round the floating point number to 2 decimal places. msgbox % ConvertInt( 1000 ) "`n" ConvertInt( 75 ) "`n" ConvertInt( 1...
by TLM
Yesterday, 12:35
Forum: Ask For Help
Topic: Simple key to end process?
Replies: 3
Views: 49

Re: Simple key to end process?

Hotkeys themselves aren't to be placed within loops ( although the Hotkey command can be ) This works for me: Loop { MouseMove, 1503,372 Sleep, 100 Click Sleep, 100 Send ^v Sleep, 200 Send {Enter} Sleep 400 Send {Enter} Sleep 400 Send {Enter} Sleep 100 } return ; << not necessarily needed in this ca...
by TLM
Yesterday, 12:31
Forum: Ask For Help
Topic: Merge functions? Topic is solved
Replies: 5
Views: 77

Re: Merge functions? Topic is solved

...I'm wondering if I can merge Function 1 and 2 but define that a key must be pressed to continue with the function. Just so I understand, would the continuation be contingent upon whether a specific hotkey is pressed? For instance: 1::function1(), function2() 2::function1(), function2() function1...
by TLM
24 May 2018, 19:27
Forum: Ask For Help
Topic: Simple key to end process?
Replies: 3
Views: 49

Re: Simple key to end process?

AnimeSan wrote:I tried putting Esc::ExitApp in different locations...

Can you please explain what you mean by "different locations" ? It really should work
by TLM
24 May 2018, 18:54
Forum: Ask For Help
Topic: How to make this timer stop execution the rest of my code
Replies: 8
Views: 105

Re: How to make this timer stop execution the rest of my code

Yes you can jump out of a function

Code: [Select all]GeSHi © Codebox Plus

SomeFunction()
Return

SomeLabel:
msgbox Label Fired!
Return

SomeFunction()
{
gosub, SomeLabel
}
But the way your script is at present, it's a terrible idea going forward.
by TLM
24 May 2018, 18:50
Forum: Ask For Help
Topic: Comparing two variables?
Replies: 12
Views: 136

Re: Comparing two variables?

Well the decimal definitely isn't the issue: msgbox % ( 1000 >= 20.00 ) " " ( 1000 >= 20 )
by TLM
24 May 2018, 18:30
Forum: Ask For Help
Topic: How to make this timer stop execution the rest of my code
Replies: 8
Views: 105

Re: How to make this timer stop execution the rest of my code

This will stop the timer and break the While loop.... CoordMode, Mouse, Screen #SingleInstance, Force Gui, Add, Button, x2 y0 w163 h67 gEQ2, Test Gui, Show, w195 h92, Untitled GUI return Timer() { Global TimerOff := true mouseGetPos,mx,my mx+=25 my-=15 Progress, cw000000 CTFFFFFF W150 ZX1 ZY1 x%mx% ...
by TLM
24 May 2018, 17:02
Forum: Ask For Help
Topic: 2 different hotkey's , one for each script, but only one works
Replies: 2
Views: 37

Re: 2 different hotkey's , one for each script, but only one works

The Manual wrote:$ The $ prefix forces the keyboard hook to be used to implement this hotkey, which as a side-effect prevents the Send command from triggering it. The $ prefix is equivalent to having specified #UseHook somewhere above the definition of this hotkey.

Go to advanced search