Search found 49 matches

by PB Fanatic
Sat Feb 14, 2015 12:38 am
Forum: Coding Questions
Topic: UseJPEGImageDecoder + LoadImage = false virus alerts
Replies: 6
Views: 2714

Re: UseJPEGImageDecoder + LoadImage = false virus alerts

The last post there is for using an API call to trick the AV software, which is what I asked for in the first post of this thread, ie. how to call LoadImage as API instead of the regular command. I don't know how to do it, as I'm not an expert, despite what people may think.
by PB Fanatic
Fri Feb 13, 2015 10:06 am
Forum: Coding Questions
Topic: UseJPEGImageDecoder + LoadImage = false virus alerts
Replies: 6
Views: 2714

Re: UseJPEGImageDecoder + LoadImage = false virus alerts

Usually the detection definitions are updated automatically I just re-uploaded my exe to VirusTotal again, with UseJPEGImageDecoder + LoadImage inside, and this time it only reports 2 false positives instead of 9! :shock: WTF? I think what you said above is right. But Avast still complains about a ...
by PB Fanatic
Fri Feb 13, 2015 2:16 am
Forum: Coding Questions
Topic: UseJPEGImageDecoder + LoadImage = false virus alerts
Replies: 6
Views: 2714

UseJPEGImageDecoder + LoadImage = false virus alerts

Got a problem... when I have UseJPEGImageDecoder and LoadImage TOGETHER in my app, Avast throws out a false positive virus alert, and if I submit my exe to VirusTotal, it shows 9 false positives from various virus scanners, too. However, if I remove UseJPEGImageDecoder, the false alert goes away, an...
by PB Fanatic
Fri Feb 06, 2015 1:12 am
Forum: Windows
Topic: Where are my Function Keys?
Replies: 9
Views: 4530

Re: Where are my Function Keys?

If you want to check if a key is down, you have to use GetAsyncKeyState_(#VK_F1) & $8000, not just GetAsyncKeyState_(#VK_F1) alone. The $8000 is needed.
by PB Fanatic
Thu Feb 05, 2015 3:08 pm
Forum: Feature Requests and Wishlists
Topic: RenameDirectory()
Replies: 9
Views: 3019

Re: RenameDirectory()

Oops! :oops:
by PB Fanatic
Thu Feb 05, 2015 1:21 pm
Forum: Feature Requests and Wishlists
Topic: RenameDirectory()
Replies: 9
Views: 3019

Re: RenameDirectory()

A procedure or macro that wraps RenameFile() simply doesn't work:

Code: Select all

Macro RenameDirectory(old,new)
  RenameFile(old,new)
EndMacro

old$=GetTemporaryDirectory()+"old"

Debug CreateDirectory(old$)       ; 1 - Okay
Debug RenameDirectory(old$,"new") ; 0 - Fails
by PB Fanatic
Thu Feb 05, 2015 11:20 am
Forum: Feature Requests and Wishlists
Topic: RenameDirectory()
Replies: 9
Views: 3019

Re: RenameDirectory()

It would be better just to have a new command called RenameDirectory() that works.
by PB Fanatic
Wed Feb 04, 2015 7:58 am
Forum: Feature Requests and Wishlists
Topic: RenameDirectory()
Replies: 9
Views: 3019

Re: RenameDirectory()

Use the keyword folder , instead of directory What the? We have CreateDirectory, CopyDirectory, DeleteDirectory... but not RenameDirectory. :shock: So searching for "directory" is therefore a totally logical thing to do, as opposed to searching for "folder". :mrgreen: Thanks for...
by PB Fanatic
Wed Feb 04, 2015 6:38 am
Forum: Feature Requests and Wishlists
Topic: RenameDirectory()
Replies: 9
Views: 3019

RenameDirectory()

I can't believe this command doesn't exist after all these years! :shock:

And how do we do it in the meantime? A search for "rename directory" comes up with 0 relevant results. :?
by PB Fanatic
Tue Feb 03, 2015 1:14 am
Forum: Feature Requests and Wishlists
Topic: Portable
Replies: 10
Views: 2927

Re: Portable

juror wrote:Didn't mean to imply it was better than yours.
Don't worry; I didn't take it that way. Relax. :) But the topic is portability, so I was just pointing out that a shortcut won't allow that.
by PB Fanatic
Mon Feb 02, 2015 11:57 pm
Forum: Feature Requests and Wishlists
Topic: Portable
Replies: 10
Views: 2927

Re: Portable

Shortcuts are not portable. ;) I can take my PureBasic folder (on SD card) to any PC and run it portably. A shortcut is tied to the PC on which it's created.
by PB Fanatic
Mon Feb 02, 2015 11:16 pm
Forum: Feature Requests and Wishlists
Topic: Portable
Replies: 10
Views: 2927

Re: Portable

PureGuy wrote:why not make it portable by default
That's how PureBasic used to work. It got changed many versions ago. I just created my own exe instead which launches PureBasic.exe with the /PORTABLE switch, and I run that exe instead of PureBasic.exe to always open the app portably.
by PB Fanatic
Mon Feb 02, 2015 9:01 am
Forum: Coding Questions
Topic: Know when popup menu is open?
Replies: 4
Views: 2169

Know when popup menu is open?

Is there a way I can tell if a PopupMenu() is currently open (being displayed)? My program closes its main window when Escape is pressed, but if a PopupMenu() is open, then Escape closes it AND my program in one go. So I just want Escape to close the menu only if it's open, and not the main window. ...
by PB Fanatic
Sun Feb 01, 2015 1:30 am
Forum: General Discussion
Topic: 1260 error when running exe
Replies: 2
Views: 2252

1260 error when running exe

Hello, one of my programs that I've compiled as an exe is not running on a friend's PC. It was built on my Windows 7 PC (64-bit) with PureBasic v5.31 (the 32-bit version). It's got Unicode enabled but nothing is ticked for Request Administrator or Request User mode. The exe runs fine for me on my ma...
by PB Fanatic
Thu Jan 29, 2015 3:02 pm
Forum: Feature Requests and Wishlists
Topic: InputRequester pre-select flag
Replies: 11
Views: 4746

Re: InputRequester pre-select flag

Doesn't make it wider here. All 3 requesters in your code sample are the same width.