Search found 14 matches

by shadowvox
Wed Aug 21, 2019 7:29 pm
Forum: Coding Questions
Topic: MessageRequester to Front
Replies: 2
Views: 965

Re: MessageRequester to Front

Everything wrote:

Code: Select all

MessageBox_(0, "TOP", "Title", #MB_TOPMOST|#MB_ICONWARNING)

Code: Select all

MessageRequester("", "", ...|#MB_TOPMOST)
Thank you.
by shadowvox
Wed Aug 21, 2019 6:55 pm
Forum: Coding Questions
Topic: MessageRequester to Front
Replies: 2
Views: 965

MessageRequester to Front

Is there a way to bring a messagerequester to the front of all screens?
My program opens and fills some info into an excel sheet, then prompts the user for some info. The messagerequester that does so is always behind the excel sheet. I need it to come to the front.
by shadowvox
Sun Aug 04, 2019 11:56 am
Forum: Coding Questions
Topic: Scrolling the WebGadget
Replies: 12
Views: 3131

Re: Scrolling the WebGadget

@RSBasic and @kenmo
Message received and understood.
Mouse abuse is real.
Many have not even heard of it.
There could be a mouse in your house being abused.
Please help. Your donation will go a long way to help stop mouse abuse.
This message paid for by the Speedy Gonzales Memorial Foundation.

But ...
by shadowvox
Tue Jul 30, 2019 6:49 pm
Forum: Coding Questions
Topic: Scrolling the WebGadget
Replies: 12
Views: 3131

Re: Scrolling the WebGadget

I found a simple way, and it works great.

Macro Click()
mouse_event_(#MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
mouse_event_(#MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)
EndMacro

; Click at the current location
Click()

Delay(1000) ; Wait a second

; Move to a new location and click it
SetCursorPos_(50, 50 ...
by shadowvox
Sat Jul 27, 2019 2:31 am
Forum: Coding Questions
Topic: Scrolling the WebGadget
Replies: 12
Views: 3131

Re: Scrolling the WebGadget

Using @kenmos sample code and @Freaks code:
(this one scrolls by the number of pixels )

;edited for clarity :)

or use @RSBasic excellent webgadget
https://www.purebasic.fr/english/viewtopic.php?p=535740#p535740
also the mighty @JHPJHP has an HTML5 library that works great



Norm

Thank you ...
by shadowvox
Wed Jul 24, 2019 10:46 pm
Forum: Coding Questions
Topic: Scrolling the WebGadget
Replies: 12
Views: 3131

Re: Scrolling the WebGadget

Hi. You'll get much better response if you post a working code example.

Looks like a bug to me. X resets Y to 0, and Y resets X to 0.

Somebody probably has a clever API fix though..?

OpenWindow(0, 0, 0, 480, 480, "", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
WebGadget(0, 0, 20, 480 ...
by shadowvox
Wed Jul 24, 2019 10:42 pm
Forum: General Discussion
Topic: Strange behavior. Odd code injected when exiting editor.
Replies: 2
Views: 1770

Re: Strange behavior. Odd code injected when exiting editor.

Bitblazer wrote:Inside the Purebasic IDE check the "File->preferences->editor" and it should have in an option to "save settings to" and the default is "end of file".
Thank you very much
by shadowvox
Wed Jul 24, 2019 7:43 pm
Forum: Coding Questions
Topic: Scrolling the WebGadget
Replies: 12
Views: 3131

Re: Scrolling the WebGadget

Still unable to get it working properly. Anyone? Beuller?
by shadowvox
Wed Jul 24, 2019 7:41 pm
Forum: General Discussion
Topic: Strange behavior. Odd code injected when exiting editor.
Replies: 2
Views: 1770

Strange behavior. Odd code injected when exiting editor.

This has happened to me a few times, and it's kinda frustrating. When I close the editor after saving, sometimes code is added to the source.

Example (this one happened today)...

; CursorPosition = 702
; FirstLine = 690
; Folding = --
; EnableXP
; Executable = F:\RepairLog.exe
; EnableXPPng ...
by shadowvox
Sun Jul 21, 2019 1:35 pm
Forum: Coding Questions
Topic: Scrolling the WebGadget
Replies: 12
Views: 3131

Re: Scrolling the WebGadget

Like I said above, I'm only using it to observe the behavior. It will be taken out as soon as I figure out why this is not working. I put it in there trying to figure out why the second scroll is making the first one reset to 0.
So even with the delay out, it's still not acting correctly.
by shadowvox
Sat Jul 20, 2019 11:58 pm
Forum: Coding Questions
Topic: Scrolling the WebGadget
Replies: 12
Views: 3131

Scrolling the WebGadget

I have a webgadget load a weather map, and a timer is used to wait for it to load.
I have it scroll x 150, works
Then a delay just so I can watch and make sure it's working (will be removed)
Then it scrolls y 250, works, but now the x is back at 0

;Wait for weather to finish
If event = #PB_Event ...
by shadowvox
Mon Jul 15, 2019 7:19 pm
Forum: General Discussion
Topic: Noob question, just starting.
Replies: 8
Views: 2544

Re: Noob question, just starting.

I'm stunned! The program I wrote in VB 2012 was over 12Meg in size. The same program written in PureBasic is 152K
by shadowvox
Sun Jul 14, 2019 1:30 pm
Forum: General Discussion
Topic: Noob question, just starting.
Replies: 8
Views: 2544

Re: Noob question, just starting.

Thank you all very much for your help.
by shadowvox
Fri Jul 12, 2019 8:34 pm
Forum: General Discussion
Topic: Noob question, just starting.
Replies: 8
Views: 2544

Noob question, just starting.

Hello. I learned Basic on a TSR-80, yes I'm old. In recent years I've tried my hand at all variations of C, and for some reason, just cannot get a grasp of it. About 5 years ago, I wanted to make a program for work to track tasks and inventory. I used Visual Basic, and it was a huge pain. But, in ...